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/output/gl_renderer.h" | 5 #include "cc/output/gl_renderer.h" |
6 | 6 |
7 #include <stdint.h> | 7 #include <stdint.h> |
8 | 8 |
9 #include <set> | 9 #include <set> |
10 | 10 |
(...skipping 1589 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1600 | 1600 |
1601 MOCK_METHOD0(EnsureBackbuffer, void()); | 1601 MOCK_METHOD0(EnsureBackbuffer, void()); |
1602 MOCK_METHOD0(DiscardBackbuffer, void()); | 1602 MOCK_METHOD0(DiscardBackbuffer, void()); |
1603 MOCK_METHOD4(Reshape, | 1603 MOCK_METHOD4(Reshape, |
1604 void(const gfx::Size& size, | 1604 void(const gfx::Size& size, |
1605 float scale_factor, | 1605 float scale_factor, |
1606 const gfx::ColorSpace& color_space, | 1606 const gfx::ColorSpace& color_space, |
1607 bool has_alpha)); | 1607 bool has_alpha)); |
1608 MOCK_METHOD0(BindFramebuffer, void()); | 1608 MOCK_METHOD0(BindFramebuffer, void()); |
1609 MOCK_METHOD0(GetFramebufferCopyTextureFormat, GLenum()); | 1609 MOCK_METHOD0(GetFramebufferCopyTextureFormat, GLenum()); |
1610 MOCK_METHOD1(SwapBuffers_, void(CompositorFrame& frame)); // NOLINT | 1610 MOCK_METHOD1(SwapBuffers_, void(OutputSurfaceFrame& frame)); // NOLINT |
1611 void SwapBuffers(CompositorFrame frame) override { SwapBuffers_(frame); } | 1611 void SwapBuffers(OutputSurfaceFrame frame) override { SwapBuffers_(frame); } |
1612 MOCK_CONST_METHOD0(GetOverlayCandidateValidator, | 1612 MOCK_CONST_METHOD0(GetOverlayCandidateValidator, |
1613 OverlayCandidateValidator*()); | 1613 OverlayCandidateValidator*()); |
1614 MOCK_CONST_METHOD0(IsDisplayedAsOverlayPlane, bool()); | 1614 MOCK_CONST_METHOD0(IsDisplayedAsOverlayPlane, bool()); |
1615 MOCK_CONST_METHOD0(GetOverlayTextureId, unsigned()); | 1615 MOCK_CONST_METHOD0(GetOverlayTextureId, unsigned()); |
1616 MOCK_CONST_METHOD0(SurfaceIsSuspendForRecycle, bool()); | 1616 MOCK_CONST_METHOD0(SurfaceIsSuspendForRecycle, bool()); |
1617 MOCK_CONST_METHOD0(HasExternalStencilTest, bool()); | 1617 MOCK_CONST_METHOD0(HasExternalStencilTest, bool()); |
1618 MOCK_METHOD0(ApplyExternalStencil, void()); | 1618 MOCK_METHOD0(ApplyExternalStencil, void()); |
1619 }; | 1619 }; |
1620 | 1620 |
1621 class MockOutputSurfaceTest : public GLRendererTest { | 1621 class MockOutputSurfaceTest : public GLRendererTest { |
(...skipping 463 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2085 renderer_->SetVisible(true); | 2085 renderer_->SetVisible(true); |
2086 Mock::VerifyAndClearExpectations(context_support_ptr_); | 2086 Mock::VerifyAndClearExpectations(context_support_ptr_); |
2087 | 2087 |
2088 EXPECT_CALL(*context_support_ptr_, SetAggressivelyFreeResources(true)); | 2088 EXPECT_CALL(*context_support_ptr_, SetAggressivelyFreeResources(true)); |
2089 renderer_->SetVisible(false); | 2089 renderer_->SetVisible(false); |
2090 Mock::VerifyAndClearExpectations(context_support_ptr_); | 2090 Mock::VerifyAndClearExpectations(context_support_ptr_); |
2091 } | 2091 } |
2092 | 2092 |
2093 } // namespace | 2093 } // namespace |
2094 } // namespace cc | 2094 } // namespace cc |
OLD | NEW |