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

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

Issue 1327343003: Force swap buffers when re-creating the buffers (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@fix-scanout
Patch Set: Created 5 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
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 "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 258 matching lines...) Expand 10 before | Expand all | Expand 10 after
269 } 269 }
270 270
271 void Display::SetMemoryPolicy(const ManagedMemoryPolicy& policy) { 271 void Display::SetMemoryPolicy(const ManagedMemoryPolicy& policy) {
272 client_->SetMemoryPolicy(policy); 272 client_->SetMemoryPolicy(policy);
273 } 273 }
274 274
275 void Display::OnDraw() { 275 void Display::OnDraw() {
276 NOTREACHED(); 276 NOTREACHED();
277 } 277 }
278 278
279 void Display::ForceSwap() {
280 aggregator_->SetFullDamageForSurface(current_surface_id_);
jbauman 2015/09/10 19:29:50 This won't actually force a swap immediately, it j
dnicoara 2015/09/10 19:39:39 Done.
281 }
282
279 void Display::SetNeedsRedrawRect(const gfx::Rect& damage_rect) { 283 void Display::SetNeedsRedrawRect(const gfx::Rect& damage_rect) {
280 NOTREACHED(); 284 NOTREACHED();
281 } 285 }
282 286
283 void Display::ReclaimResources(const CompositorFrameAck* ack) { 287 void Display::ReclaimResources(const CompositorFrameAck* ack) {
284 NOTREACHED(); 288 NOTREACHED();
285 } 289 }
286 290
287 void Display::SetExternalDrawConstraints( 291 void Display::SetExternalDrawConstraints(
288 const gfx::Transform& transform, 292 const gfx::Transform& transform,
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
325 329
326 if (surface_id == current_surface_id_) 330 if (surface_id == current_surface_id_)
327 UpdateRootSurfaceResourcesLocked(); 331 UpdateRootSurfaceResourcesLocked();
328 } 332 }
329 333
330 SurfaceId Display::CurrentSurfaceId() { 334 SurfaceId Display::CurrentSurfaceId() {
331 return current_surface_id_; 335 return current_surface_id_;
332 } 336 }
333 337
334 } // namespace cc 338 } // namespace cc
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698