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

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

Issue 2321883002: cc: Remove SetMemoryPolicy from OutputSurface and Display. (Closed)
Patch Set: nits Created 4 years, 3 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/output/output_surface_client.h ('k') | cc/surfaces/display_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 353 matching lines...) Expand 10 before | Expand all | Expand 10 after
364 renderer_->DidReceiveTextureInUseResponses(responses); 364 renderer_->DidReceiveTextureInUseResponses(responses);
365 } 365 }
366 366
367 void Display::SetBeginFrameSource(BeginFrameSource* source) { 367 void Display::SetBeginFrameSource(BeginFrameSource* source) {
368 // The BeginFrameSource is set from the constructor, it doesn't come 368 // The BeginFrameSource is set from the constructor, it doesn't come
369 // from the OutputSurface for the Display. 369 // from the OutputSurface for the Display.
370 NOTREACHED(); 370 NOTREACHED();
371 } 371 }
372 372
373 void Display::SetMemoryPolicy(const ManagedMemoryPolicy& policy) { 373 void Display::SetMemoryPolicy(const ManagedMemoryPolicy& policy) {
374 client_->DisplaySetMemoryPolicy(policy); 374 // This is only for LayerTreeHostImpl.
375 NOTREACHED();
375 } 376 }
376 377
377 void Display::OnDraw(const gfx::Transform& transform, 378 void Display::OnDraw(const gfx::Transform& transform,
378 const gfx::Rect& viewport, 379 const gfx::Rect& viewport,
379 bool resourceless_software_draw) { 380 bool resourceless_software_draw) {
380 NOTREACHED(); 381 NOTREACHED();
381 } 382 }
382 383
383 void Display::SetNeedsRedrawRect(const gfx::Rect& damage_rect) { 384 void Display::SetNeedsRedrawRect(const gfx::Rect& damage_rect) {
384 aggregator_->SetFullDamageForSurface(current_surface_id_); 385 aggregator_->SetFullDamageForSurface(current_surface_id_);
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
427 const SurfaceId& Display::CurrentSurfaceId() { 428 const SurfaceId& Display::CurrentSurfaceId() {
428 return current_surface_id_; 429 return current_surface_id_;
429 } 430 }
430 431
431 void Display::ForceImmediateDrawAndSwapIfPossible() { 432 void Display::ForceImmediateDrawAndSwapIfPossible() {
432 if (scheduler_) 433 if (scheduler_)
433 scheduler_->ForceImmediateSwapIfPossible(); 434 scheduler_->ForceImmediateSwapIfPossible();
434 } 435 }
435 436
436 } // namespace cc 437 } // namespace cc
OLDNEW
« no previous file with comments | « cc/output/output_surface_client.h ('k') | cc/surfaces/display_client.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698