Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(639)

Side by Side Diff: cc/layers/texture_layer_impl_unittest.cc

Issue 2174653002: cc: Break up with FakeLayerTreeHostClient. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@fakeoutputsurface
Patch Set: lthclient-tests: rebase Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698