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

Unified Diff: cc/resources/display_list_recording_source.cc

Issue 862133002: Update from https://crrev.com/312398 (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 11 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/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..64ad63ba3e7c08b7c940584e2cfdbf378f4698fe 100644
--- a/cc/resources/display_list_recording_source.cc
+++ b/cc/resources/display_list_recording_source.cc
@@ -60,9 +60,10 @@ bool DisplayListRecordingSource::UpdateAndExpandInvalidation(
}
gfx::Rect old_recorded_viewport = recorded_viewport_;
- recorded_viewport_ = visible_layer_rect;
- recorded_viewport_.Inset(-pixel_record_distance_, -pixel_record_distance_);
- recorded_viewport_.Intersect(gfx::Rect(GetSize()));
+ // 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());
if (recorded_viewport_ != old_recorded_viewport) {
// Invalidate newly-exposed and no-longer-exposed areas.
@@ -130,9 +131,8 @@ scoped_refptr<RasterSource> DisplayListRecordingSource::CreateRasterSource()
DisplayListRasterSource::CreateFromDisplayListRecordingSource(this));
}
-SkTileGridFactory::TileGridInfo
-DisplayListRecordingSource::GetTileGridInfoForTesting() const {
- return SkTileGridFactory::TileGridInfo();
+gfx::Size DisplayListRecordingSource::GetTileGridSizeForTesting() const {
+ return gfx::Size();
}
void DisplayListRecordingSource::DetermineIfSolidColor() {

Powered by Google App Engine
This is Rietveld 408576698