| 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 355 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 366 // from the OutputSurface for the Display. | 366 // from the OutputSurface for the Display. |
| 367 NOTREACHED(); | 367 NOTREACHED(); |
| 368 } | 368 } |
| 369 | 369 |
| 370 void Display::SetMemoryPolicy(const ManagedMemoryPolicy& policy) { | 370 void Display::SetMemoryPolicy(const ManagedMemoryPolicy& policy) { |
| 371 client_->DisplaySetMemoryPolicy(policy); | 371 client_->DisplaySetMemoryPolicy(policy); |
| 372 } | 372 } |
| 373 | 373 |
| 374 void Display::OnDraw(const gfx::Transform& transform, | 374 void Display::OnDraw(const gfx::Transform& transform, |
| 375 const gfx::Rect& viewport, | 375 const gfx::Rect& viewport, |
| 376 const gfx::Rect& clip, | |
| 377 bool resourceless_software_draw) { | 376 bool resourceless_software_draw) { |
| 378 NOTREACHED(); | 377 NOTREACHED(); |
| 379 } | 378 } |
| 380 | 379 |
| 381 void Display::SetNeedsRedrawRect(const gfx::Rect& damage_rect) { | 380 void Display::SetNeedsRedrawRect(const gfx::Rect& damage_rect) { |
| 382 aggregator_->SetFullDamageForSurface(current_surface_id_); | 381 aggregator_->SetFullDamageForSurface(current_surface_id_); |
| 383 if (scheduler_) | 382 if (scheduler_) |
| 384 scheduler_->SurfaceDamaged(current_surface_id_); | 383 scheduler_->SurfaceDamaged(current_surface_id_); |
| 385 } | 384 } |
| 386 | 385 |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 425 | 424 |
| 426 if (surface_id == current_surface_id_) | 425 if (surface_id == current_surface_id_) |
| 427 UpdateRootSurfaceResourcesLocked(); | 426 UpdateRootSurfaceResourcesLocked(); |
| 428 } | 427 } |
| 429 | 428 |
| 430 const SurfaceId& Display::CurrentSurfaceId() { | 429 const SurfaceId& Display::CurrentSurfaceId() { |
| 431 return current_surface_id_; | 430 return current_surface_id_; |
| 432 } | 431 } |
| 433 | 432 |
| 434 } // namespace cc | 433 } // namespace cc |
| OLD | NEW |