Benign repos Download

fl_pixel_buffer_texture_test.cc

imports flutter/shell/platform/linux/fl_pixel_buffer_texture_private.himports flutter/shell/platform/linux/fl_texture_private.h
SHA-256d584724e3e53f8f326a595de11606d59de56016ab7493afe976a3aba44e5d79d

Evidence

imports flutter/shell/platform/linux/fl_pixel_buffer_texture_private.h lines 1–17
1// Copyright 2013 The Flutter Authors. All rights reserved.
2// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4
5#include "flutter/shell/platform/linux/public/flutter_linux/fl_pixel_buffer_texture.h"
6#include "flutter/shell/platform/linux/fl_pixel_buffer_texture_private.h"
7#include "flutter/shell/platform/linux/fl_texture_private.h"
8#include "flutter/shell/platform/linux/fl_texture_registrar_private.h"
9#include "flutter/shell/platform/linux/public/flutter_linux/fl_texture_registrar.h"
10#include "flutter/shell/platform/linux/testing/fl_test.h"
11#include "gtest/gtest.h"
12
13#include <epoxy/gl.h>
14
15static constexpr uint32_t kBufferWidth = 4u;
16static constexpr uint32_t kBufferHeight = 4u;
17sta …
English function-word token "with" lines 24–30
24:18… FlPixelBufferTexture)
25
26/// A simple texture with fixed contents.
27struct _FlTestPixelBufferTexture {
28 FlPixelBufferTexture parent_instance;
29};
30
C/C++ unit-test EXPECT_TRUE marker lines 38–45
38:4… uint32_t* width,
39 uint32_t* height,
40 GError** error) {
41 EXPECT_TRUE(FL_IS_TEST_PIXEL_BUFFER_TEXTURE(texture));
42
43 // RGBA
44 static const uint8_t buffer[] = {0x0a, 0x1a, 0x2a, 0x3a, 0x4a, 0x5a,
45 …
C/C++ unit-test EXPECT_EQ marker lines 45–51
45:70… ,
46 0xca, 0xda, 0xea, 0xfa};
47 EXPECT_EQ(*width, kBufferWidth);
48 EXPECT_EQ(*height, kBufferHeight);
49 *out_buffer = buffer;
50 *width = kRealBufferWidth;
51 *height = kR …

Keyboard shortcuts on this page: j for the next sample, k for the previous one, x to go back to the feed, d to download the original bytes, r to re-queue the sample for analysis.