| OLD | NEW |
| 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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 CONTENT_RENDERER_GPU_RENDER_WIDGET_COMPOSITOR_H_ | 5 #ifndef CONTENT_RENDERER_GPU_RENDER_WIDGET_COMPOSITOR_H_ |
| 6 #define CONTENT_RENDERER_GPU_RENDER_WIDGET_COMPOSITOR_H_ | 6 #define CONTENT_RENDERER_GPU_RENDER_WIDGET_COMPOSITOR_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include "base/callback.h" | 10 #include "base/callback.h" |
| (...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 175 void NotifySwapTime(ReportTimeCallback callback) override; | 175 void NotifySwapTime(ReportTimeCallback callback) override; |
| 176 | 176 |
| 177 void UpdateBrowserControlsState(blink::WebBrowserControlsState constraints, | 177 void UpdateBrowserControlsState(blink::WebBrowserControlsState constraints, |
| 178 blink::WebBrowserControlsState current, | 178 blink::WebBrowserControlsState current, |
| 179 bool animate) override; | 179 bool animate) override; |
| 180 void SetBrowserControlsHeight(float height, bool shrink) override; | 180 void SetBrowserControlsHeight(float height, bool shrink) override; |
| 181 void SetBrowserControlsShownRatio(float) override; | 181 void SetBrowserControlsShownRatio(float) override; |
| 182 // TODO(ianwen): Move this method to WebLayerTreeView and implement main | 182 // TODO(ianwen): Move this method to WebLayerTreeView and implement main |
| 183 // thread scrolling. | 183 // thread scrolling. |
| 184 virtual void setBottomControlsHeight(float height); | 184 virtual void setBottomControlsHeight(float height); |
| 185 void RequestDecode(sk_sp<SkImage> image, | 185 void RequestDecode(const PaintImage& image, |
| 186 const base::Callback<void(bool)>& callback) override; | 186 const base::Callback<void(bool)>& callback) override; |
| 187 | 187 |
| 188 // cc::LayerTreeHostClient implementation. | 188 // cc::LayerTreeHostClient implementation. |
| 189 void WillBeginMainFrame() override; | 189 void WillBeginMainFrame() override; |
| 190 void DidBeginMainFrame() override; | 190 void DidBeginMainFrame() override; |
| 191 void BeginMainFrame(const cc::BeginFrameArgs& args) override; | 191 void BeginMainFrame(const cc::BeginFrameArgs& args) override; |
| 192 void BeginMainFrameNotExpectedSoon() override; | 192 void BeginMainFrameNotExpectedSoon() override; |
| 193 void BeginMainFrameNotExpectedUntil(base::TimeTicks time) override; | 193 void BeginMainFrameNotExpectedUntil(base::TimeTicks time) override; |
| 194 void UpdateLayerTreeHost() override; | 194 void UpdateLayerTreeHost() override; |
| 195 void ApplyViewportDeltas(const gfx::Vector2dF& inner_delta, | 195 void ApplyViewportDeltas(const gfx::Vector2dF& inner_delta, |
| (...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 249 cc::FrameSinkId frame_sink_id_; | 249 cc::FrameSinkId frame_sink_id_; |
| 250 | 250 |
| 251 base::WeakPtrFactory<RenderWidgetCompositor> weak_factory_; | 251 base::WeakPtrFactory<RenderWidgetCompositor> weak_factory_; |
| 252 | 252 |
| 253 DISALLOW_COPY_AND_ASSIGN(RenderWidgetCompositor); | 253 DISALLOW_COPY_AND_ASSIGN(RenderWidgetCompositor); |
| 254 }; | 254 }; |
| 255 | 255 |
| 256 } // namespace content | 256 } // namespace content |
| 257 | 257 |
| 258 #endif // CONTENT_RENDERER_GPU_RENDER_WIDGET_COMPOSITOR_H_ | 258 #endif // CONTENT_RENDERER_GPU_RENDER_WIDGET_COMPOSITOR_H_ |
| OLD | NEW |