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

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

Issue 1412663005: Introduce painted-device-scale-factor and use it when --enable-use-zoom-for-dsf is specified. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 1 month 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 "base/callback.h" 8 #include "base/callback.h"
9 #include "base/memory/weak_ptr.h" 9 #include "base/memory/weak_ptr.h"
10 #include "base/time/time.h" 10 #include "base/time/time.h"
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
74 void NotifyInputThrottledUntilCommit(); 74 void NotifyInputThrottledUntilCommit();
75 const cc::Layer* GetRootLayer() const; 75 const cc::Layer* GetRootLayer() const;
76 int ScheduleMicroBenchmark( 76 int ScheduleMicroBenchmark(
77 const std::string& name, 77 const std::string& name,
78 scoped_ptr<base::Value> value, 78 scoped_ptr<base::Value> value,
79 const base::Callback<void(scoped_ptr<base::Value>)>& callback); 79 const base::Callback<void(scoped_ptr<base::Value>)>& callback);
80 bool SendMessageToMicroBenchmark(int id, scoped_ptr<base::Value> value); 80 bool SendMessageToMicroBenchmark(int id, scoped_ptr<base::Value> value);
81 void SetSurfaceIdNamespace(uint32_t surface_id_namespace); 81 void SetSurfaceIdNamespace(uint32_t surface_id_namespace);
82 cc::ManagedMemoryPolicy GetGpuMemoryPolicy( 82 cc::ManagedMemoryPolicy GetGpuMemoryPolicy(
83 const cc::ManagedMemoryPolicy& policy); 83 const cc::ManagedMemoryPolicy& policy);
84 void SetPaintedDeviceScaleFactor(float device_scale);
84 85
85 // WebLayerTreeView implementation. 86 // WebLayerTreeView implementation.
86 void setRootLayer(const blink::WebLayer& layer) override; 87 void setRootLayer(const blink::WebLayer& layer) override;
87 void clearRootLayer() override; 88 void clearRootLayer() override;
88 void attachCompositorAnimationTimeline( 89 void attachCompositorAnimationTimeline(
89 blink::WebCompositorAnimationTimeline* compositor_timeline) override; 90 blink::WebCompositorAnimationTimeline* compositor_timeline) override;
90 void detachCompositorAnimationTimeline( 91 void detachCompositorAnimationTimeline(
91 blink::WebCompositorAnimationTimeline* compositor_timeline) override; 92 blink::WebCompositorAnimationTimeline* compositor_timeline) override;
92 virtual void setViewportSize(
93 const blink::WebSize& unused_deprecated,
94 const blink::WebSize& device_viewport_size);
95 void setViewportSize(const blink::WebSize& device_viewport_size) override; 93 void setViewportSize(const blink::WebSize& device_viewport_size) override;
96 virtual blink::WebFloatPoint adjustEventPointForPinchZoom( 94 virtual blink::WebFloatPoint adjustEventPointForPinchZoom(
97 const blink::WebFloatPoint& point) const; 95 const blink::WebFloatPoint& point) const;
98 void setDeviceScaleFactor(float device_scale) override; 96 void setDeviceScaleFactor(float device_scale) override;
99 void setBackgroundColor(blink::WebColor color) override; 97 void setBackgroundColor(blink::WebColor color) override;
100 void setHasTransparentBackground(bool transparent) override; 98 void setHasTransparentBackground(bool transparent) override;
101 void setVisible(bool visible) override; 99 void setVisible(bool visible) override;
102 void setPageScaleFactorAndLimits(float page_scale_factor, 100 void setPageScaleFactorAndLimits(float page_scale_factor,
103 float minimum, 101 float minimum,
104 float maximum) override; 102 float maximum) override;
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after
192 190
193 blink::WebLayoutAndPaintAsyncCallback* layout_and_paint_async_callback_; 191 blink::WebLayoutAndPaintAsyncCallback* layout_and_paint_async_callback_;
194 scoped_ptr<cc::CopyOutputRequest> temporary_copy_output_request_; 192 scoped_ptr<cc::CopyOutputRequest> temporary_copy_output_request_;
195 193
196 base::WeakPtrFactory<RenderWidgetCompositor> weak_factory_; 194 base::WeakPtrFactory<RenderWidgetCompositor> weak_factory_;
197 }; 195 };
198 196
199 } // namespace content 197 } // namespace content
200 198
201 #endif // CONTENT_RENDERER_GPU_RENDER_WIDGET_COMPOSITOR_H_ 199 #endif // CONTENT_RENDERER_GPU_RENDER_WIDGET_COMPOSITOR_H_
OLDNEW
« no previous file with comments | « content/public/common/content_switches.h ('k') | content/renderer/gpu/render_widget_compositor.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698