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 <set> | 9 #include <set> |
10 #include <utility> | 10 #include <utility> |
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
53 // This class represents a rectangular area that is displayed on the screen. | 53 // This class represents a rectangular area that is displayed on the screen. |
54 // It has a location, size and pixel contents. | 54 // It has a location, size and pixel contents. |
55 class Surface : public ui::ContextFactoryObserver, | 55 class Surface : public ui::ContextFactoryObserver, |
56 public aura::WindowObserver, | 56 public aura::WindowObserver, |
57 public ui::PropertyHandler, | 57 public ui::PropertyHandler, |
58 public ui::CompositorVSyncManager::Observer, | 58 public ui::CompositorVSyncManager::Observer, |
59 public cc::BeginFrameObserverBase { | 59 public cc::BeginFrameObserverBase { |
60 public: | 60 public: |
61 using PropertyDeallocator = void (*)(int64_t value); | 61 using PropertyDeallocator = void (*)(int64_t value); |
62 | 62 |
| 63 static const char kSurfaceWindowName[]; |
| 64 |
63 Surface(); | 65 Surface(); |
64 ~Surface() override; | 66 ~Surface() override; |
65 | 67 |
66 // Type-checking downcast routine. | 68 // Type-checking downcast routine. |
67 static Surface* AsSurface(const aura::Window* window); | 69 static Surface* AsSurface(const aura::Window* window); |
68 | 70 |
69 aura::Window* window() { return window_.get(); } | 71 aura::Window* window() { return window_.get(); } |
70 | 72 |
71 cc::SurfaceId GetSurfaceId() const; | 73 cc::SurfaceId GetSurfaceId() const; |
72 | 74 |
(...skipping 319 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
392 cc::BeginFrameSource* begin_frame_source_ = nullptr; | 394 cc::BeginFrameSource* begin_frame_source_ = nullptr; |
393 bool needs_begin_frame_ = false; | 395 bool needs_begin_frame_ = false; |
394 cc::BeginFrameAck current_begin_frame_ack_; | 396 cc::BeginFrameAck current_begin_frame_ack_; |
395 | 397 |
396 DISALLOW_COPY_AND_ASSIGN(Surface); | 398 DISALLOW_COPY_AND_ASSIGN(Surface); |
397 }; | 399 }; |
398 | 400 |
399 } // namespace exo | 401 } // namespace exo |
400 | 402 |
401 #endif // COMPONENTS_EXO_SURFACE_H_ | 403 #endif // COMPONENTS_EXO_SURFACE_H_ |
OLD | NEW |