| 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 353 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 364 renderer_->DidReceiveTextureInUseResponses(responses); | 364 renderer_->DidReceiveTextureInUseResponses(responses); |
| 365 } | 365 } |
| 366 | 366 |
| 367 void Display::SetBeginFrameSource(BeginFrameSource* source) { | 367 void Display::SetBeginFrameSource(BeginFrameSource* source) { |
| 368 // The BeginFrameSource is set from the constructor, it doesn't come | 368 // The BeginFrameSource is set from the constructor, it doesn't come |
| 369 // from the OutputSurface for the Display. | 369 // from the OutputSurface for the Display. |
| 370 NOTREACHED(); | 370 NOTREACHED(); |
| 371 } | 371 } |
| 372 | 372 |
| 373 void Display::SetMemoryPolicy(const ManagedMemoryPolicy& policy) { | 373 void Display::SetMemoryPolicy(const ManagedMemoryPolicy& policy) { |
| 374 client_->DisplaySetMemoryPolicy(policy); | 374 // This is only for LayerTreeHostImpl. |
| 375 NOTREACHED(); |
| 375 } | 376 } |
| 376 | 377 |
| 377 void Display::OnDraw(const gfx::Transform& transform, | 378 void Display::OnDraw(const gfx::Transform& transform, |
| 378 const gfx::Rect& viewport, | 379 const gfx::Rect& viewport, |
| 379 bool resourceless_software_draw) { | 380 bool resourceless_software_draw) { |
| 380 NOTREACHED(); | 381 NOTREACHED(); |
| 381 } | 382 } |
| 382 | 383 |
| 383 void Display::SetNeedsRedrawRect(const gfx::Rect& damage_rect) { | 384 void Display::SetNeedsRedrawRect(const gfx::Rect& damage_rect) { |
| 384 aggregator_->SetFullDamageForSurface(current_surface_id_); | 385 aggregator_->SetFullDamageForSurface(current_surface_id_); |
| (...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 427 const SurfaceId& Display::CurrentSurfaceId() { | 428 const SurfaceId& Display::CurrentSurfaceId() { |
| 428 return current_surface_id_; | 429 return current_surface_id_; |
| 429 } | 430 } |
| 430 | 431 |
| 431 void Display::ForceImmediateDrawAndSwapIfPossible() { | 432 void Display::ForceImmediateDrawAndSwapIfPossible() { |
| 432 if (scheduler_) | 433 if (scheduler_) |
| 433 scheduler_->ForceImmediateSwapIfPossible(); | 434 scheduler_->ForceImmediateSwapIfPossible(); |
| 434 } | 435 } |
| 435 | 436 |
| 436 } // namespace cc | 437 } // namespace cc |
| OLD | NEW |