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

Unified Diff: content/child/child_shared_bitmap_manager.h

Issue 2552913003: Revert of Replacing allocate bitmap IPC messages with a new Mojo interface. (Closed)
Patch Set: Created 4 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
Index: content/child/child_shared_bitmap_manager.h
diff --git a/content/child/child_shared_bitmap_manager.h b/content/child/child_shared_bitmap_manager.h
index b63d3e50a11493b73aaa3455a5a1afefbb224aaa..feb065bb92a433fb64f549e3c5fd10d27e3ba37e 100644
--- a/content/child/child_shared_bitmap_manager.h
+++ b/content/child/child_shared_bitmap_manager.h
@@ -13,8 +13,7 @@
#include "base/memory/ref_counted.h"
#include "base/memory/shared_memory.h"
#include "cc/resources/shared_bitmap_manager.h"
-#include "content/common/render_message_filter.mojom.h"
-#include "mojo/public/cpp/bindings/thread_safe_interface_ptr.h"
+#include "content/child/thread_safe_sender.h"
namespace content {
@@ -32,9 +31,7 @@
class ChildSharedBitmapManager : public cc::SharedBitmapManager {
public:
- explicit ChildSharedBitmapManager(
- const scoped_refptr<mojom::ThreadSafeRenderMessageFilterAssociatedPtr>&
- render_message_filter_ptr);
+ ChildSharedBitmapManager(scoped_refptr<ThreadSafeSender> sender);
~ChildSharedBitmapManager() override;
// cc::SharedBitmapManager implementation.
@@ -46,13 +43,11 @@
std::unique_ptr<cc::SharedBitmap> GetBitmapForSharedMemory(
base::SharedMemory* mem);
+ std::unique_ptr<SharedMemoryBitmap> AllocateSharedMemoryBitmap(
+ const gfx::Size& size);
private:
- void NotifyAllocatedSharedBitmap(base::SharedMemory* memory,
- const cc::SharedBitmapId& id);
-
- scoped_refptr<mojom::ThreadSafeRenderMessageFilterAssociatedPtr>
- render_message_filter_ptr_;
+ scoped_refptr<ThreadSafeSender> sender_;
DISALLOW_COPY_AND_ASSIGN(ChildSharedBitmapManager);
};
« no previous file with comments | « content/browser/renderer_host/render_message_filter.cc ('k') | content/child/child_shared_bitmap_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698