| 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 |
| 361 void Display::DidReceiveTextureInUseResponses( | 367 void Display::DidReceiveTextureInUseResponses( |
| 362 const gpu::TextureInUseResponses& responses) { | 368 const gpu::TextureInUseResponses& responses) { |
| 363 if (renderer_) | 369 if (renderer_) |
| 364 renderer_->DidReceiveTextureInUseResponses(responses); | 370 renderer_->DidReceiveTextureInUseResponses(responses); |
| 365 } | 371 } |
| 366 | 372 |
| 367 void Display::SetBeginFrameSource(BeginFrameSource* source) { | 373 void Display::SetBeginFrameSource(BeginFrameSource* source) { |
| 368 // The BeginFrameSource is set from the constructor, it doesn't come | 374 // The BeginFrameSource is set from the constructor, it doesn't come |
| 369 // from the OutputSurface for the Display. | 375 // from the OutputSurface for the Display. |
| 370 NOTREACHED(); | 376 NOTREACHED(); |
| (...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 427 const SurfaceId& Display::CurrentSurfaceId() { | 433 const SurfaceId& Display::CurrentSurfaceId() { |
| 428 return current_surface_id_; | 434 return current_surface_id_; |
| 429 } | 435 } |
| 430 | 436 |
| 431 void Display::ForceImmediateDrawAndSwapIfPossible() { | 437 void Display::ForceImmediateDrawAndSwapIfPossible() { |
| 432 if (scheduler_) | 438 if (scheduler_) |
| 433 scheduler_->ForceImmediateSwapIfPossible(); | 439 scheduler_->ForceImmediateSwapIfPossible(); |
| 434 } | 440 } |
| 435 | 441 |
| 436 } // namespace cc | 442 } // namespace cc |
| OLD | NEW |