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

Unified Diff: cc/layers/recording_source.cc

Issue 2877483003: Implements core logic for Pixel Canvas (Closed)
Patch Set: Update tests Created 3 years, 5 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
Index: cc/layers/recording_source.cc
diff --git a/cc/layers/recording_source.cc b/cc/layers/recording_source.cc
index 06defb1130db807ebe3f9db25789fc1568459f5b..5b6f52f5b61d1a09440adc49d0b45d7a712d2885 100644
--- a/cc/layers/recording_source.cc
+++ b/cc/layers/recording_source.cc
@@ -34,7 +34,8 @@ RecordingSource::RecordingSource()
is_solid_color_(false),
clear_canvas_with_debug_color_(kDefaultClearCanvasSetting),
solid_color_(SK_ColorTRANSPARENT),
- background_color_(SK_ColorTRANSPARENT) {}
+ background_color_(SK_ColorTRANSPARENT),
+ recording_scale_factor_(1.f) {}
RecordingSource::~RecordingSource() {}
@@ -132,6 +133,10 @@ const DisplayItemList* RecordingSource::GetDisplayItemList() {
return display_list_.get();
}
+void RecordingSource::SetRecordingScaleFactor(float recording_scale_factor) {
+ recording_scale_factor_ = recording_scale_factor;
+}
+
scoped_refptr<RasterSource> RecordingSource::CreateRasterSource(
bool can_use_lcd_text) const {
return scoped_refptr<RasterSource>(

Powered by Google App Engine
This is Rietveld 408576698