Revert of xp: copy dbghelp.dll to output dir and have base.isolate use it there ...
[chromium-blink-merge.git] / cc / test / test_shared_bitmap_manager.h
blobacba0969eae1be7306a534fbb767ad684d1aac04
1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #ifndef CC_TEST_TEST_SHARED_BITMAP_MANAGER_H_
6 #define CC_TEST_TEST_SHARED_BITMAP_MANAGER_H_
8 #include <map>
10 #include "base/synchronization/lock.h"
11 #include "cc/resources/shared_bitmap_manager.h"
13 namespace base {
14 class SharedMemory;
15 } // namespace base
17 namespace cc {
19 class TestSharedBitmapManager : public SharedBitmapManager {
20 public:
21 TestSharedBitmapManager();
22 ~TestSharedBitmapManager() override;
24 scoped_ptr<SharedBitmap> AllocateSharedBitmap(const gfx::Size& size) override;
26 scoped_ptr<SharedBitmap> GetSharedBitmapFromId(
27 const gfx::Size&,
28 const SharedBitmapId& id) override;
30 private:
31 base::Lock lock_;
32 std::map<SharedBitmapId, base::SharedMemory*> bitmap_map_;
35 } // namespace cc
37 #endif // CC_TEST_TEST_SHARED_BITMAP_MANAGER_H_