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 232 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
243 | 243 |
244 void Display::SetMemoryPolicy(const ManagedMemoryPolicy& policy) { | 244 void Display::SetMemoryPolicy(const ManagedMemoryPolicy& policy) { |
245 client_->SetMemoryPolicy(policy); | 245 client_->SetMemoryPolicy(policy); |
246 } | 246 } |
247 | 247 |
248 void Display::OnDraw() { | 248 void Display::OnDraw() { |
249 NOTREACHED(); | 249 NOTREACHED(); |
250 } | 250 } |
251 | 251 |
252 void Display::SetNeedsRedrawRect(const gfx::Rect& damage_rect) { | 252 void Display::SetNeedsRedrawRect(const gfx::Rect& damage_rect) { |
253 NOTREACHED(); | 253 aggregator_->SetFullDamageForSurface(current_surface_id_); |
| 254 if (scheduler_) |
| 255 scheduler_->SurfaceDamaged(current_surface_id_); |
254 } | 256 } |
255 | 257 |
256 void Display::ReclaimResources(const CompositorFrameAck* ack) { | 258 void Display::ReclaimResources(const CompositorFrameAck* ack) { |
257 NOTREACHED(); | 259 NOTREACHED(); |
258 } | 260 } |
259 | 261 |
260 void Display::SetExternalDrawConstraints( | 262 void Display::SetExternalDrawConstraints( |
261 const gfx::Transform& transform, | 263 const gfx::Transform& transform, |
262 const gfx::Rect& viewport, | 264 const gfx::Rect& viewport, |
263 const gfx::Rect& clip, | 265 const gfx::Rect& clip, |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
298 | 300 |
299 if (surface_id == current_surface_id_) | 301 if (surface_id == current_surface_id_) |
300 UpdateRootSurfaceResourcesLocked(); | 302 UpdateRootSurfaceResourcesLocked(); |
301 } | 303 } |
302 | 304 |
303 SurfaceId Display::CurrentSurfaceId() { | 305 SurfaceId Display::CurrentSurfaceId() { |
304 return current_surface_id_; | 306 return current_surface_id_; |
305 } | 307 } |
306 | 308 |
307 } // namespace cc | 309 } // namespace cc |
OLD | NEW |