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

Unified Diff: cc/layers/picture_layer.h

Issue 2559413002: [1/5] Pass transformed rasterization policy from Blink (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
Index: cc/layers/picture_layer.h
diff --git a/cc/layers/picture_layer.h b/cc/layers/picture_layer.h
index 15d5825508e9a75a3389381dd0473b1aa5bf0c6d..2754f9e97b9425f5bfadecfeb8c913ad18fc405c 100644
--- a/cc/layers/picture_layer.h
+++ b/cc/layers/picture_layer.h
@@ -28,6 +28,8 @@ class CC_EXPORT PictureLayer : public Layer {
return picture_layer_inputs_.nearest_neighbor;
}
+ void SetAllowTransformedRasterization(bool allowed);
+
// Layer interface.
std::unique_ptr<LayerImpl> CreateLayerImpl(LayerTreeImpl* tree_impl) override;
void SetLayerTreeHost(LayerTreeHost* host) override;
@@ -60,6 +62,7 @@ class CC_EXPORT PictureLayer : public Layer {
ContentLayerClient* client = nullptr;
bool nearest_neighbor = false;
+ bool allow_transformed_rasterization = false;
gfx::Rect recorded_viewport;
scoped_refptr<DisplayItemList> display_list;
size_t painter_reported_memory_usage = 0;
@@ -82,6 +85,8 @@ class CC_EXPORT PictureLayer : public Layer {
void DropRecordingSourceContentIfInvalid();
+ bool UseTransformedRasterization() const;
enne (OOO) 2017/01/03 22:53:01 style nit: maybe this should be "ShouldUseTransfor
+
std::unique_ptr<RecordingSource> recording_source_;
devtools_instrumentation::
ScopedLayerObjectTracker instrumentation_object_tracker_;

Powered by Google App Engine
This is Rietveld 408576698