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

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

Issue 640023004: cc: Make OutputSurface::SwapBuffers pure virtual (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@latinfo
Patch Set: rebase, comment, removed unused includes Created 6 years, 2 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_output_surface.h ('k') | cc/test/test_context_support.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 "cc/output/output_surface_client.h" 7 #include "cc/output/output_surface_client.h"
8 #include "ui/gfx/transform.h" 8 #include "ui/gfx/transform.h"
9 9
10 namespace cc { 10 namespace cc {
(...skipping 10 matching lines...) Expand all
21 float scale_factor) { 21 float scale_factor) {
22 gfx::Size expanded_size(size.width() + surface_expansion_size_.width(), 22 gfx::Size expanded_size(size.width() + surface_expansion_size_.width(),
23 size.height() + surface_expansion_size_.height()); 23 size.height() + surface_expansion_size_.height());
24 OutputSurface::Reshape(expanded_size, scale_factor); 24 OutputSurface::Reshape(expanded_size, scale_factor);
25 } 25 }
26 26
27 bool PixelTestOutputSurface::HasExternalStencilTest() const { 27 bool PixelTestOutputSurface::HasExternalStencilTest() const {
28 return external_stencil_test_; 28 return external_stencil_test_;
29 } 29 }
30 30
31 void PixelTestOutputSurface::SwapBuffers(CompositorFrame* frame) {
32 PostSwapBuffersComplete();
33 client_->DidSwapBuffers();
34 }
35
31 } // namespace cc 36 } // namespace cc
OLDNEW
« no previous file with comments | « cc/test/pixel_test_output_surface.h ('k') | cc/test/test_context_support.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698