OLD | NEW |
---|---|
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "cc/layers/texture_layer_impl.h" | 5 #include "cc/layers/texture_layer_impl.h" |
6 | 6 |
7 #include <stddef.h> | 7 #include <stddef.h> |
8 | 8 |
9 #include "cc/output/context_provider.h" | 9 #include "cc/output/context_provider.h" |
10 #include "cc/output/output_surface.h" | 10 #include "cc/output/output_surface.h" |
11 #include "cc/quads/draw_quad.h" | 11 #include "cc/quads/draw_quad.h" |
12 #include "cc/quads/texture_draw_quad.h" | 12 #include "cc/quads/texture_draw_quad.h" |
13 #include "cc/test/layer_test_common.h" | 13 #include "cc/test/layer_test_common.h" |
14 #include "gpu/command_buffer/client/gles2_interface.h" | |
vmpstr
2016/07/22 21:08:43
Why is this needed?
danakj
2016/07/22 21:19:30
IWYU fix.
| |
14 #include "testing/gtest/include/gtest/gtest.h" | 15 #include "testing/gtest/include/gtest/gtest.h" |
15 | 16 |
16 namespace cc { | 17 namespace cc { |
17 namespace { | 18 namespace { |
18 | 19 |
19 void IgnoreCallback(const gpu::SyncToken& sync_token, | 20 void IgnoreCallback(const gpu::SyncToken& sync_token, |
20 bool lost, | 21 bool lost, |
21 BlockingTaskRunner* main_thread_task_runner) {} | 22 BlockingTaskRunner* main_thread_task_runner) {} |
22 | 23 |
23 TEST(TextureLayerImplTest, VisibleOpaqueRegion) { | 24 TEST(TextureLayerImplTest, VisibleOpaqueRegion) { |
(...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
137 ASSERT_EQ(DrawQuad::Material::TEXTURE_CONTENT, | 138 ASSERT_EQ(DrawQuad::Material::TEXTURE_CONTENT, |
138 impl.quad_list().front()->material); | 139 impl.quad_list().front()->material); |
139 const TextureDrawQuad* quad = | 140 const TextureDrawQuad* quad = |
140 TextureDrawQuad::MaterialCast(impl.quad_list().front()); | 141 TextureDrawQuad::MaterialCast(impl.quad_list().front()); |
141 EXPECT_TRUE(quad->secure_output_only); | 142 EXPECT_TRUE(quad->secure_output_only); |
142 } | 143 } |
143 } | 144 } |
144 | 145 |
145 } // namespace | 146 } // namespace |
146 } // namespace cc | 147 } // namespace cc |
OLD | NEW |