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

Side by Side Diff: cc/surfaces/display.cc

Issue 334133002: cc: Support on demand raster with ganesh (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: tests Created 6 years, 6 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 | Annotate | Revision Log
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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/surfaces/display.h" 5 #include "cc/surfaces/display.h"
6 6
7 #include "base/message_loop/message_loop.h" 7 #include "base/message_loop/message_loop.h"
8 #include "cc/output/compositor_frame.h" 8 #include "cc/output/compositor_frame.h"
9 #include "cc/output/direct_renderer.h" 9 #include "cc/output/direct_renderer.h"
10 #include "cc/output/gl_renderer.h" 10 #include "cc/output/gl_renderer.h"
(...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after
150 disable_picture_quad_image_filtering); 150 disable_picture_quad_image_filtering);
151 CompositorFrameMetadata metadata; 151 CompositorFrameMetadata metadata;
152 renderer_->SwapBuffers(metadata); 152 renderer_->SwapBuffers(metadata);
153 return true; 153 return true;
154 } 154 }
155 155
156 SurfaceId Display::CurrentSurfaceId() { 156 SurfaceId Display::CurrentSurfaceId() {
157 return current_surface_ ? current_surface_->surface_id() : SurfaceId(); 157 return current_surface_ ? current_surface_->surface_id() : SurfaceId();
158 } 158 }
159 159
160 bool Display::UseTaskGraphRunnerForOnDemandRaster() {
161 return true;
162 }
163
160 void Display::ReturnResources(const ReturnedResourceArray& resources) { 164 void Display::ReturnResources(const ReturnedResourceArray& resources) {
161 } 165 }
162 166
163 } // namespace cc 167 } // namespace cc
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698