Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(201)

Side by Side Diff: content/renderer/gpu/render_widget_compositor.h

Issue 2810813004: Hide fullscreen rotation jank (Closed)
Patch Set: Evict frame instead of showing a black frame Created 3 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 111 matching lines...) Expand 10 before | Expand all | Expand 10 after
122 void SetRootLayer(const blink::WebLayer& layer) override; 122 void SetRootLayer(const blink::WebLayer& layer) override;
123 void ClearRootLayer() override; 123 void ClearRootLayer() override;
124 cc::AnimationHost* CompositorAnimationHost() override; 124 cc::AnimationHost* CompositorAnimationHost() override;
125 void SetViewportSize(const blink::WebSize& device_viewport_size) override; 125 void SetViewportSize(const blink::WebSize& device_viewport_size) override;
126 blink::WebSize GetViewportSize() const override; 126 blink::WebSize GetViewportSize() const override;
127 virtual blink::WebFloatPoint adjustEventPointForPinchZoom( 127 virtual blink::WebFloatPoint adjustEventPointForPinchZoom(
128 const blink::WebFloatPoint& point) const; 128 const blink::WebFloatPoint& point) const;
129 void SetDeviceScaleFactor(float device_scale) override; 129 void SetDeviceScaleFactor(float device_scale) override;
130 void SetBackgroundColor(blink::WebColor color) override; 130 void SetBackgroundColor(blink::WebColor color) override;
131 void SetVisible(bool visible) override; 131 void SetVisible(bool visible) override;
132 void SetIsFullscreen(bool is_fullscreen) override;
132 void SetPageScaleFactorAndLimits(float page_scale_factor, 133 void SetPageScaleFactorAndLimits(float page_scale_factor,
133 float minimum, 134 float minimum,
134 float maximum) override; 135 float maximum) override;
135 void StartPageScaleAnimation(const blink::WebPoint& destination, 136 void StartPageScaleAnimation(const blink::WebPoint& destination,
136 bool use_anchor, 137 bool use_anchor,
137 float new_page_scale, 138 float new_page_scale,
138 double duration_sec) override; 139 double duration_sec) override;
139 bool HasPendingPageScaleAnimation() const override; 140 bool HasPendingPageScaleAnimation() const override;
140 void HeuristicsForGpuRasterizationUpdated(bool matches_heuristics) override; 141 void HeuristicsForGpuRasterizationUpdated(bool matches_heuristics) override;
141 void SetNeedsBeginFrame() override; 142 void SetNeedsBeginFrame() override;
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after
247 cc::FrameSinkId frame_sink_id_; 248 cc::FrameSinkId frame_sink_id_;
248 249
249 base::WeakPtrFactory<RenderWidgetCompositor> weak_factory_; 250 base::WeakPtrFactory<RenderWidgetCompositor> weak_factory_;
250 251
251 DISALLOW_COPY_AND_ASSIGN(RenderWidgetCompositor); 252 DISALLOW_COPY_AND_ASSIGN(RenderWidgetCompositor);
252 }; 253 };
253 254
254 } // namespace content 255 } // namespace content
255 256
256 #endif // CONTENT_RENDERER_GPU_RENDER_WIDGET_COMPOSITOR_H_ 257 #endif // CONTENT_RENDERER_GPU_RENDER_WIDGET_COMPOSITOR_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698