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

Side by Side Diff: components/exo/surface.h

Issue 2514033002: Introducing SurfaceReferenceFactory (Closed)
Patch Set: rebase Created 4 years 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/trees/layer_tree_host_impl.cc ('k') | components/exo/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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 COMPONENTS_EXO_SURFACE_H_ 5 #ifndef COMPONENTS_EXO_SURFACE_H_
6 #define COMPONENTS_EXO_SURFACE_H_ 6 #define COMPONENTS_EXO_SURFACE_H_
7 7
8 #include <list> 8 #include <list>
9 #include <memory> 9 #include <memory>
10 #include <set> 10 #include <set>
(...skipping 362 matching lines...) Expand 10 before | Expand all | Expand 10 after
373 const char* name; 373 const char* name;
374 int64_t value; 374 int64_t value;
375 PropertyDeallocator deallocator; 375 PropertyDeallocator deallocator;
376 }; 376 };
377 377
378 std::map<const void*, Value> prop_map_; 378 std::map<const void*, Value> prop_map_;
379 379
380 // Surface observer list. Surface does not own the observers. 380 // Surface observer list. Surface does not own the observers.
381 base::ObserverList<SurfaceObserver, true> observers_; 381 base::ObserverList<SurfaceObserver, true> observers_;
382 382
383 // A reference factory that uses the compositor frame sink holder provided
384 // to this class to construct surface references. This object is passed to
385 // ui::Layer::SetShowSurface because the layer needs to know how to add
386 // references to surfaces.
387 scoped_refptr<cc::SurfaceReferenceFactory> surface_reference_factory_;
388
383 DISALLOW_COPY_AND_ASSIGN(Surface); 389 DISALLOW_COPY_AND_ASSIGN(Surface);
384 }; 390 };
385 391
386 } // namespace exo 392 } // namespace exo
387 393
388 #endif // COMPONENTS_EXO_SURFACE_H_ 394 #endif // COMPONENTS_EXO_SURFACE_H_
OLDNEW
« no previous file with comments | « cc/trees/layer_tree_host_impl.cc ('k') | components/exo/surface.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698