| 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 288 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 299 | 299 |
| 300 void Display::CommitVSyncParameters(base::TimeTicks timebase, | 300 void Display::CommitVSyncParameters(base::TimeTicks timebase, |
| 301 base::TimeDelta interval) { | 301 base::TimeDelta interval) { |
| 302 client_->CommitVSyncParameters(timebase, interval); | 302 client_->CommitVSyncParameters(timebase, interval); |
| 303 } | 303 } |
| 304 | 304 |
| 305 void Display::SetMemoryPolicy(const ManagedMemoryPolicy& policy) { | 305 void Display::SetMemoryPolicy(const ManagedMemoryPolicy& policy) { |
| 306 client_->SetMemoryPolicy(policy); | 306 client_->SetMemoryPolicy(policy); |
| 307 } | 307 } |
| 308 | 308 |
| 309 void Display::OnDraw() { | 309 void Display::OnDraw(const gfx::Transform& transform, |
| 310 const gfx::Rect& viewport, |
| 311 const gfx::Rect& clip, |
| 312 bool resourceless_software_draw) { |
| 310 NOTREACHED(); | 313 NOTREACHED(); |
| 311 } | 314 } |
| 312 | 315 |
| 313 void Display::SetNeedsRedrawRect(const gfx::Rect& damage_rect) { | 316 void Display::SetNeedsRedrawRect(const gfx::Rect& damage_rect) { |
| 314 aggregator_->SetFullDamageForSurface(current_surface_id_); | 317 aggregator_->SetFullDamageForSurface(current_surface_id_); |
| 315 if (scheduler_) | 318 if (scheduler_) |
| 316 scheduler_->SurfaceDamaged(current_surface_id_); | 319 scheduler_->SurfaceDamaged(current_surface_id_); |
| 317 } | 320 } |
| 318 | 321 |
| 319 void Display::ReclaimResources(const CompositorFrameAck* ack) { | 322 void Display::ReclaimResources(const CompositorFrameAck* ack) { |
| 320 NOTREACHED(); | 323 NOTREACHED(); |
| 321 } | 324 } |
| 322 | 325 |
| 323 void Display::SetExternalDrawConstraints( | 326 void Display::SetExternalTilePriorityConstraints( |
| 324 const gfx::Transform& transform, | 327 const gfx::Rect& viewport_rect, |
| 325 const gfx::Rect& viewport, | 328 const gfx::Transform& transform) { |
| 326 const gfx::Rect& clip, | |
| 327 const gfx::Rect& viewport_rect_for_tile_priority, | |
| 328 const gfx::Transform& transform_for_tile_priority, | |
| 329 bool resourceless_software_draw) { | |
| 330 NOTREACHED(); | 329 NOTREACHED(); |
| 331 } | 330 } |
| 332 | 331 |
| 333 void Display::SetTreeActivationCallback(const base::Closure& callback) { | 332 void Display::SetTreeActivationCallback(const base::Closure& callback) { |
| 334 NOTREACHED(); | 333 NOTREACHED(); |
| 335 } | 334 } |
| 336 | 335 |
| 337 void Display::SetFullRootLayerDamage() { | 336 void Display::SetFullRootLayerDamage() { |
| 338 if (aggregator_ && !current_surface_id_.is_null()) | 337 if (aggregator_ && !current_surface_id_.is_null()) |
| 339 aggregator_->SetFullDamageForSurface(current_surface_id_); | 338 aggregator_->SetFullDamageForSurface(current_surface_id_); |
| (...skipping 21 matching lines...) Expand all Loading... |
| 361 | 360 |
| 362 if (surface_id == current_surface_id_) | 361 if (surface_id == current_surface_id_) |
| 363 UpdateRootSurfaceResourcesLocked(); | 362 UpdateRootSurfaceResourcesLocked(); |
| 364 } | 363 } |
| 365 | 364 |
| 366 SurfaceId Display::CurrentSurfaceId() { | 365 SurfaceId Display::CurrentSurfaceId() { |
| 367 return current_surface_id_; | 366 return current_surface_id_; |
| 368 } | 367 } |
| 369 | 368 |
| 370 } // namespace cc | 369 } // namespace cc |
| OLD | NEW |