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

Side by Side Diff: cc/delegated_renderer_layer_impl_unittest.cc

Issue 11348371: cc: Move WebCompositorOutputSurface and related classes into cc/ (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: forlanding6 Created 8 years 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 | Annotate | Revision Log
« no previous file with comments | « cc/cc_tests.gyp ('k') | cc/gl_renderer_unittest.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2012 The Chromium Authors. All rights reserved. 1 // Copyright 2012 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/delegated_renderer_layer_impl.h" 5 #include "cc/delegated_renderer_layer_impl.h"
6 6
7 #include "cc/append_quads_data.h" 7 #include "cc/append_quads_data.h"
8 #include "cc/layer_tree_host_impl.h" 8 #include "cc/layer_tree_host_impl.h"
9 #include "cc/quad_sink.h" 9 #include "cc/quad_sink.h"
10 #include "cc/render_pass_draw_quad.h" 10 #include "cc/render_pass_draw_quad.h"
11 #include "cc/scoped_ptr_vector.h" 11 #include "cc/scoped_ptr_vector.h"
12 #include "cc/single_thread_proxy.h" 12 #include "cc/single_thread_proxy.h"
13 #include "cc/solid_color_draw_quad.h" 13 #include "cc/solid_color_draw_quad.h"
14 #include "cc/solid_color_layer_impl.h" 14 #include "cc/solid_color_layer_impl.h"
15 #include "cc/test/fake_layer_tree_host_impl.h" 15 #include "cc/test/fake_layer_tree_host_impl.h"
16 #include "cc/test/fake_output_surface.h" 16 #include "cc/test/fake_output_surface.h"
17 #include "cc/test/fake_proxy.h" 17 #include "cc/test/fake_proxy.h"
18 #include "cc/test/fake_web_compositor_output_surface.h"
19 #include "cc/test/fake_web_graphics_context_3d.h" 18 #include "cc/test/fake_web_graphics_context_3d.h"
20 #include "cc/test/geometry_test_utils.h" 19 #include "cc/test/geometry_test_utils.h"
21 #include "cc/test/mock_quad_culler.h" 20 #include "cc/test/mock_quad_culler.h"
22 #include "cc/test/render_pass_test_common.h" 21 #include "cc/test/render_pass_test_common.h"
23 #include "testing/gtest/include/gtest/gtest.h" 22 #include "testing/gtest/include/gtest/gtest.h"
24 #include "ui/gfx/transform.h" 23 #include "ui/gfx/transform.h"
25 24
26 using WebKit::FakeWebCompositorOutputSurface;
27 using WebKit::FakeWebGraphicsContext3D; 25 using WebKit::FakeWebGraphicsContext3D;
28 26
29 using namespace WebKitTests; 27 using namespace WebKitTests;
30 28
31 namespace cc { 29 namespace cc {
32 namespace { 30 namespace {
33 31
34 class DelegatedRendererLayerImplTest : public testing::Test, public LayerTreeHos tImplClient { 32 class DelegatedRendererLayerImplTest : public testing::Test, public LayerTreeHos tImplClient {
35 public: 33 public:
36 DelegatedRendererLayerImplTest() 34 DelegatedRendererLayerImplTest()
(...skipping 465 matching lines...) Expand 10 before | Expand all | Expand 10 after
502 gfx::Transform expected; 500 gfx::Transform expected;
503 expected.Translate(30, 30); 501 expected.Translate(30, 30);
504 EXPECT_TRANSFORMATION_MATRIX_EQ(expected, sharedState->content_to_target_tra nsform); 502 EXPECT_TRANSFORMATION_MATRIX_EQ(expected, sharedState->content_to_target_tra nsform);
505 503
506 m_hostImpl->drawLayers(frame); 504 m_hostImpl->drawLayers(frame);
507 m_hostImpl->didDrawAllLayers(frame); 505 m_hostImpl->didDrawAllLayers(frame);
508 } 506 }
509 507
510 } // namespace 508 } // namespace
511 } // namespace cc 509 } // namespace cc
OLDNEW
« no previous file with comments | « cc/cc_tests.gyp ('k') | cc/gl_renderer_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698