Index: content/child/blob_storage/webblobregistry_impl.cc |
diff --git a/content/child/blob_storage/webblobregistry_impl.cc b/content/child/blob_storage/webblobregistry_impl.cc |
index 5032ed19446c6116fb48c6f6f4f487d922779a9e..ad7507dd4e15797ae2a57cfb2d721a59ee00617d 100644 |
--- a/content/child/blob_storage/webblobregistry_impl.cc |
+++ b/content/child/blob_storage/webblobregistry_impl.cc |
@@ -15,6 +15,7 @@ |
#include "base/metrics/histogram_macros.h" |
#include "base/numerics/safe_conversions.h" |
#include "base/trace_event/trace_event.h" |
+#include "components/display_compositor/child/child_shared_bitmap_manager.h" |
#include "content/child/blob_storage/blob_consolidation.h" |
#include "content/child/blob_storage/blob_transport_controller.h" |
#include "content/child/child_thread_impl.h" |
@@ -152,7 +153,8 @@ void WebBlobRegistryImpl::addDataToStream(const WebURL& url, |
size_t shared_memory_size = |
std::min(length, limits_.max_shared_memory_size); |
std::unique_ptr<base::SharedMemory> shared_memory( |
- ChildThreadImpl::AllocateSharedMemory(shared_memory_size)); |
+ display_compositor::ChildSharedBitmapManager::AllocateSharedMemory( |
danakj
2017/02/28 20:34:57
I don't think this is right, because this method h
xlai (Olivia)
2017/03/01 20:02:45
This AllocateSharedMemory is currently attached in
danakj
2017/03/03 19:21:55
I don't think either is the right final state. cc/
|
+ shared_memory_size)); |
CHECK(shared_memory.get()); |
if (!shared_memory->Map(shared_memory_size)) |
CHECK(false); |