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

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

Issue 1055113004: cc: Aggressively expire retro frames. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Do not adjust deadline Created 5 years, 7 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/scheduler/scheduler_unittest.cc ('k') | no next file » | 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 {
11 11
12 PixelTestOutputSurface::PixelTestOutputSurface( 12 PixelTestOutputSurface::PixelTestOutputSurface(
13 scoped_refptr<ContextProvider> context_provider, 13 scoped_refptr<ContextProvider> context_provider,
14 scoped_refptr<ContextProvider> worker_context_provider, 14 scoped_refptr<ContextProvider> worker_context_provider,
15 bool flipped_output_surface) 15 bool flipped_output_surface)
16 : OutputSurface(context_provider, worker_context_provider), 16 : OutputSurface(context_provider, worker_context_provider),
17 external_stencil_test_(false) { 17 external_stencil_test_(false) {
18 capabilities_.adjust_deadline_for_parent = false;
18 capabilities_.flipped_output_surface = flipped_output_surface; 19 capabilities_.flipped_output_surface = flipped_output_surface;
19 } 20 }
20 21
21 PixelTestOutputSurface::PixelTestOutputSurface( 22 PixelTestOutputSurface::PixelTestOutputSurface(
22 scoped_refptr<ContextProvider> context_provider, 23 scoped_refptr<ContextProvider> context_provider,
23 bool flipped_output_surface) 24 bool flipped_output_surface)
24 : PixelTestOutputSurface(context_provider, 25 : PixelTestOutputSurface(context_provider,
25 nullptr, 26 nullptr,
26 flipped_output_surface) { 27 flipped_output_surface) {
27 } 28 }
(...skipping 13 matching lines...) Expand all
41 bool PixelTestOutputSurface::HasExternalStencilTest() const { 42 bool PixelTestOutputSurface::HasExternalStencilTest() const {
42 return external_stencil_test_; 43 return external_stencil_test_;
43 } 44 }
44 45
45 void PixelTestOutputSurface::SwapBuffers(CompositorFrame* frame) { 46 void PixelTestOutputSurface::SwapBuffers(CompositorFrame* frame) {
46 PostSwapBuffersComplete(); 47 PostSwapBuffersComplete();
47 client_->DidSwapBuffers(); 48 client_->DidSwapBuffers();
48 } 49 }
49 50
50 } // namespace cc 51 } // namespace cc
OLDNEW
« no previous file with comments | « cc/scheduler/scheduler_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698