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

Unified Diff: cc/trees/layer_tree_host.h

Issue 2877483003: Implements core logic for Pixel Canvas (Closed)
Patch Set: Sync with ToT Created 3 years, 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « cc/raster/raster_source_unittest.cc ('k') | cc/trees/layer_tree_host.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/trees/layer_tree_host.h
diff --git a/cc/trees/layer_tree_host.h b/cc/trees/layer_tree_host.h
index adfca18091f1f331a0aa563f884dc88a0fa4c105..a68f671355e100c52410ec921021c8976f175dbb 100644
--- a/cc/trees/layer_tree_host.h
+++ b/cc/trees/layer_tree_host.h
@@ -319,6 +319,8 @@ class CC_EXPORT LayerTreeHost
void SetDeviceScaleFactor(float device_scale_factor);
float device_scale_factor() const { return device_scale_factor_; }
+ void SetRecordingScaleFactor(float recording_scale_factor);
+
void SetPaintedDeviceScaleFactor(float painted_device_scale_factor);
float painted_device_scale_factor() const {
return painted_device_scale_factor_;
@@ -495,6 +497,8 @@ class CC_EXPORT LayerTreeHost
void RequestBeginMainFrameNotExpected(bool new_state);
+ float recording_scale_factor() const { return recording_scale_factor_; }
+
protected:
LayerTreeHost(InitParams* params, CompositorMode mode);
@@ -602,6 +606,7 @@ class CC_EXPORT LayerTreeHost
float device_scale_factor_ = 1.f;
float painted_device_scale_factor_ = 1.f;
+ float recording_scale_factor_ = 1.f;
float page_scale_factor_ = 1.f;
float min_page_scale_factor_ = 1.f;
float max_page_scale_factor_ = 1.f;
« no previous file with comments | « cc/raster/raster_source_unittest.cc ('k') | cc/trees/layer_tree_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698