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

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

Issue 2652643004: Make PageScaleFactor work for oopif subframes.
Patch Set: Put function prototype in correct place. 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
« no previous file with comments | « content/common/frame_messages.h ('k') | content/renderer/gpu/render_widget_compositor.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 96 matching lines...) Expand 10 before | Expand all | Expand 10 after
107 const cc::Layer* GetRootLayer() const; 107 const cc::Layer* GetRootLayer() const;
108 int ScheduleMicroBenchmark( 108 int ScheduleMicroBenchmark(
109 const std::string& name, 109 const std::string& name,
110 std::unique_ptr<base::Value> value, 110 std::unique_ptr<base::Value> value,
111 const base::Callback<void(std::unique_ptr<base::Value>)>& callback); 111 const base::Callback<void(std::unique_ptr<base::Value>)>& callback);
112 bool SendMessageToMicroBenchmark(int id, std::unique_ptr<base::Value> value); 112 bool SendMessageToMicroBenchmark(int id, std::unique_ptr<base::Value> value);
113 void SetFrameSinkId(const cc::FrameSinkId& frame_sink_id); 113 void SetFrameSinkId(const cc::FrameSinkId& frame_sink_id);
114 void SetPaintedDeviceScaleFactor(float device_scale); 114 void SetPaintedDeviceScaleFactor(float device_scale);
115 void SetDeviceColorSpace(const gfx::ColorSpace& color_space); 115 void SetDeviceColorSpace(const gfx::ColorSpace& color_space);
116 void SetIsForOopif(bool is_for_oopif); 116 void SetIsForOopif(bool is_for_oopif);
117 float pageScaleFactor();
118 void SetPageScaleFactorForSubframe(float scale);
117 119
118 // WebLayerTreeView implementation. 120 // WebLayerTreeView implementation.
119 void setRootLayer(const blink::WebLayer& layer) override; 121 void setRootLayer(const blink::WebLayer& layer) override;
120 void clearRootLayer() override; 122 void clearRootLayer() override;
121 cc::AnimationHost* compositorAnimationHost() override; 123 cc::AnimationHost* compositorAnimationHost() override;
122 void setViewportSize(const blink::WebSize& device_viewport_size) override; 124 void setViewportSize(const blink::WebSize& device_viewport_size) override;
123 blink::WebSize getViewportSize() const override; 125 blink::WebSize getViewportSize() const override;
124 virtual blink::WebFloatPoint adjustEventPointForPinchZoom( 126 virtual blink::WebFloatPoint adjustEventPointForPinchZoom(
125 const blink::WebFloatPoint& point) const; 127 const blink::WebFloatPoint& point) const;
126 void setDeviceScaleFactor(float device_scale) override; 128 void setDeviceScaleFactor(float device_scale) override;
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after
234 blink::WebLayoutAndPaintAsyncCallback* layout_and_paint_async_callback_; 236 blink::WebLayoutAndPaintAsyncCallback* layout_and_paint_async_callback_;
235 237
236 cc::FrameSinkId frame_sink_id_; 238 cc::FrameSinkId frame_sink_id_;
237 239
238 base::WeakPtrFactory<RenderWidgetCompositor> weak_factory_; 240 base::WeakPtrFactory<RenderWidgetCompositor> weak_factory_;
239 }; 241 };
240 242
241 } // namespace content 243 } // namespace content
242 244
243 #endif // CONTENT_RENDERER_GPU_RENDER_WIDGET_COMPOSITOR_H_ 245 #endif // CONTENT_RENDERER_GPU_RENDER_WIDGET_COMPOSITOR_H_
OLDNEW
« no previous file with comments | « content/common/frame_messages.h ('k') | content/renderer/gpu/render_widget_compositor.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698