| 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 CC_TREES_PROXY_MAIN_H_ | 5 #ifndef CC_TREES_PROXY_MAIN_H_ |
| 6 #define CC_TREES_PROXY_MAIN_H_ | 6 #define CC_TREES_PROXY_MAIN_H_ |
| 7 | 7 |
| 8 #include "base/macros.h" | 8 #include "base/macros.h" |
| 9 #include "cc/animation/animation_events.h" | |
| 10 #include "cc/base/cc_export.h" | 9 #include "cc/base/cc_export.h" |
| 11 #include "cc/debug/frame_timing_tracker.h" | 10 #include "cc/debug/frame_timing_tracker.h" |
| 12 #include "cc/input/top_controls_state.h" | 11 #include "cc/input/top_controls_state.h" |
| 13 #include "cc/output/output_surface.h" | 12 #include "cc/output/output_surface.h" |
| 14 #include "cc/output/renderer_capabilities.h" | 13 #include "cc/output/renderer_capabilities.h" |
| 15 #include "cc/trees/channel_main.h" | 14 #include "cc/trees/channel_main.h" |
| 16 #include "cc/trees/proxy.h" | 15 #include "cc/trees/proxy.h" |
| 17 #include "cc/trees/proxy_common.h" | 16 #include "cc/trees/proxy_common.h" |
| 18 | 17 |
| 19 namespace cc { | 18 namespace cc { |
| 19 |
| 20 class AnimationEvents; |
| 20 class BeginFrameSource; | 21 class BeginFrameSource; |
| 21 class ChannelMain; | 22 class ChannelMain; |
| 22 class LayerTreeHost; | 23 class LayerTreeHost; |
| 23 | 24 |
| 24 // This class aggregates all interactions that the impl side of the compositor | 25 // This class aggregates all interactions that the impl side of the compositor |
| 25 // needs to have with the main side. | 26 // needs to have with the main side. |
| 26 // The class is created and lives on the main thread. | 27 // The class is created and lives on the main thread. |
| 27 class CC_EXPORT ProxyMain : public Proxy { | 28 class CC_EXPORT ProxyMain : public Proxy { |
| 28 public: | 29 public: |
| 29 static scoped_ptr<ProxyMain> CreateThreaded( | 30 static scoped_ptr<ProxyMain> CreateThreaded( |
| (...skipping 11 matching lines...) Expand all Loading... |
| 41 UPDATE_LAYERS_PIPELINE_STAGE, | 42 UPDATE_LAYERS_PIPELINE_STAGE, |
| 42 COMMIT_PIPELINE_STAGE, | 43 COMMIT_PIPELINE_STAGE, |
| 43 }; | 44 }; |
| 44 | 45 |
| 45 // Virtual for testing. | 46 // Virtual for testing. |
| 46 virtual void DidCompleteSwapBuffers(); | 47 virtual void DidCompleteSwapBuffers(); |
| 47 virtual void SetRendererCapabilities( | 48 virtual void SetRendererCapabilities( |
| 48 const RendererCapabilities& capabilities); | 49 const RendererCapabilities& capabilities); |
| 49 virtual void BeginMainFrameNotExpectedSoon(); | 50 virtual void BeginMainFrameNotExpectedSoon(); |
| 50 virtual void DidCommitAndDrawFrame(); | 51 virtual void DidCommitAndDrawFrame(); |
| 51 virtual void SetAnimationEvents(scoped_ptr<AnimationEventsVector> queue); | 52 virtual void SetAnimationEvents(scoped_ptr<AnimationEvents> events); |
| 52 virtual void DidLoseOutputSurface(); | 53 virtual void DidLoseOutputSurface(); |
| 53 virtual void RequestNewOutputSurface(); | 54 virtual void RequestNewOutputSurface(); |
| 54 virtual void DidInitializeOutputSurface( | 55 virtual void DidInitializeOutputSurface( |
| 55 bool success, | 56 bool success, |
| 56 const RendererCapabilities& capabilities); | 57 const RendererCapabilities& capabilities); |
| 57 virtual void DidCompletePageScaleAnimation(); | 58 virtual void DidCompletePageScaleAnimation(); |
| 58 virtual void PostFrameTimingEventsOnMain( | 59 virtual void PostFrameTimingEventsOnMain( |
| 59 scoped_ptr<FrameTimingTracker::CompositeTimingSet> composite_events, | 60 scoped_ptr<FrameTimingTracker::CompositeTimingSet> composite_events, |
| 60 scoped_ptr<FrameTimingTracker::MainFrameTimingSet> main_frame_events); | 61 scoped_ptr<FrameTimingTracker::MainFrameTimingSet> main_frame_events); |
| 61 virtual void BeginMainFrame( | 62 virtual void BeginMainFrame( |
| (...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 144 RendererCapabilities renderer_capabilities_; | 145 RendererCapabilities renderer_capabilities_; |
| 145 | 146 |
| 146 scoped_ptr<ChannelMain> channel_main_; | 147 scoped_ptr<ChannelMain> channel_main_; |
| 147 | 148 |
| 148 DISALLOW_COPY_AND_ASSIGN(ProxyMain); | 149 DISALLOW_COPY_AND_ASSIGN(ProxyMain); |
| 149 }; | 150 }; |
| 150 | 151 |
| 151 } // namespace cc | 152 } // namespace cc |
| 152 | 153 |
| 153 #endif // CC_TREES_PROXY_MAIN_H_ | 154 #endif // CC_TREES_PROXY_MAIN_H_ |
| OLD | NEW |