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

Side by Side Diff: cc/test/pixel_test_output_surface.cc

Issue 2143263002: cc: Remove OutputSurfaceClient::DidSwapBuffers(). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: removedidswap: fix-webview-swap Created 4 years, 5 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
« no previous file with comments | « cc/test/pixel_test_delegating_output_surface.cc ('k') | cc/trees/layer_tree_host_impl.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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/test/pixel_test_output_surface.h" 5 #include "cc/test/pixel_test_output_surface.h"
6 6
7 #include <utility> 7 #include <utility>
8 8
9 #include "cc/output/compositor_frame.h" 9 #include "cc/output/compositor_frame.h"
10 #include "cc/output/output_surface_client.h" 10 #include "cc/output/output_surface_client.h"
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
47 size.height() + surface_expansion_size_.height()); 47 size.height() + surface_expansion_size_.height());
48 OutputSurface::Reshape(expanded_size, scale_factor, color_space, has_alpha); 48 OutputSurface::Reshape(expanded_size, scale_factor, color_space, has_alpha);
49 } 49 }
50 50
51 bool PixelTestOutputSurface::HasExternalStencilTest() const { 51 bool PixelTestOutputSurface::HasExternalStencilTest() const {
52 return external_stencil_test_; 52 return external_stencil_test_;
53 } 53 }
54 54
55 void PixelTestOutputSurface::SwapBuffers(CompositorFrame frame) { 55 void PixelTestOutputSurface::SwapBuffers(CompositorFrame frame) {
56 PostSwapBuffersComplete(); 56 PostSwapBuffersComplete();
57 client_->DidSwapBuffers();
58 } 57 }
59 58
60 uint32_t PixelTestOutputSurface::GetFramebufferCopyTextureFormat() { 59 uint32_t PixelTestOutputSurface::GetFramebufferCopyTextureFormat() {
61 // This format will work if the |context_provider| has an RGB or RGBA 60 // This format will work if the |context_provider| has an RGB or RGBA
62 // framebuffer. For now assume tests do not want/care about alpha in 61 // framebuffer. For now assume tests do not want/care about alpha in
63 // the root render pass. 62 // the root render pass.
64 return GL_RGB; 63 return GL_RGB;
65 } 64 }
66 65
67 } // namespace cc 66 } // namespace cc
OLDNEW
« no previous file with comments | « cc/test/pixel_test_delegating_output_surface.cc ('k') | cc/trees/layer_tree_host_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698