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

Side by Side Diff: content/renderer/pepper/pepper_plugin_instance_impl.cc

Issue 227413011: Remove old texture path in TextureLayer (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 8 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "content/renderer/pepper/pepper_plugin_instance_impl.h" 5 #include "content/renderer/pepper/pepper_plugin_instance_impl.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/callback_helpers.h" 8 #include "base/callback_helpers.h"
9 #include "base/command_line.h" 9 #include "base/command_line.h"
10 #include "base/debug/trace_event.h" 10 #include "base/debug/trace_event.h"
(...skipping 2002 matching lines...) Expand 10 before | Expand all | Expand 10 after
2013 } else { 2013 } else {
2014 container_->setWebLayer(web_layer_.get()); 2014 container_->setWebLayer(web_layer_.get());
2015 texture_layer_->SetContentsOpaque(opaque); 2015 texture_layer_->SetContentsOpaque(opaque);
2016 } 2016 }
2017 } 2017 }
2018 layer_bound_to_fullscreen_ = !!fullscreen_container_; 2018 layer_bound_to_fullscreen_ = !!fullscreen_container_;
2019 layer_is_hardware_ = want_3d_layer; 2019 layer_is_hardware_ = want_3d_layer;
2020 UpdateLayerTransform(); 2020 UpdateLayerTransform();
2021 } 2021 }
2022 2022
2023 unsigned PepperPluginInstanceImpl::PrepareTexture() {
2024 return 0;
2025 }
2026
2027 bool PepperPluginInstanceImpl::PrepareTextureMailbox( 2023 bool PepperPluginInstanceImpl::PrepareTextureMailbox(
2028 cc::TextureMailbox* mailbox, 2024 cc::TextureMailbox* mailbox,
2029 scoped_ptr<cc::SingleReleaseCallback>* release_callback, 2025 scoped_ptr<cc::SingleReleaseCallback>* release_callback,
2030 bool use_shared_memory) { 2026 bool use_shared_memory) {
2031 if (!bound_graphics_2d_platform_) 2027 if (!bound_graphics_2d_platform_)
2032 return false; 2028 return false;
2033 return bound_graphics_2d_platform_->PrepareTextureMailbox( 2029 return bound_graphics_2d_platform_->PrepareTextureMailbox(
2034 mailbox, release_callback); 2030 mailbox, release_callback);
2035 } 2031 }
2036 2032
(...skipping 1167 matching lines...) Expand 10 before | Expand all | Expand 10 after
3204 // Running out-of-process. Initiate an IPC call to notify the plugin 3200 // Running out-of-process. Initiate an IPC call to notify the plugin
3205 // process. 3201 // process.
3206 ppapi::proxy::HostDispatcher* dispatcher = 3202 ppapi::proxy::HostDispatcher* dispatcher =
3207 ppapi::proxy::HostDispatcher::GetForInstance(pp_instance()); 3203 ppapi::proxy::HostDispatcher::GetForInstance(pp_instance());
3208 dispatcher->Send(new PpapiMsg_PPPInstance_HandleDocumentLoad( 3204 dispatcher->Send(new PpapiMsg_PPPInstance_HandleDocumentLoad(
3209 ppapi::API_ID_PPP_INSTANCE, pp_instance(), pending_host_id, data)); 3205 ppapi::API_ID_PPP_INSTANCE, pp_instance(), pending_host_id, data));
3210 } 3206 }
3211 } 3207 }
3212 3208
3213 } // namespace content 3209 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698