Index: cc/resources/display_list_recording_source.cc |
diff --git a/cc/resources/display_list_recording_source.cc b/cc/resources/display_list_recording_source.cc |
index a3c3d477f222cb39a7bacad7f0b3c2b6b7d2a8e1..0067640cee4953a0a831735919245af7af776acc 100644 |
--- a/cc/resources/display_list_recording_source.cc |
+++ b/cc/resources/display_list_recording_source.cc |
@@ -60,9 +60,16 @@ bool DisplayListRecordingSource::UpdateAndExpandInvalidation( |
} |
gfx::Rect old_recorded_viewport = recorded_viewport_; |
+#if 1 |
+ // TODO(wangxianzhu): Blink slimming paint doesn't support incremental |
+ // painting for now so we must record for the whole layer. Should measure |
+ // performance and determine the best choice. Consider display item caching. |
+ recorded_viewport_ = gfx::Rect(GetSize()); |
+#else |
recorded_viewport_ = visible_layer_rect; |
recorded_viewport_.Inset(-pixel_record_distance_, -pixel_record_distance_); |
recorded_viewport_.Intersect(gfx::Rect(GetSize())); |
+#endif |
ajuma
2015/01/20 22:19:35
Let's remove this code for now instead of #if-ing
Xianzhu
2015/01/20 22:24:27
Done.
|
if (recorded_viewport_ != old_recorded_viewport) { |
// Invalidate newly-exposed and no-longer-exposed areas. |