| 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 "base/thread_task_runner_handle.h" | 7 #include "base/thread_task_runner_handle.h" |
| 8 #include "base/trace_event/trace_event.h" | 8 #include "base/trace_event/trace_event.h" |
| 9 #include "cc/debug/benchmark_instrumentation.h" | 9 #include "cc/debug/benchmark_instrumentation.h" |
| 10 #include "cc/output/compositor_frame.h" | 10 #include "cc/output/compositor_frame.h" |
| (...skipping 259 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 270 | 270 |
| 271 void Display::SetMemoryPolicy(const ManagedMemoryPolicy& policy) { | 271 void Display::SetMemoryPolicy(const ManagedMemoryPolicy& policy) { |
| 272 client_->SetMemoryPolicy(policy); | 272 client_->SetMemoryPolicy(policy); |
| 273 } | 273 } |
| 274 | 274 |
| 275 void Display::OnDraw() { | 275 void Display::OnDraw() { |
| 276 NOTREACHED(); | 276 NOTREACHED(); |
| 277 } | 277 } |
| 278 | 278 |
| 279 void Display::SetNeedsRedrawRect(const gfx::Rect& damage_rect) { | 279 void Display::SetNeedsRedrawRect(const gfx::Rect& damage_rect) { |
| 280 NOTREACHED(); | 280 aggregator_->SetFullDamageForSurface(current_surface_id_); |
| 281 if (scheduler_) |
| 282 scheduler_->SurfaceDamaged(current_surface_id_); |
| 281 } | 283 } |
| 282 | 284 |
| 283 void Display::ReclaimResources(const CompositorFrameAck* ack) { | 285 void Display::ReclaimResources(const CompositorFrameAck* ack) { |
| 284 NOTREACHED(); | 286 NOTREACHED(); |
| 285 } | 287 } |
| 286 | 288 |
| 287 void Display::SetExternalDrawConstraints( | 289 void Display::SetExternalDrawConstraints( |
| 288 const gfx::Transform& transform, | 290 const gfx::Transform& transform, |
| 289 const gfx::Rect& viewport, | 291 const gfx::Rect& viewport, |
| 290 const gfx::Rect& clip, | 292 const gfx::Rect& clip, |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 325 | 327 |
| 326 if (surface_id == current_surface_id_) | 328 if (surface_id == current_surface_id_) |
| 327 UpdateRootSurfaceResourcesLocked(); | 329 UpdateRootSurfaceResourcesLocked(); |
| 328 } | 330 } |
| 329 | 331 |
| 330 SurfaceId Display::CurrentSurfaceId() { | 332 SurfaceId Display::CurrentSurfaceId() { |
| 331 return current_surface_id_; | 333 return current_surface_id_; |
| 332 } | 334 } |
| 333 | 335 |
| 334 } // namespace cc | 336 } // namespace cc |
| OLD | NEW |