Index: cc/layers/recording_source.cc |
diff --git a/cc/layers/recording_source.cc b/cc/layers/recording_source.cc |
index 0177d3517780db6dedf10f97048ee1390c44ef70..1fa1d7c02dc0d34e15d5de6349198bc93c4bfc7f 100644 |
--- a/cc/layers/recording_source.cc |
+++ b/cc/layers/recording_source.cc |
@@ -38,7 +38,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() {} |
@@ -140,6 +141,10 @@ scoped_refptr<RasterSource> RecordingSource::CreateRasterSource() const { |
return scoped_refptr<RasterSource>(new RasterSource(this)); |
} |
+void RecordingSource::SetRecordingScaleFactor(float recording_scale_factor) { |
+ recording_scale_factor_ = recording_scale_factor; |
+} |
+ |
void RecordingSource::DetermineIfSolidColor() { |
DCHECK(display_list_); |
is_solid_color_ = false; |