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

Unified Diff: cc/layers/picture_layer.cc

Issue 2413063002: content/blimp: Set up hooks for enabling LTHRemote in the renderer. (Closed)
Patch Set: gn check Created 4 years, 2 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/layers/picture_layer.cc
diff --git a/cc/layers/picture_layer.cc b/cc/layers/picture_layer.cc
index 408051bb218b571e4909ca3e424c3d2995cc0cb3..a435e68ee2c0fa4619a48cd58f6f249f2a747b39 100644
--- a/cc/layers/picture_layer.cc
+++ b/cc/layers/picture_layer.cc
@@ -208,6 +208,9 @@ void PictureLayer::SetTypeForProtoSerialization(proto::LayerNode* proto) const {
void PictureLayer::LayerSpecificPropertiesToProto(proto::LayerProperties* proto,
bool inputs_only) {
+ DCHECK(GetLayerTree());
+ DCHECK(GetLayerTree()->engine_picture_cache());
Wez 2016/10/13 16:53:52 nit: Is it worth DCHECK()ing these, given that you
Khushal 2016/10/13 18:47:28 I found an unhelpful seg-fault instead of a pretty
+
Layer::LayerSpecificPropertiesToProto(proto, inputs_only);
DropRecordingSourceContentIfInvalid();
proto::PictureLayerProperties* picture = proto->mutable_picture();

Powered by Google App Engine
This is Rietveld 408576698