#include "cc/layers/ui_resource_layer_impl.h"
#include <memory>
#include <utility>
#include "cc/layers/append_quads_data.h"
#include "cc/resources/ui_resource_bitmap.h"
#include "cc/resources/ui_resource_client.h"
#include "cc/test/fake_impl_task_runner_provider.h"
#include "cc/test/fake_layer_tree_frame_sink.h"
#include "cc/test/fake_layer_tree_host_impl.h"
#include "cc/test/fake_ui_resource_layer_tree_host_impl.h"
#include "cc/test/layer_tree_impl_test_base.h"
#include "cc/test/test_task_graph_runner.h"
#include "cc/trees/single_thread_proxy.h"
#include "components/viz/common/quads/draw_quad.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "ui/gfx/geometry/transform.h"
namespace cc {
namespace {
UIResourceLayerImpl* GenerateUIResourceLayer(
FakeUIResourceLayerTreeHostImpl* host_impl,
const gfx::Size& bitmap_size,
const gfx::Size& layer_size,
bool opaque,
UIResourceId uid) { … }
void QuadSizeTest(FakeUIResourceLayerTreeHostImpl* host_impl,
UIResourceLayerImpl* layer,
size_t expected_quad_size) { … }
TEST(UIResourceLayerImplTest, VerifyDrawQuads) { … }
void NeedsBlendingTest(FakeUIResourceLayerTreeHostImpl* host_impl,
UIResourceLayerImpl* layer,
bool needs_blending) { … }
TEST(UIResourceLayerImplTest, VerifySetOpaqueOnSkBitmap) { … }
TEST(UIResourceLayerImplTest, VerifySetOpaqueOnLayer) { … }
TEST(UIResourceLayerImplTest, Occlusion) { … }
}
}