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

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

Issue 2644653003: Make OffscreenCanvas animation in sync with its placeholder canvas's parent frame rate (Closed)
Patch Set: rebase again Created 3 years, 10 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 97 matching lines...) Expand 10 before | Expand all | Expand 10 after
108 const std::string& name, 108 const std::string& name,
109 std::unique_ptr<base::Value> value, 109 std::unique_ptr<base::Value> value,
110 const base::Callback<void(std::unique_ptr<base::Value>)>& callback); 110 const base::Callback<void(std::unique_ptr<base::Value>)>& callback);
111 bool SendMessageToMicroBenchmark(int id, std::unique_ptr<base::Value> value); 111 bool SendMessageToMicroBenchmark(int id, std::unique_ptr<base::Value> value);
112 void SetFrameSinkId(const cc::FrameSinkId& frame_sink_id); 112 void SetFrameSinkId(const cc::FrameSinkId& frame_sink_id);
113 void SetPaintedDeviceScaleFactor(float device_scale); 113 void SetPaintedDeviceScaleFactor(float device_scale);
114 void SetDeviceColorSpace(const gfx::ColorSpace& color_space); 114 void SetDeviceColorSpace(const gfx::ColorSpace& color_space);
115 void SetIsForOopif(bool is_for_oopif); 115 void SetIsForOopif(bool is_for_oopif);
116 116
117 // WebLayerTreeView implementation. 117 // WebLayerTreeView implementation.
118 cc::FrameSinkId getFrameSinkId() override;
118 void setRootLayer(const blink::WebLayer& layer) override; 119 void setRootLayer(const blink::WebLayer& layer) override;
119 void clearRootLayer() override; 120 void clearRootLayer() override;
120 cc::AnimationHost* compositorAnimationHost() override; 121 cc::AnimationHost* compositorAnimationHost() override;
121 void setViewportSize(const blink::WebSize& device_viewport_size) override; 122 void setViewportSize(const blink::WebSize& device_viewport_size) override;
122 blink::WebSize getViewportSize() const override; 123 blink::WebSize getViewportSize() const override;
123 virtual blink::WebFloatPoint adjustEventPointForPinchZoom( 124 virtual blink::WebFloatPoint adjustEventPointForPinchZoom(
124 const blink::WebFloatPoint& point) const; 125 const blink::WebFloatPoint& point) const;
125 void setDeviceScaleFactor(float device_scale) override; 126 void setDeviceScaleFactor(float device_scale) override;
126 void setBackgroundColor(blink::WebColor color) override; 127 void setBackgroundColor(blink::WebColor color) override;
127 void setHasTransparentBackground(bool transparent) override; 128 void setHasTransparentBackground(bool transparent) override;
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after
233 blink::WebLayoutAndPaintAsyncCallback* layout_and_paint_async_callback_; 234 blink::WebLayoutAndPaintAsyncCallback* layout_and_paint_async_callback_;
234 235
235 cc::FrameSinkId frame_sink_id_; 236 cc::FrameSinkId frame_sink_id_;
236 237
237 base::WeakPtrFactory<RenderWidgetCompositor> weak_factory_; 238 base::WeakPtrFactory<RenderWidgetCompositor> weak_factory_;
238 }; 239 };
239 240
240 } // namespace content 241 } // namespace content
241 242
242 #endif // CONTENT_RENDERER_GPU_RENDER_WIDGET_COMPOSITOR_H_ 243 #endif // CONTENT_RENDERER_GPU_RENDER_WIDGET_COMPOSITOR_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698