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

Unified Diff: content/child/child_shared_bitmap_manager.h

Issue 2717213004: Move SharedBitmapManager implementation out of content/ (Closed)
Patch Set: rebase Created 3 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/child/BUILD.gn ('k') | content/child/child_shared_bitmap_manager.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
deleted file mode 100644
index dbf74ef3b1579262087dba822cc1b9dbfa788384..0000000000000000000000000000000000000000
--- a/content/child/child_shared_bitmap_manager.h
+++ /dev/null
@@ -1,50 +0,0 @@
-// Copyright (c) 2013 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#ifndef CONTENT_CHILD_CHILD_SHARED_BITMAP_MANAGER_H_
-#define CONTENT_CHILD_CHILD_SHARED_BITMAP_MANAGER_H_
-
-#include <stdint.h>
-
-#include <memory>
-
-#include "base/macros.h"
-#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"
-
-namespace content {
-
-class ChildSharedBitmapManager : public cc::SharedBitmapManager {
- public:
- explicit ChildSharedBitmapManager(
- const scoped_refptr<mojom::ThreadSafeRenderMessageFilterAssociatedPtr>&
- render_message_filter_ptr);
- ~ChildSharedBitmapManager() override;
-
- // cc::SharedBitmapManager implementation.
- std::unique_ptr<cc::SharedBitmap> AllocateSharedBitmap(
- const gfx::Size& size) override;
- std::unique_ptr<cc::SharedBitmap> GetSharedBitmapFromId(
- const gfx::Size&,
- const cc::SharedBitmapId&) override;
-
- std::unique_ptr<cc::SharedBitmap> GetBitmapForSharedMemory(
- base::SharedMemory* mem);
-
- private:
- void NotifyAllocatedSharedBitmap(base::SharedMemory* memory,
- const cc::SharedBitmapId& id);
-
- scoped_refptr<mojom::ThreadSafeRenderMessageFilterAssociatedPtr>
- render_message_filter_ptr_;
-
- DISALLOW_COPY_AND_ASSIGN(ChildSharedBitmapManager);
-};
-
-} // namespace content
-
-#endif // CONTENT_CHILD_CHILD_SHARED_BITMAP_MANAGER_H_
« no previous file with comments | « content/child/BUILD.gn ('k') | content/child/child_shared_bitmap_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698