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

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

Issue 432093003: Enqueuing new frames in a Surface should cause Displays to reaggregate it (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 4 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 | Annotate | Revision Log
« no previous file with comments | « cc/surfaces/surface_manager.h ('k') | cc/surfaces/surfaces_pixeltest.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/surface_manager.h" 5 #include "cc/surfaces/surface_manager.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "cc/surfaces/surface.h" 8 #include "cc/surfaces/surface.h"
9 9
10 namespace cc { 10 namespace cc {
(...skipping 17 matching lines...) Expand all
28 surface_map_.erase(it); 28 surface_map_.erase(it);
29 } 29 }
30 30
31 Surface* SurfaceManager::GetSurfaceForId(SurfaceId surface_id) { 31 Surface* SurfaceManager::GetSurfaceForId(SurfaceId surface_id) {
32 SurfaceMap::iterator it = surface_map_.find(surface_id); 32 SurfaceMap::iterator it = surface_map_.find(surface_id);
33 if (it == surface_map_.end()) 33 if (it == surface_map_.end())
34 return NULL; 34 return NULL;
35 return it->second; 35 return it->second;
36 } 36 }
37 37
38 void SurfaceManager::SurfaceModified(SurfaceId surface_id) {
39 FOR_EACH_OBSERVER(
40 SurfaceDamageObserver, observer_list_, OnSurfaceDamaged(surface_id));
41 }
42
38 } // namespace cc 43 } // namespace cc
OLDNEW
« no previous file with comments | « cc/surfaces/surface_manager.h ('k') | cc/surfaces/surfaces_pixeltest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698