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 280 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
291 | 291 |
292 void Display::CommitVSyncParameters(base::TimeTicks timebase, | 292 void Display::CommitVSyncParameters(base::TimeTicks timebase, |
293 base::TimeDelta interval) { | 293 base::TimeDelta interval) { |
294 client_->CommitVSyncParameters(timebase, interval); | 294 client_->CommitVSyncParameters(timebase, interval); |
295 } | 295 } |
296 | 296 |
297 void Display::SetMemoryPolicy(const ManagedMemoryPolicy& policy) { | 297 void Display::SetMemoryPolicy(const ManagedMemoryPolicy& policy) { |
298 client_->SetMemoryPolicy(policy); | 298 client_->SetMemoryPolicy(policy); |
299 } | 299 } |
300 | 300 |
301 void Display::OnDraw() { | 301 void Display::OnDraw(const gfx::Transform& transform, |
| 302 const gfx::Rect& viewport, |
| 303 const gfx::Rect& clip, |
| 304 bool resourceless_software_draw) { |
302 NOTREACHED(); | 305 NOTREACHED(); |
303 } | 306 } |
304 | 307 |
305 void Display::SetNeedsRedrawRect(const gfx::Rect& damage_rect) { | 308 void Display::SetNeedsRedrawRect(const gfx::Rect& damage_rect) { |
306 aggregator_->SetFullDamageForSurface(current_surface_id_); | 309 aggregator_->SetFullDamageForSurface(current_surface_id_); |
307 if (scheduler_) | 310 if (scheduler_) |
308 scheduler_->SurfaceDamaged(current_surface_id_); | 311 scheduler_->SurfaceDamaged(current_surface_id_); |
309 } | 312 } |
310 | 313 |
311 void Display::ReclaimResources(const CompositorFrameAck* ack) { | 314 void Display::ReclaimResources(const CompositorFrameAck* ack) { |
312 NOTREACHED(); | 315 NOTREACHED(); |
313 } | 316 } |
314 | 317 |
315 void Display::SetExternalDrawConstraints( | 318 void Display::SetExternalTilePriorityConstraints( |
316 const gfx::Transform& transform, | 319 const gfx::Rect& viewport_rect, |
317 const gfx::Rect& viewport, | 320 const gfx::Transform& transform) { |
318 const gfx::Rect& clip, | |
319 const gfx::Rect& viewport_rect_for_tile_priority, | |
320 const gfx::Transform& transform_for_tile_priority, | |
321 bool resourceless_software_draw) { | |
322 NOTREACHED(); | 321 NOTREACHED(); |
323 } | 322 } |
324 | 323 |
325 void Display::SetTreeActivationCallback(const base::Closure& callback) { | 324 void Display::SetTreeActivationCallback(const base::Closure& callback) { |
326 NOTREACHED(); | 325 NOTREACHED(); |
327 } | 326 } |
328 | 327 |
329 void Display::SetFullRootLayerDamage() { | 328 void Display::SetFullRootLayerDamage() { |
330 if (aggregator_ && !current_surface_id_.is_null()) | 329 if (aggregator_ && !current_surface_id_.is_null()) |
331 aggregator_->SetFullDamageForSurface(current_surface_id_); | 330 aggregator_->SetFullDamageForSurface(current_surface_id_); |
(...skipping 21 matching lines...) Expand all Loading... |
353 | 352 |
354 if (surface_id == current_surface_id_) | 353 if (surface_id == current_surface_id_) |
355 UpdateRootSurfaceResourcesLocked(); | 354 UpdateRootSurfaceResourcesLocked(); |
356 } | 355 } |
357 | 356 |
358 SurfaceId Display::CurrentSurfaceId() { | 357 SurfaceId Display::CurrentSurfaceId() { |
359 return current_surface_id_; | 358 return current_surface_id_; |
360 } | 359 } |
361 | 360 |
362 } // namespace cc | 361 } // namespace cc |
OLD | NEW |