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

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

Issue 2610723002: Unify SurfaceInfo (Closed)
Patch Set: Cleanup offscreen canvas Created 3 years, 11 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_factory.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/trace_event/trace_event.h" 10 #include "base/trace_event/trace_event.h"
(...skipping 374 matching lines...) Expand 10 before | Expand all | Expand 10 after
385 } else if (surface_id == current_surface_id_) { 385 } else if (surface_id == current_surface_id_) {
386 if (scheduler_) 386 if (scheduler_)
387 scheduler_->SurfaceDamaged(surface_id); 387 scheduler_->SurfaceDamaged(surface_id);
388 *changed = true; 388 *changed = true;
389 } 389 }
390 390
391 if (surface_id == current_surface_id_) 391 if (surface_id == current_surface_id_)
392 UpdateRootSurfaceResourcesLocked(); 392 UpdateRootSurfaceResourcesLocked();
393 } 393 }
394 394
395 void Display::OnSurfaceCreated(const SurfaceId& surface_id, 395 void Display::OnSurfaceCreated(const SurfaceInfo& surface_info) {}
396 const gfx::Size& frame,
397 float device_scale_factor) {}
398 396
399 const SurfaceId& Display::CurrentSurfaceId() { 397 const SurfaceId& Display::CurrentSurfaceId() {
400 return current_surface_id_; 398 return current_surface_id_;
401 } 399 }
402 400
403 void Display::ForceImmediateDrawAndSwapIfPossible() { 401 void Display::ForceImmediateDrawAndSwapIfPossible() {
404 if (scheduler_) 402 if (scheduler_)
405 scheduler_->ForceImmediateSwapIfPossible(); 403 scheduler_->ForceImmediateSwapIfPossible();
406 } 404 }
407 405
408 } // namespace cc 406 } // namespace cc
OLDNEW
« no previous file with comments | « cc/surfaces/display.h ('k') | cc/surfaces/surface_factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698