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

Unified Diff: cc/layers/picture_layer_impl.cc

Issue 2560723006: [2/5] Disable transformed rasterization if layer is opaque (Closed)
Patch Set: Created 4 years 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
« cc/layers/picture_layer.cc ('K') | « cc/layers/picture_layer_impl.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/layers/picture_layer_impl.cc
diff --git a/cc/layers/picture_layer_impl.cc b/cc/layers/picture_layer_impl.cc
index ccffabe01bde91876e55748e1d1e6bc45aaf3d4a..03ff4553cfd82e4f9cea5791b38851d9e7386687 100644
--- a/cc/layers/picture_layer_impl.cc
+++ b/cc/layers/picture_layer_impl.cc
@@ -662,6 +662,12 @@ void PictureLayerImpl::NotifyTileStateChanged(const Tile* tile) {
}
}
+SimpleEnclosedRegion PictureLayerImpl::VisibleOpaqueRegion() const {
+ if (use_transformed_rasterization_)
+ return SimpleEnclosedRegion();
enne (OOO) 2017/01/03 22:53:08 Why not VisibleOpaqueRegion but Inset by 1?
trchen 2017/01/14 00:46:46 Because it depends on the actual raster scale. For
+ return LayerImpl::VisibleOpaqueRegion();
+}
+
void PictureLayerImpl::DidBeginTracing() {
raster_source_->DidBeginTracing();
}
« cc/layers/picture_layer.cc ('K') | « cc/layers/picture_layer_impl.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698