Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(45)

Side by Side Diff: cc/surfaces/display.cc

Issue 2147873003: cc: Dedup IPCs to return resources to client (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « cc/surfaces/display.h ('k') | cc/surfaces/surface_display_output_surface.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 <stddef.h> 7 #include <stddef.h>
8 8
9 #include "base/memory/ptr_util.h" 9 #include "base/memory/ptr_util.h"
10 #include "base/threading/thread_task_runner_handle.h" 10 #include "base/threading/thread_task_runner_handle.h"
11 #include "base/trace_event/trace_event.h" 11 #include "base/trace_event/trace_event.h"
12 #include "cc/debug/benchmark_instrumentation.h" 12 #include "cc/debug/benchmark_instrumentation.h"
13 #include "cc/output/compositor_frame.h" 13 #include "cc/output/compositor_frame.h"
14 #include "cc/output/compositor_frame_ack.h"
15 #include "cc/output/direct_renderer.h" 14 #include "cc/output/direct_renderer.h"
16 #include "cc/output/gl_renderer.h" 15 #include "cc/output/gl_renderer.h"
17 #include "cc/output/renderer_settings.h" 16 #include "cc/output/renderer_settings.h"
18 #include "cc/output/software_renderer.h" 17 #include "cc/output/software_renderer.h"
19 #include "cc/output/texture_mailbox_deleter.h" 18 #include "cc/output/texture_mailbox_deleter.h"
20 #include "cc/scheduler/begin_frame_source.h" 19 #include "cc/scheduler/begin_frame_source.h"
21 #include "cc/surfaces/display_client.h" 20 #include "cc/surfaces/display_client.h"
22 #include "cc/surfaces/display_scheduler.h" 21 #include "cc/surfaces/display_scheduler.h"
23 #include "cc/surfaces/surface.h" 22 #include "cc/surfaces/surface.h"
24 #include "cc/surfaces/surface_aggregator.h" 23 #include "cc/surfaces/surface_aggregator.h"
(...skipping 349 matching lines...) Expand 10 before | Expand all | Expand 10 after
374 bool resourceless_software_draw) { 373 bool resourceless_software_draw) {
375 NOTREACHED(); 374 NOTREACHED();
376 } 375 }
377 376
378 void Display::SetNeedsRedrawRect(const gfx::Rect& damage_rect) { 377 void Display::SetNeedsRedrawRect(const gfx::Rect& damage_rect) {
379 aggregator_->SetFullDamageForSurface(current_surface_id_); 378 aggregator_->SetFullDamageForSurface(current_surface_id_);
380 if (scheduler_) 379 if (scheduler_)
381 scheduler_->SurfaceDamaged(current_surface_id_); 380 scheduler_->SurfaceDamaged(current_surface_id_);
382 } 381 }
383 382
384 void Display::ReclaimResources(const CompositorFrameAck* ack) { 383 void Display::ReclaimResources(const ReturnedResourceArray& resources) {
385 NOTREACHED(); 384 NOTREACHED();
386 } 385 }
387 386
388 void Display::SetExternalTilePriorityConstraints( 387 void Display::SetExternalTilePriorityConstraints(
389 const gfx::Rect& viewport_rect, 388 const gfx::Rect& viewport_rect,
390 const gfx::Transform& transform) { 389 const gfx::Transform& transform) {
391 NOTREACHED(); 390 NOTREACHED();
392 } 391 }
393 392
394 void Display::SetTreeActivationCallback(const base::Closure& callback) { 393 void Display::SetTreeActivationCallback(const base::Closure& callback) {
(...skipping 27 matching lines...) Expand all
422 421
423 if (surface_id == current_surface_id_) 422 if (surface_id == current_surface_id_)
424 UpdateRootSurfaceResourcesLocked(); 423 UpdateRootSurfaceResourcesLocked();
425 } 424 }
426 425
427 const SurfaceId& Display::CurrentSurfaceId() { 426 const SurfaceId& Display::CurrentSurfaceId() {
428 return current_surface_id_; 427 return current_surface_id_;
429 } 428 }
430 429
431 } // namespace cc 430 } // namespace cc
OLDNEW
« no previous file with comments | « cc/surfaces/display.h ('k') | cc/surfaces/surface_display_output_surface.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698