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

Side by Side Diff: cc/output/gl_renderer_unittest.cc

Issue 2646243002: Use IDCompositionSurface to implement DirectCompositionSurfaceWin. (Closed)
Patch Set: rebase Created 3 years, 10 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 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 #include <vector> 10 #include <vector>
(...skipping 1477 matching lines...) Expand 10 before | Expand all | Expand 10 after
1488 1488
1489 MOCK_METHOD0(EnsureBackbuffer, void()); 1489 MOCK_METHOD0(EnsureBackbuffer, void());
1490 MOCK_METHOD0(DiscardBackbuffer, void()); 1490 MOCK_METHOD0(DiscardBackbuffer, void());
1491 MOCK_METHOD5(Reshape, 1491 MOCK_METHOD5(Reshape,
1492 void(const gfx::Size& size, 1492 void(const gfx::Size& size,
1493 float scale_factor, 1493 float scale_factor,
1494 const gfx::ColorSpace& color_space, 1494 const gfx::ColorSpace& color_space,
1495 bool has_alpha, 1495 bool has_alpha,
1496 bool use_stencil)); 1496 bool use_stencil));
1497 MOCK_METHOD0(BindFramebuffer, void()); 1497 MOCK_METHOD0(BindFramebuffer, void());
1498 MOCK_METHOD1(SetDrawRectangle, void(const gfx::Rect&));
1498 MOCK_METHOD0(GetFramebufferCopyTextureFormat, GLenum()); 1499 MOCK_METHOD0(GetFramebufferCopyTextureFormat, GLenum());
1499 MOCK_METHOD1(SwapBuffers_, void(OutputSurfaceFrame& frame)); // NOLINT 1500 MOCK_METHOD1(SwapBuffers_, void(OutputSurfaceFrame& frame)); // NOLINT
1500 void SwapBuffers(OutputSurfaceFrame frame) override { SwapBuffers_(frame); } 1501 void SwapBuffers(OutputSurfaceFrame frame) override { SwapBuffers_(frame); }
1501 MOCK_CONST_METHOD0(GetOverlayCandidateValidator, 1502 MOCK_CONST_METHOD0(GetOverlayCandidateValidator,
1502 OverlayCandidateValidator*()); 1503 OverlayCandidateValidator*());
1503 MOCK_CONST_METHOD0(IsDisplayedAsOverlayPlane, bool()); 1504 MOCK_CONST_METHOD0(IsDisplayedAsOverlayPlane, bool());
1504 MOCK_CONST_METHOD0(GetOverlayTextureId, unsigned()); 1505 MOCK_CONST_METHOD0(GetOverlayTextureId, unsigned());
1505 MOCK_CONST_METHOD0(SurfaceIsSuspendForRecycle, bool()); 1506 MOCK_CONST_METHOD0(SurfaceIsSuspendForRecycle, bool());
1506 MOCK_CONST_METHOD0(HasExternalStencilTest, bool()); 1507 MOCK_CONST_METHOD0(HasExternalStencilTest, bool());
1507 MOCK_METHOD0(ApplyExternalStencil, void()); 1508 MOCK_METHOD0(ApplyExternalStencil, void());
(...skipping 478 matching lines...) Expand 10 before | Expand all | Expand 10 after
1986 renderer_->SetVisible(true); 1987 renderer_->SetVisible(true);
1987 Mock::VerifyAndClearExpectations(context_support_ptr_); 1988 Mock::VerifyAndClearExpectations(context_support_ptr_);
1988 1989
1989 EXPECT_CALL(*context_support_ptr_, SetAggressivelyFreeResources(true)); 1990 EXPECT_CALL(*context_support_ptr_, SetAggressivelyFreeResources(true));
1990 renderer_->SetVisible(false); 1991 renderer_->SetVisible(false);
1991 Mock::VerifyAndClearExpectations(context_support_ptr_); 1992 Mock::VerifyAndClearExpectations(context_support_ptr_);
1992 } 1993 }
1993 1994
1994 } // namespace 1995 } // namespace
1995 } // namespace cc 1996 } // namespace cc
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698