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

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: rebase 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
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_output_surface.h" 15 #include "cc/test/fake_output_surface.h"
16 #include "cc/test/fake_proxy.h" 16 #include "cc/test/fake_proxy.h"
17 #include "cc/test/fake_web_compositor_output_surface.h"
18 #include "cc/test/fake_web_graphics_context_3d.h" 17 #include "cc/test/fake_web_graphics_context_3d.h"
19 #include "cc/test/geometry_test_utils.h" 18 #include "cc/test/geometry_test_utils.h"
20 #include "cc/test/mock_quad_culler.h" 19 #include "cc/test/mock_quad_culler.h"
21 #include "cc/test/render_pass_test_common.h" 20 #include "cc/test/render_pass_test_common.h"
22 #include "testing/gtest/include/gtest/gtest.h" 21 #include "testing/gtest/include/gtest/gtest.h"
23 #include "ui/gfx/transform.h" 22 #include "ui/gfx/transform.h"
24 23
25 using WebKit::FakeWebCompositorOutputSurface;
26 using WebKit::FakeWebGraphicsContext3D; 24 using WebKit::FakeWebGraphicsContext3D;
27 25
28 using namespace WebKitTests; 26 using namespace WebKitTests;
29 27
30 namespace cc { 28 namespace cc {
31 namespace { 29 namespace {
32 30
33 class DelegatedRendererLayerImplTest : public testing::Test, public LayerTreeHos tImplClient { 31 class DelegatedRendererLayerImplTest : public testing::Test, public LayerTreeHos tImplClient {
34 public: 32 public:
35 DelegatedRendererLayerImplTest() 33 DelegatedRendererLayerImplTest()
(...skipping 465 matching lines...) Expand 10 before | Expand all | Expand 10 after
501 gfx::Transform expected; 499 gfx::Transform expected;
502 expected.Translate(30, 30); 500 expected.Translate(30, 30);
503 EXPECT_TRANSFORMATION_MATRIX_EQ(expected, sharedState->content_to_target_tra nsform); 501 EXPECT_TRANSFORMATION_MATRIX_EQ(expected, sharedState->content_to_target_tra nsform);
504 502
505 m_hostImpl->drawLayers(frame); 503 m_hostImpl->drawLayers(frame);
506 m_hostImpl->didDrawAllLayers(frame); 504 m_hostImpl->didDrawAllLayers(frame);
507 } 505 }
508 506
509 } // namespace 507 } // namespace
510 } // namespace cc 508 } // namespace cc
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698