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

Unified Diff: content/renderer/renderer_clipboard_delegate.cc

Issue 2717213004: Move SharedBitmapManager implementation out of content/ (Closed)
Patch Set: rebase Created 3 years, 10 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/renderer_clipboard_delegate.cc
diff --git a/content/renderer/renderer_clipboard_delegate.cc b/content/renderer/renderer_clipboard_delegate.cc
index 1fb70deb3c7986c5759efc55e007ad6853e53b3c..b237cd4a2297a64b825355db4cede5daa271dc7f 100644
--- a/content/renderer/renderer_clipboard_delegate.cc
+++ b/content/renderer/renderer_clipboard_delegate.cc
@@ -8,6 +8,7 @@
#include "base/memory/shared_memory.h"
#include "base/numerics/safe_math.h"
+#include "components/display_compositor/child/child_shared_bitmap_manager.h"
#include "content/common/clipboard_messages.h"
#include "content/public/renderer/content_renderer_client.h"
#include "content/renderer/render_thread_impl.h"
@@ -138,7 +139,9 @@ bool RendererClipboardDelegate::WriteImage(ui::ClipboardType clipboard_type,
// Allocate a shared memory buffer to hold the bitmap bits.
uint32_t buf_size = checked_buf_size.ValueOrDie();
- shared_buf = ChildThreadImpl::AllocateSharedMemory(buf_size);
+ shared_buf =
+ display_compositor::ChildSharedBitmapManager::AllocateSharedMemory(
+ buf_size);
if (!shared_buf)
return false;
if (!shared_buf->Map(buf_size))

Powered by Google App Engine
This is Rietveld 408576698