OLD | NEW |
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 Loading... |
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_ |
OLD | NEW |