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

Side by Side Diff: cc/surfaces/surface_manager.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/surface_manager.h ('k') | cc/surfaces/surface_observer.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/surface_manager.h" 5 #include "cc/surfaces/surface_manager.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <queue> 10 #include <queue>
(...skipping 477 matching lines...) Expand 10 before | Expand all | Expand 10 after
488 } 488 }
489 489
490 bool SurfaceManager::SurfaceModified(const SurfaceId& surface_id) { 490 bool SurfaceManager::SurfaceModified(const SurfaceId& surface_id) {
491 CHECK(thread_checker_.CalledOnValidThread()); 491 CHECK(thread_checker_.CalledOnValidThread());
492 bool changed = false; 492 bool changed = false;
493 for (auto& observer : observer_list_) 493 for (auto& observer : observer_list_)
494 observer.OnSurfaceDamaged(surface_id, &changed); 494 observer.OnSurfaceDamaged(surface_id, &changed);
495 return changed; 495 return changed;
496 } 496 }
497 497
498 void SurfaceManager::SurfaceCreated(const SurfaceId& surface_id, 498 void SurfaceManager::SurfaceCreated(const SurfaceInfo& surface_info) {
499 const gfx::Size& frame_size,
500 float device_scale_factor) {
501 CHECK(thread_checker_.CalledOnValidThread()); 499 CHECK(thread_checker_.CalledOnValidThread());
502 for (auto& observer : observer_list_) 500 for (auto& observer : observer_list_)
503 observer.OnSurfaceCreated(surface_id, frame_size, device_scale_factor); 501 observer.OnSurfaceCreated(surface_info);
504 } 502 }
505 503
506 } // namespace cc 504 } // namespace cc
OLDNEW
« no previous file with comments | « cc/surfaces/surface_manager.h ('k') | cc/surfaces/surface_observer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698