| 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/trace_event/trace_event.h" | 10 #include "base/trace_event/trace_event.h" |
| (...skipping 340 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 351 return true; | 351 return true; |
| 352 } | 352 } |
| 353 | 353 |
| 354 void Display::DidSwapBuffersComplete() { | 354 void Display::DidSwapBuffersComplete() { |
| 355 if (scheduler_) | 355 if (scheduler_) |
| 356 scheduler_->DidSwapBuffersComplete(); | 356 scheduler_->DidSwapBuffersComplete(); |
| 357 if (renderer_) | 357 if (renderer_) |
| 358 renderer_->SwapBuffersComplete(); | 358 renderer_->SwapBuffersComplete(); |
| 359 } | 359 } |
| 360 | 360 |
| 361 void Display::CommitVSyncParameters(base::TimeTicks timebase, | |
| 362 base::TimeDelta interval) { | |
| 363 // Display uses a BeginFrameSource instead. | |
| 364 NOTREACHED(); | |
| 365 } | |
| 366 | |
| 367 void Display::DidReceiveTextureInUseResponses( | 361 void Display::DidReceiveTextureInUseResponses( |
| 368 const gpu::TextureInUseResponses& responses) { | 362 const gpu::TextureInUseResponses& responses) { |
| 369 if (renderer_) | 363 if (renderer_) |
| 370 renderer_->DidReceiveTextureInUseResponses(responses); | 364 renderer_->DidReceiveTextureInUseResponses(responses); |
| 371 } | 365 } |
| 372 | 366 |
| 373 void Display::SetBeginFrameSource(BeginFrameSource* source) { | 367 void Display::SetBeginFrameSource(BeginFrameSource* source) { |
| 374 // The BeginFrameSource is set from the constructor, it doesn't come | 368 // The BeginFrameSource is set from the constructor, it doesn't come |
| 375 // from the OutputSurface for the Display. | 369 // from the OutputSurface for the Display. |
| 376 NOTREACHED(); | 370 NOTREACHED(); |
| (...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 433 const SurfaceId& Display::CurrentSurfaceId() { | 427 const SurfaceId& Display::CurrentSurfaceId() { |
| 434 return current_surface_id_; | 428 return current_surface_id_; |
| 435 } | 429 } |
| 436 | 430 |
| 437 void Display::ForceImmediateDrawAndSwapIfPossible() { | 431 void Display::ForceImmediateDrawAndSwapIfPossible() { |
| 438 if (scheduler_) | 432 if (scheduler_) |
| 439 scheduler_->ForceImmediateSwapIfPossible(); | 433 scheduler_->ForceImmediateSwapIfPossible(); |
| 440 } | 434 } |
| 441 | 435 |
| 442 } // namespace cc | 436 } // namespace cc |
| OLD | NEW |