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/memory/ptr_util.h" | 9 #include "base/memory/ptr_util.h" |
10 #include "base/threading/thread_task_runner_handle.h" | 10 #include "base/threading/thread_task_runner_handle.h" |
(...skipping 322 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
333 if (renderer_) | 333 if (renderer_) |
334 renderer_->SwapBuffersComplete(); | 334 renderer_->SwapBuffersComplete(); |
335 } | 335 } |
336 | 336 |
337 void Display::CommitVSyncParameters(base::TimeTicks timebase, | 337 void Display::CommitVSyncParameters(base::TimeTicks timebase, |
338 base::TimeDelta interval) { | 338 base::TimeDelta interval) { |
339 // Display uses a BeginFrameSource instead. | 339 // Display uses a BeginFrameSource instead. |
340 NOTREACHED(); | 340 NOTREACHED(); |
341 } | 341 } |
342 | 342 |
| 343 void Display::DidReceiveTextureInUseResponses( |
| 344 const gpu::TextureInUseResponses& responses) { |
| 345 if (renderer_) |
| 346 renderer_->DidReceiveTextureInUseResponses(responses); |
| 347 } |
| 348 |
343 void Display::SetBeginFrameSource(BeginFrameSource* source) { | 349 void Display::SetBeginFrameSource(BeginFrameSource* source) { |
344 // The BeginFrameSource is set from the constructor, it doesn't come | 350 // The BeginFrameSource is set from the constructor, it doesn't come |
345 // from the OutputSurface for the Display. | 351 // from the OutputSurface for the Display. |
346 NOTREACHED(); | 352 NOTREACHED(); |
347 } | 353 } |
348 | 354 |
349 void Display::SetMemoryPolicy(const ManagedMemoryPolicy& policy) { | 355 void Display::SetMemoryPolicy(const ManagedMemoryPolicy& policy) { |
350 client_->DisplaySetMemoryPolicy(policy); | 356 client_->DisplaySetMemoryPolicy(policy); |
351 } | 357 } |
352 | 358 |
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
404 | 410 |
405 if (surface_id == current_surface_id_) | 411 if (surface_id == current_surface_id_) |
406 UpdateRootSurfaceResourcesLocked(); | 412 UpdateRootSurfaceResourcesLocked(); |
407 } | 413 } |
408 | 414 |
409 SurfaceId Display::CurrentSurfaceId() { | 415 SurfaceId Display::CurrentSurfaceId() { |
410 return current_surface_id_; | 416 return current_surface_id_; |
411 } | 417 } |
412 | 418 |
413 } // namespace cc | 419 } // namespace cc |
OLD | NEW |