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