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

Unified Diff: content/renderer/pepper/pepper_plugin_instance_impl.cc

Issue 1101823002: CC Animations: Make LayerAnimationController creation optional (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Plumb LayerSettings parameter for cc::Layer construction. Created 5 years, 7 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: content/renderer/pepper/pepper_plugin_instance_impl.cc
diff --git a/content/renderer/pepper/pepper_plugin_instance_impl.cc b/content/renderer/pepper/pepper_plugin_instance_impl.cc
index 00e2f0508be54c77aee19816e6b11e8061f28039..6738c0b0565225b868c9ffbb3afdffb0d8c54eb4 100644
--- a/content/renderer/pepper/pepper_plugin_instance_impl.cc
+++ b/content/renderer/pepper/pepper_plugin_instance_impl.cc
@@ -2039,13 +2039,15 @@ void PepperPluginInstanceImpl::UpdateLayer(bool device_changed) {
bool opaque = false;
if (want_3d_layer) {
DCHECK(bound_graphics_3d_.get());
- texture_layer_ = cc::TextureLayer::CreateForMailbox(NULL);
+ texture_layer_ = cc::TextureLayer::CreateForMailbox(
+ cc_blink::WebLayerImpl::LayerSettings(), NULL);
opaque = bound_graphics_3d_->IsOpaque();
texture_layer_->SetTextureMailboxWithoutReleaseCallback(
cc::TextureMailbox(mailbox, GL_TEXTURE_2D, sync_point));
} else {
DCHECK(bound_graphics_2d_platform_);
- texture_layer_ = cc::TextureLayer::CreateForMailbox(this);
+ texture_layer_ = cc::TextureLayer::CreateForMailbox(
+ cc_blink::WebLayerImpl::LayerSettings(), this);
bound_graphics_2d_platform_->AttachedToNewLayer();
opaque = bound_graphics_2d_platform_->IsAlwaysOpaque();
texture_layer_->SetFlipped(false);

Powered by Google App Engine
This is Rietveld 408576698