OLD | NEW |
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/gl_renderer.h" | 5 #include "cc/gl_renderer.h" |
6 | 6 |
7 #include "cc/draw_quad.h" | 7 #include "cc/draw_quad.h" |
8 #include "cc/prioritized_resource_manager.h" | 8 #include "cc/prioritized_resource_manager.h" |
9 #include "cc/resource_provider.h" | 9 #include "cc/resource_provider.h" |
10 #include "cc/test/fake_impl_proxy.h" | 10 #include "cc/test/fake_impl_proxy.h" |
11 #include "cc/test/fake_layer_tree_host_impl.h" | 11 #include "cc/test/fake_layer_tree_host_impl.h" |
12 #include "cc/test/fake_output_surface.h" | 12 #include "cc/test/fake_output_surface.h" |
13 #include "cc/test/fake_web_graphics_context_3d.h" | 13 #include "cc/test/fake_web_graphics_context_3d.h" |
14 #include "cc/test/render_pass_test_common.h" | 14 #include "cc/test/render_pass_test_common.h" |
15 #include "cc/test/render_pass_test_utils.h" | 15 #include "cc/test/render_pass_test_utils.h" |
16 #include "testing/gmock/include/gmock/gmock.h" | 16 #include "testing/gmock/include/gmock/gmock.h" |
17 #include "testing/gtest/include/gtest/gtest.h" | 17 #include "testing/gtest/include/gtest/gtest.h" |
18 #include "third_party/khronos/GLES2/gl2.h" | 18 #include "third_party/khronos/GLES2/gl2.h" |
19 #include "ui/gfx/transform.h" | 19 #include "ui/gfx/transform.h" |
20 | 20 |
21 using namespace WebKit; | 21 using namespace WebKit; |
22 using namespace WebKitTests; | |
23 | 22 |
24 using testing::_; | 23 using testing::_; |
25 using testing::AnyNumber; | 24 using testing::AnyNumber; |
26 using testing::AtLeast; | 25 using testing::AtLeast; |
27 using testing::Expectation; | 26 using testing::Expectation; |
28 using testing::InSequence; | 27 using testing::InSequence; |
29 using testing::Mock; | 28 using testing::Mock; |
30 | 29 |
31 namespace cc { | 30 namespace cc { |
32 namespace { | 31 namespace { |
(...skipping 607 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
640 | 639 |
641 renderer.decideRenderPassAllocationsForFrame(mockClient.renderPassesInDrawOr
der()); | 640 renderer.decideRenderPassAllocationsForFrame(mockClient.renderPassesInDrawOr
der()); |
642 renderer.drawFrame(mockClient.renderPassesInDrawOrder(), mockClient.renderPa
sses()); | 641 renderer.drawFrame(mockClient.renderPassesInDrawOrder(), mockClient.renderPa
sses()); |
643 | 642 |
644 // In multiple render passes all but the root pass should clear the framebuf
fer. | 643 // In multiple render passes all but the root pass should clear the framebuf
fer. |
645 Mock::VerifyAndClearExpectations(&mockContext); | 644 Mock::VerifyAndClearExpectations(&mockContext); |
646 } | 645 } |
647 | 646 |
648 } // namespace | 647 } // namespace |
649 } // namespace cc | 648 } // namespace cc |
OLD | NEW |