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>( |