| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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_COMPOSITOR_FRAME_SINK_SUPPORT_H_ | 5 #ifndef CC_SURFACES_COMPOSITOR_FRAME_SINK_SUPPORT_H_ |
| 6 #define CC_SURFACES_COMPOSITOR_FRAME_SINK_SUPPORT_H_ | 6 #define CC_SURFACES_COMPOSITOR_FRAME_SINK_SUPPORT_H_ |
| 7 | 7 |
| 8 #include "base/compiler_specific.h" | 8 #include "base/compiler_specific.h" |
| 9 #include "base/memory/weak_ptr.h" | 9 #include "base/memory/weak_ptr.h" |
| 10 #include "cc/output/compositor_frame.h" | 10 #include "cc/output/compositor_frame.h" |
| (...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 87 | 87 |
| 88 // The last begin frame args generated by the begin frame source. | 88 // The last begin frame args generated by the begin frame source. |
| 89 BeginFrameArgs last_begin_frame_args_; | 89 BeginFrameArgs last_begin_frame_args_; |
| 90 | 90 |
| 91 // Whether a request for begin frames has been issued. | 91 // Whether a request for begin frames has been issued. |
| 92 bool needs_begin_frame_ = false; | 92 bool needs_begin_frame_ = false; |
| 93 | 93 |
| 94 // Whether or not a frame observer has been added. | 94 // Whether or not a frame observer has been added. |
| 95 bool added_frame_observer_ = false; | 95 bool added_frame_observer_ = false; |
| 96 | 96 |
| 97 // The set of BeginFrame children of this CompositorFrameSink. |
| 98 std::unordered_set<FrameSinkId, FrameSinkIdHash> child_frame_sinks_; |
| 99 |
| 97 base::WeakPtrFactory<CompositorFrameSinkSupport> weak_factory_; | 100 base::WeakPtrFactory<CompositorFrameSinkSupport> weak_factory_; |
| 98 | 101 |
| 99 DISALLOW_COPY_AND_ASSIGN(CompositorFrameSinkSupport); | 102 DISALLOW_COPY_AND_ASSIGN(CompositorFrameSinkSupport); |
| 100 }; | 103 }; |
| 101 | 104 |
| 102 } // namespace cc | 105 } // namespace cc |
| 103 | 106 |
| 104 #endif // CC_SURFACES_COMPOSITOR_FRAME_SINK_SUPPORT_H_ | 107 #endif // CC_SURFACES_COMPOSITOR_FRAME_SINK_SUPPORT_H_ |
| OLD | NEW |