From 38542d51c9d4bedc79ac78aca67259b7c0bdc214 Mon Sep 17 00:00:00 2001 From: achaulk Date: Tue, 7 Oct 2014 09:31:48 -0700 Subject: Change FlippedFramebuffer return for surfaceless We still need to render flipped while doing render-to-texture in GLRenderer, otherwise anything using RTT appears upside down (menus, screenshots), so InitializeViewport now takes the flip state directly BUG=418149 Review URL: https://codereview.chromium.org/612083003 Cr-Commit-Position: refs/heads/master@{#298498} --- cc/test/pixel_test_output_surface.cc | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'cc/test/pixel_test_output_surface.cc') diff --git a/cc/test/pixel_test_output_surface.cc b/cc/test/pixel_test_output_surface.cc index c773a52..9fe85b6 100644 --- a/cc/test/pixel_test_output_surface.cc +++ b/cc/test/pixel_test_output_surface.cc @@ -10,8 +10,11 @@ namespace cc { PixelTestOutputSurface::PixelTestOutputSurface( - scoped_refptr context_provider) - : OutputSurface(context_provider), external_stencil_test_(false) {} + scoped_refptr context_provider, + bool uses_main_gl_framebuffer) + : OutputSurface(context_provider), external_stencil_test_(false) { + capabilities_.uses_default_gl_framebuffer = uses_main_gl_framebuffer; +} PixelTestOutputSurface::PixelTestOutputSurface( scoped_ptr software_device) -- cgit v1.1