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

Side by Side Diff: content/child/child_shared_bitmap_manager.h

Issue 795843002: Remove GetBitmapForSharedMemory from cc::SharedBitmapManager (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
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 unified diff | Download patch
« no previous file with comments | « cc/test/test_shared_bitmap_manager.cc ('k') | content/common/host_shared_bitmap_manager.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CONTENT_CHILD_CHILD_SHARED_BITMAP_MANAGER_H_ 5 #ifndef CONTENT_CHILD_CHILD_SHARED_BITMAP_MANAGER_H_
6 #define CONTENT_CHILD_CHILD_SHARED_BITMAP_MANAGER_H_ 6 #define CONTENT_CHILD_CHILD_SHARED_BITMAP_MANAGER_H_
7 7
8 #include "base/memory/ref_counted.h" 8 #include "base/memory/ref_counted.h"
9 #include "base/memory/scoped_ptr.h" 9 #include "base/memory/scoped_ptr.h"
10 #include "base/memory/shared_memory.h" 10 #include "base/memory/shared_memory.h"
11 #include "cc/resources/shared_bitmap_manager.h" 11 #include "cc/resources/shared_bitmap_manager.h"
12 #include "content/child/thread_safe_sender.h" 12 #include "content/child/thread_safe_sender.h"
13 13
14 namespace content { 14 namespace content {
15 15
16 class ChildSharedBitmapManager : public cc::SharedBitmapManager { 16 class ChildSharedBitmapManager : public cc::SharedBitmapManager {
17 public: 17 public:
18 ChildSharedBitmapManager(scoped_refptr<ThreadSafeSender> sender); 18 ChildSharedBitmapManager(scoped_refptr<ThreadSafeSender> sender);
19 ~ChildSharedBitmapManager() override; 19 ~ChildSharedBitmapManager() override;
20 20
21 // cc::SharedBitmapManager implementation.
21 scoped_ptr<cc::SharedBitmap> AllocateSharedBitmap( 22 scoped_ptr<cc::SharedBitmap> AllocateSharedBitmap(
22 const gfx::Size& size) override; 23 const gfx::Size& size) override;
23 scoped_ptr<cc::SharedBitmap> GetSharedBitmapFromId( 24 scoped_ptr<cc::SharedBitmap> GetSharedBitmapFromId(
24 const gfx::Size&, 25 const gfx::Size&,
25 const cc::SharedBitmapId&) override; 26 const cc::SharedBitmapId&) override;
27
26 scoped_ptr<cc::SharedBitmap> GetBitmapForSharedMemory( 28 scoped_ptr<cc::SharedBitmap> GetBitmapForSharedMemory(
27 base::SharedMemory* mem) override; 29 base::SharedMemory* mem);
28 30
29 private: 31 private:
30 scoped_refptr<ThreadSafeSender> sender_; 32 scoped_refptr<ThreadSafeSender> sender_;
31 33
32 DISALLOW_COPY_AND_ASSIGN(ChildSharedBitmapManager); 34 DISALLOW_COPY_AND_ASSIGN(ChildSharedBitmapManager);
33 }; 35 };
34 36
35 } // namespace content 37 } // namespace content
36 38
37 #endif // CONTENT_CHILD_CHILD_SHARED_BITMAP_MANAGER_H_ 39 #endif // CONTENT_CHILD_CHILD_SHARED_BITMAP_MANAGER_H_
OLDNEW
« no previous file with comments | « cc/test/test_shared_bitmap_manager.cc ('k') | content/common/host_shared_bitmap_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698