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 <stddef.h> | 7 #include <stddef.h> |
8 | 8 |
9 #include "base/thread_task_runner_handle.h" | 9 #include "base/thread_task_runner_handle.h" |
10 #include "base/trace_event/trace_event.h" | 10 #include "base/trace_event/trace_event.h" |
(...skipping 263 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
274 scheduler_->DidSwapBuffersComplete(); | 274 scheduler_->DidSwapBuffersComplete(); |
275 if (renderer_) | 275 if (renderer_) |
276 renderer_->SwapBuffersComplete(); | 276 renderer_->SwapBuffersComplete(); |
277 } | 277 } |
278 | 278 |
279 void Display::CommitVSyncParameters(base::TimeTicks timebase, | 279 void Display::CommitVSyncParameters(base::TimeTicks timebase, |
280 base::TimeDelta interval) { | 280 base::TimeDelta interval) { |
281 client_->CommitVSyncParameters(timebase, interval); | 281 client_->CommitVSyncParameters(timebase, interval); |
282 } | 282 } |
283 | 283 |
284 void Display::SetBeginFrameSource(BeginFrameSource* source) { | |
285 NOTREACHED(); | |
enne (OOO)
2016/03/22 21:05:18
This is a bit awkward, but because the BrowserComp
sunnyps
2016/03/22 21:52:44
Can't we move the BFS from the display scheduler t
enne (OOO)
2016/03/22 22:16:20
The BFS is currently in the OnScreenDisplayClient
| |
286 } | |
287 | |
284 void Display::SetMemoryPolicy(const ManagedMemoryPolicy& policy) { | 288 void Display::SetMemoryPolicy(const ManagedMemoryPolicy& policy) { |
285 client_->SetMemoryPolicy(policy); | 289 client_->SetMemoryPolicy(policy); |
286 } | 290 } |
287 | 291 |
288 void Display::OnDraw(const gfx::Transform& transform, | 292 void Display::OnDraw(const gfx::Transform& transform, |
289 const gfx::Rect& viewport, | 293 const gfx::Rect& viewport, |
290 const gfx::Rect& clip, | 294 const gfx::Rect& clip, |
291 bool resourceless_software_draw) { | 295 bool resourceless_software_draw) { |
292 NOTREACHED(); | 296 NOTREACHED(); |
293 } | 297 } |
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
339 | 343 |
340 if (surface_id == current_surface_id_) | 344 if (surface_id == current_surface_id_) |
341 UpdateRootSurfaceResourcesLocked(); | 345 UpdateRootSurfaceResourcesLocked(); |
342 } | 346 } |
343 | 347 |
344 SurfaceId Display::CurrentSurfaceId() { | 348 SurfaceId Display::CurrentSurfaceId() { |
345 return current_surface_id_; | 349 return current_surface_id_; |
346 } | 350 } |
347 | 351 |
348 } // namespace cc | 352 } // namespace cc |
OLD | NEW |