| 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 BLIMP_CLIENT_COMPOSITOR_BLIMP_COMPOSITOR_H_ | 5 #ifndef BLIMP_CLIENT_COMPOSITOR_BLIMP_COMPOSITOR_H_ |
| 6 #define BLIMP_CLIENT_COMPOSITOR_BLIMP_COMPOSITOR_H_ | 6 #define BLIMP_CLIENT_COMPOSITOR_BLIMP_COMPOSITOR_H_ |
| 7 | 7 |
| 8 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "base/macros.h" | 10 #include "base/macros.h" |
| 11 #include "base/memory/ref_counted.h" | 11 #include "base/memory/ref_counted.h" |
| 12 #include "base/memory/scoped_ptr.h" | 12 #include "base/memory/scoped_ptr.h" |
| 13 #include "blimp/client/blimp_client_export.h" | 13 #include "blimp/client/blimp_client_export.h" |
| 14 #include "blimp/client/input/blimp_input_manager.h" | 14 #include "blimp/client/input/blimp_input_manager.h" |
| 15 #include "blimp/client/session/render_widget_feature.h" | 15 #include "blimp/client/session/render_widget_feature.h" |
| 16 #include "cc/layers/layer_settings.h" | 16 #include "cc/layers/layer_settings.h" |
| 17 #include "cc/trees/layer_tree_host_client.h" | 17 #include "cc/trees/layer_tree_host_client.h" |
| 18 #include "cc/trees/layer_tree_settings.h" | 18 #include "cc/trees/layer_tree_settings.h" |
| 19 #include "cc/trees/remote_proto_channel.h" | 19 #include "cc/trees/remote_proto_channel.h" |
| 20 #include "ui/gfx/geometry/size.h" | 20 #include "ui/gfx/geometry/size.h" |
| 21 #include "ui/gfx/native_widget_types.h" | 21 #include "ui/gfx/native_widget_types.h" |
| 22 | 22 |
| 23 namespace base { | 23 namespace base { |
| 24 class SingleThreadTaskRunner; | 24 class SingleThreadTaskRunner; |
| 25 class Thread; | 25 class Thread; |
| 26 } | 26 } |
| 27 | 27 |
| 28 namespace cc { | 28 namespace cc { |
| 29 class LayerTreeHost; | 29 class LayerTreeHost; |
| 30 struct LayerTreeMutations; |
| 30 } | 31 } |
| 31 | 32 |
| 32 namespace blimp { | 33 namespace blimp { |
| 33 | 34 |
| 34 class BlimpMessage; | 35 class BlimpMessage; |
| 35 | 36 |
| 36 namespace client { | 37 namespace client { |
| 37 | 38 |
| 38 // BlimpCompositor provides the basic framework and setup to host a | 39 // BlimpCompositor provides the basic framework and setup to host a |
| 39 // LayerTreeHost. The class that owns the LayerTreeHost is usually called the | 40 // LayerTreeHost. The class that owns the LayerTreeHost is usually called the |
| (...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 94 void WillBeginMainFrame() override; | 95 void WillBeginMainFrame() override; |
| 95 void DidBeginMainFrame() override; | 96 void DidBeginMainFrame() override; |
| 96 void BeginMainFrame(const cc::BeginFrameArgs& args) override; | 97 void BeginMainFrame(const cc::BeginFrameArgs& args) override; |
| 97 void BeginMainFrameNotExpectedSoon() override; | 98 void BeginMainFrameNotExpectedSoon() override; |
| 98 void UpdateLayerTreeHost() override; | 99 void UpdateLayerTreeHost() override; |
| 99 void ApplyViewportDeltas(const gfx::Vector2dF& inner_delta, | 100 void ApplyViewportDeltas(const gfx::Vector2dF& inner_delta, |
| 100 const gfx::Vector2dF& outer_delta, | 101 const gfx::Vector2dF& outer_delta, |
| 101 const gfx::Vector2dF& elastic_overscroll_delta, | 102 const gfx::Vector2dF& elastic_overscroll_delta, |
| 102 float page_scale, | 103 float page_scale, |
| 103 float top_controls_delta) override; | 104 float top_controls_delta) override; |
| 105 void ApplyMutations(const cc::LayerTreeMutations& mutations) override; |
| 104 void RequestNewOutputSurface() override; | 106 void RequestNewOutputSurface() override; |
| 105 void DidInitializeOutputSurface() override; | 107 void DidInitializeOutputSurface() override; |
| 106 void DidFailToInitializeOutputSurface() override; | 108 void DidFailToInitializeOutputSurface() override; |
| 107 void WillCommit() override; | 109 void WillCommit() override; |
| 108 void DidCommit() override; | 110 void DidCommit() override; |
| 109 void DidCommitAndDrawFrame() override; | 111 void DidCommitAndDrawFrame() override; |
| 110 void DidCompleteSwapBuffers() override; | 112 void DidCompleteSwapBuffers() override; |
| 111 void DidCompletePageScaleAnimation() override; | 113 void DidCompletePageScaleAnimation() override; |
| 112 void RecordFrameTimingEvents( | 114 void RecordFrameTimingEvents( |
| 113 scoped_ptr<cc::FrameTimingTracker::CompositeTimingSet> composite_events, | 115 scoped_ptr<cc::FrameTimingTracker::CompositeTimingSet> composite_events, |
| (...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 176 // widget. | 178 // widget. |
| 177 scoped_ptr<BlimpInputManager> input_manager_; | 179 scoped_ptr<BlimpInputManager> input_manager_; |
| 178 | 180 |
| 179 DISALLOW_COPY_AND_ASSIGN(BlimpCompositor); | 181 DISALLOW_COPY_AND_ASSIGN(BlimpCompositor); |
| 180 }; | 182 }; |
| 181 | 183 |
| 182 } // namespace client | 184 } // namespace client |
| 183 } // namespace blimp | 185 } // namespace blimp |
| 184 | 186 |
| 185 #endif // BLIMP_CLIENT_COMPOSITOR_BLIMP_COMPOSITOR_H_ | 187 #endif // BLIMP_CLIENT_COMPOSITOR_BLIMP_COMPOSITOR_H_ |
| OLD | NEW |