| 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 BLIMP_CLIENT_APP_COMPOSITOR_BROWSER_COMPOSITOR_H_ | 5 #ifndef BLIMP_CLIENT_APP_COMPOSITOR_BROWSER_COMPOSITOR_H_ |
| 6 #define BLIMP_CLIENT_APP_COMPOSITOR_BROWSER_COMPOSITOR_H_ | 6 #define BLIMP_CLIENT_APP_COMPOSITOR_BROWSER_COMPOSITOR_H_ |
| 7 | 7 |
| 8 #include "base/macros.h" | 8 #include "base/macros.h" |
| 9 #include "base/callback.h" | 9 #include "base/callback.h" |
| 10 #include "base/memory/weak_ptr.h" | 10 #include "base/memory/weak_ptr.h" |
| (...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 55 void WillBeginMainFrame() override {} | 55 void WillBeginMainFrame() override {} |
| 56 void DidBeginMainFrame() override {} | 56 void DidBeginMainFrame() override {} |
| 57 void BeginMainFrame(const cc::BeginFrameArgs& args) override {} | 57 void BeginMainFrame(const cc::BeginFrameArgs& args) override {} |
| 58 void BeginMainFrameNotExpectedSoon() override {} | 58 void BeginMainFrameNotExpectedSoon() override {} |
| 59 void UpdateLayerTreeHost() override {} | 59 void UpdateLayerTreeHost() override {} |
| 60 void ApplyViewportDeltas(const gfx::Vector2dF& inner_delta, | 60 void ApplyViewportDeltas(const gfx::Vector2dF& inner_delta, |
| 61 const gfx::Vector2dF& outer_delta, | 61 const gfx::Vector2dF& outer_delta, |
| 62 const gfx::Vector2dF& elastic_overscroll_delta, | 62 const gfx::Vector2dF& elastic_overscroll_delta, |
| 63 float page_scale, | 63 float page_scale, |
| 64 float top_controls_delta) override {} | 64 float top_controls_delta) override {} |
| 65 void RequestNewOutputSurface() override; | 65 void RequestNewCompositorFrameSink() override; |
| 66 void DidInitializeOutputSurface() override; | 66 void DidInitializeCompositorFrameSink() override; |
| 67 void DidFailToInitializeOutputSurface() override; | 67 void DidFailToInitializeCompositorFrameSink() override; |
| 68 void WillCommit() override {} | 68 void WillCommit() override {} |
| 69 void DidCommit() override {} | 69 void DidCommit() override {} |
| 70 void DidCommitAndDrawFrame() override {} | 70 void DidCommitAndDrawFrame() override {} |
| 71 void DidCompleteSwapBuffers() override; | 71 void DidCompleteSwapBuffers() override; |
| 72 void DidCompletePageScaleAnimation() override {} | 72 void DidCompletePageScaleAnimation() override {} |
| 73 | 73 |
| 74 // LayerTreeHostSingleThreadClient implementation. | 74 // LayerTreeHostSingleThreadClient implementation. |
| 75 void DidPostSwapBuffers() override {} | 75 void DidPostSwapBuffers() override {} |
| 76 void DidAbortSwapBuffers() override {} | 76 void DidAbortSwapBuffers() override {} |
| 77 | 77 |
| 78 void HandlePendingOutputSurfaceRequest(); | 78 void HandlePendingCompositorFrameSinkRequest(); |
| 79 | 79 |
| 80 CompositorDependencies* compositor_dependencies_; | 80 CompositorDependencies* compositor_dependencies_; |
| 81 | 81 |
| 82 std::unique_ptr<cc::SurfaceIdAllocator> surface_id_allocator_; | 82 std::unique_ptr<cc::SurfaceIdAllocator> surface_id_allocator_; |
| 83 gfx::AcceleratedWidget widget_; | 83 gfx::AcceleratedWidget widget_; |
| 84 bool output_surface_request_pending_; | 84 bool compositor_frame_sink_request_pending_; |
| 85 std::unique_ptr<cc::Display> display_; | 85 std::unique_ptr<cc::Display> display_; |
| 86 | 86 |
| 87 gfx::Size viewport_size_in_px_; | 87 gfx::Size viewport_size_in_px_; |
| 88 | 88 |
| 89 std::unique_ptr<cc::LayerTreeHostInterface> host_; | 89 std::unique_ptr<cc::LayerTreeHostInterface> host_; |
| 90 scoped_refptr<cc::Layer> root_layer_; | 90 scoped_refptr<cc::Layer> root_layer_; |
| 91 | 91 |
| 92 base::Closure did_complete_swap_buffers_; | 92 base::Closure did_complete_swap_buffers_; |
| 93 | 93 |
| 94 DISALLOW_COPY_AND_ASSIGN(BrowserCompositor); | 94 DISALLOW_COPY_AND_ASSIGN(BrowserCompositor); |
| 95 }; | 95 }; |
| 96 | 96 |
| 97 } // namespace client | 97 } // namespace client |
| 98 } // namespace blimp | 98 } // namespace blimp |
| 99 | 99 |
| 100 #endif // BLIMP_CLIENT_APP_COMPOSITOR_BROWSER_COMPOSITOR_H_ | 100 #endif // BLIMP_CLIENT_APP_COMPOSITOR_BROWSER_COMPOSITOR_H_ |
| OLD | NEW |