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

Side by Side Diff: cc/surfaces/surface_factory.h

Issue 1128733002: Update from https://crrev.com/328418 (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 7 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_aggregator.h ('k') | mojo/common/task_tracker.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 #ifndef CC_SURFACES_SURFACE_FACTORY_H_ 5 #ifndef CC_SURFACES_SURFACE_FACTORY_H_
6 #define CC_SURFACES_SURFACE_FACTORY_H_ 6 #define CC_SURFACES_SURFACE_FACTORY_H_
7 7
8 #include <set> 8 #include <set>
9 9
10 #include "base/callback_forward.h" 10 #include "base/callback_forward.h"
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
61 void RefResources(const TransferableResourceArray& resources); 61 void RefResources(const TransferableResourceArray& resources);
62 void UnrefResources(const ReturnedResourceArray& resources); 62 void UnrefResources(const ReturnedResourceArray& resources);
63 63
64 SurfaceManager* manager() { return manager_; } 64 SurfaceManager* manager() { return manager_; }
65 65
66 private: 66 private:
67 SurfaceManager* manager_; 67 SurfaceManager* manager_;
68 SurfaceFactoryClient* client_; 68 SurfaceFactoryClient* client_;
69 SurfaceResourceHolder holder_; 69 SurfaceResourceHolder holder_;
70 70
71 typedef base::ScopedPtrHashMap<SurfaceId, Surface> OwningSurfaceMap; 71 typedef base::ScopedPtrHashMap<SurfaceId, scoped_ptr<Surface>> OwningSurfaceMa p;
72 base::ScopedPtrHashMap<SurfaceId, Surface> surface_map_; 72 OwningSurfaceMap surface_map_;
73 73
74 DISALLOW_COPY_AND_ASSIGN(SurfaceFactory); 74 DISALLOW_COPY_AND_ASSIGN(SurfaceFactory);
75 }; 75 };
76 76
77 } // namespace cc 77 } // namespace cc
78 78
79 #endif // CC_SURFACES_SURFACE_FACTORY_H_ 79 #endif // CC_SURFACES_SURFACE_FACTORY_H_
OLDNEW
« no previous file with comments | « cc/surfaces/surface_aggregator.h ('k') | mojo/common/task_tracker.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698