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

Unified Diff: content/renderer/npapi/webplugin_delegate_proxy.cc

Issue 802433003: Remove cc::SharedBitmap::memory() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@nogetbitmapfor
Patch Set: Created 6 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
« no previous file with comments | « content/renderer/npapi/webplugin_delegate_proxy.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/npapi/webplugin_delegate_proxy.cc
diff --git a/content/renderer/npapi/webplugin_delegate_proxy.cc b/content/renderer/npapi/webplugin_delegate_proxy.cc
index ac6955d9bc147637e71c90ef8f2499355b6577d8..ebd53f7876330bb93335b875331c943637336e7b 100644
--- a/content/renderer/npapi/webplugin_delegate_proxy.cc
+++ b/content/renderer/npapi/webplugin_delegate_proxy.cc
@@ -543,12 +543,12 @@ void WebPluginDelegateProxy::SendUpdateGeometry(
{
if (transport_stores_[0].bitmap)
CopySharedMemoryHandleForMessage(
- transport_stores_[0].bitmap->memory()->handle(),
+ transport_stores_[0].bitmap->shared_memory()->handle(),
&param.windowless_buffer0, channel_host_->peer_pid());
if (transport_stores_[1].bitmap)
CopySharedMemoryHandleForMessage(
- transport_stores_[1].bitmap->memory()->handle(),
+ transport_stores_[1].bitmap->shared_memory()->handle(),
&param.windowless_buffer1, channel_host_->peer_pid());
}
@@ -642,14 +642,14 @@ bool WebPluginDelegateProxy::CreateLocalBitmap(
#endif
bool WebPluginDelegateProxy::CreateSharedBitmap(
- scoped_ptr<cc::SharedBitmap>* memory,
+ scoped_ptr<SharedMemoryBitmap>* memory,
scoped_ptr<skia::PlatformCanvas>* canvas) {
- *memory =
- ChildThread::current()->shared_bitmap_manager()->AllocateSharedBitmap(
- plugin_rect_.size());
+ *memory = ChildThread::current()
+ ->shared_bitmap_manager()
+ ->AllocateSharedMemoryBitmap(plugin_rect_.size());
if (!memory->get())
return false;
- DCHECK((*memory)->memory());
+ DCHECK((*memory)->shared_memory());
#if defined(OS_POSIX)
canvas->reset(skia::CreatePlatformCanvas(
plugin_rect_.width(), plugin_rect_.height(), true, (*memory)->pixels(),
@@ -657,7 +657,7 @@ bool WebPluginDelegateProxy::CreateSharedBitmap(
#else
canvas->reset(skia::CreatePlatformCanvas(
plugin_rect_.width(), plugin_rect_.height(), true,
- (*memory)->memory()->handle(), skia::RETURN_NULL_ON_FAILURE));
+ (*memory)->shared_memory()->handle(), skia::RETURN_NULL_ON_FAILURE));
#endif
return !!canvas->get();
}
« no previous file with comments | « content/renderer/npapi/webplugin_delegate_proxy.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698