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

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: update 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
« no previous file with comments | « no previous file | content/browser/compositor/gpu_surfaceless_browser_compositor_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 "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 259 matching lines...) Expand 10 before | Expand all | Expand 10 after
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::SetNeedsRedrawRect(const gfx::Rect& damage_rect) { 279 void Display::SetNeedsRedrawRect(const gfx::Rect& damage_rect) {
280 NOTREACHED(); 280 aggregator_->SetFullDamageForSurface(current_surface_id_);
281 if (scheduler_)
282 scheduler_->SurfaceDamaged(current_surface_id_);
281 } 283 }
282 284
283 void Display::ReclaimResources(const CompositorFrameAck* ack) { 285 void Display::ReclaimResources(const CompositorFrameAck* ack) {
284 NOTREACHED(); 286 NOTREACHED();
285 } 287 }
286 288
287 void Display::SetExternalDrawConstraints( 289 void Display::SetExternalDrawConstraints(
288 const gfx::Transform& transform, 290 const gfx::Transform& transform,
289 const gfx::Rect& viewport, 291 const gfx::Rect& viewport,
290 const gfx::Rect& clip, 292 const gfx::Rect& clip,
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
325 327
326 if (surface_id == current_surface_id_) 328 if (surface_id == current_surface_id_)
327 UpdateRootSurfaceResourcesLocked(); 329 UpdateRootSurfaceResourcesLocked();
328 } 330 }
329 331
330 SurfaceId Display::CurrentSurfaceId() { 332 SurfaceId Display::CurrentSurfaceId() {
331 return current_surface_id_; 333 return current_surface_id_;
332 } 334 }
333 335
334 } // namespace cc 336 } // namespace cc
OLDNEW
« no previous file with comments | « no previous file | content/browser/compositor/gpu_surfaceless_browser_compositor_output_surface.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698