OLD | NEW |
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 Loading... |
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 |
OLD | NEW |