fl_texture_gl_test.cc
imports flutter/shell/platform/linux/fl_texture_gl_private.himports flutter/shell/platform/linux/fl_texture_private.h
SHA-256135f2ca866642af85ef7a67f5a0edf2e1f9ad8dcd58566f7e6b2c436dd57daed
MaleculeMd₂(In₆Pa)
Evidence
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/fl_texture_gl_private.h"
6#include "flutter/shell/platform/linux/fl_texture_private.h"
7#include "flutter/shell/platform/linux/fl_texture_registrar_private.h"
8#include "flutter/shell/platform/linux/public/flutter_linux/fl_texture.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 …
37:57… t,
38 GError** error) {
39 EXPECT_TRUE(FL_IS_TEST_TEXTURE(texture));
40
41 EXPECT_EQ(*width, kBufferWidth);
42 EXPECT_EQ(*height, kBufferHeight);
43 *target = GL_TEXTURE_2D;
44 *name = 1;
45 *width = kRealBufferWidth …