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

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

Issue 2188943002: Remove OutputSurfaceClient external clip (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: viewport -> viewport_size Created 4 years, 4 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/test/fake_output_surface_client.h » ('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/trace_event/trace_event.h" 10 #include "base/trace_event/trace_event.h"
(...skipping 355 matching lines...) Expand 10 before | Expand all | Expand 10 after
366 // from the OutputSurface for the Display. 366 // from the OutputSurface for the Display.
367 NOTREACHED(); 367 NOTREACHED();
368 } 368 }
369 369
370 void Display::SetMemoryPolicy(const ManagedMemoryPolicy& policy) { 370 void Display::SetMemoryPolicy(const ManagedMemoryPolicy& policy) {
371 client_->DisplaySetMemoryPolicy(policy); 371 client_->DisplaySetMemoryPolicy(policy);
372 } 372 }
373 373
374 void Display::OnDraw(const gfx::Transform& transform, 374 void Display::OnDraw(const gfx::Transform& transform,
375 const gfx::Rect& viewport, 375 const gfx::Rect& viewport,
376 const gfx::Rect& clip,
377 bool resourceless_software_draw) { 376 bool resourceless_software_draw) {
378 NOTREACHED(); 377 NOTREACHED();
379 } 378 }
380 379
381 void Display::SetNeedsRedrawRect(const gfx::Rect& damage_rect) { 380 void Display::SetNeedsRedrawRect(const gfx::Rect& damage_rect) {
382 aggregator_->SetFullDamageForSurface(current_surface_id_); 381 aggregator_->SetFullDamageForSurface(current_surface_id_);
383 if (scheduler_) 382 if (scheduler_)
384 scheduler_->SurfaceDamaged(current_surface_id_); 383 scheduler_->SurfaceDamaged(current_surface_id_);
385 } 384 }
386 385
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
425 424
426 if (surface_id == current_surface_id_) 425 if (surface_id == current_surface_id_)
427 UpdateRootSurfaceResourcesLocked(); 426 UpdateRootSurfaceResourcesLocked();
428 } 427 }
429 428
430 const SurfaceId& Display::CurrentSurfaceId() { 429 const SurfaceId& Display::CurrentSurfaceId() {
431 return current_surface_id_; 430 return current_surface_id_;
432 } 431 }
433 432
434 } // namespace cc 433 } // namespace cc
OLDNEW
« no previous file with comments | « cc/surfaces/display.h ('k') | cc/test/fake_output_surface_client.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698