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

Unified Diff: cc/layers/recording_source.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/layers/picture_layer.cc ('k') | cc/layers/recording_source.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/layers/recording_source.h
diff --git a/cc/layers/recording_source.h b/cc/layers/recording_source.h
index 357408698b27085b59a891fd943b284a62b93e62..26edcbc382931cfdf1105b314816b187ca4960ce 100644
--- a/cc/layers/recording_source.h
+++ b/cc/layers/recording_source.h
@@ -51,6 +51,8 @@ class CC_EXPORT RecordingSource {
void SetNeedsDisplayRect(const gfx::Rect& layer_rect);
+ void SetRecordingScaleFactor(float recording_scale_factor);
+
// These functions are virtual for testing.
virtual scoped_refptr<RasterSource> CreateRasterSource() const;
@@ -68,6 +70,7 @@ class CC_EXPORT RecordingSource {
SkColor background_color_;
scoped_refptr<DisplayItemList> display_list_;
size_t painter_reported_memory_usage_;
+ float recording_scale_factor_;
private:
void UpdateInvalidationForNewViewport(const gfx::Rect& old_recorded_viewport,
« no previous file with comments | « cc/layers/picture_layer.cc ('k') | cc/layers/recording_source.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698