OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 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 CC_RESOURCES_SHARED_BITMAP_H_ | 5 #ifndef CC_RESOURCES_SHARED_BITMAP_H_ |
6 #define CC_RESOURCES_SHARED_BITMAP_H_ | 6 #define CC_RESOURCES_SHARED_BITMAP_H_ |
7 | 7 |
8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
9 #include "base/callback.h" | 9 #include "base/callback.h" |
10 #include "base/memory/shared_memory.h" | 10 #include "base/memory/shared_memory.h" |
11 #include "cc/base/cc_export.h" | 11 #include "cc/base/cc_export.h" |
12 #include "gpu/command_buffer/common/mailbox.h" | 12 #include "gpu/command_buffer/common/mailbox.h" |
13 #include "ui/gfx/size.h" | 13 #include "ui/gfx/geometry/size.h" |
14 | 14 |
15 namespace base { class SharedMemory; } | 15 namespace base { class SharedMemory; } |
16 | 16 |
17 namespace cc { | 17 namespace cc { |
18 typedef gpu::Mailbox SharedBitmapId; | 18 typedef gpu::Mailbox SharedBitmapId; |
19 | 19 |
20 class CC_EXPORT SharedBitmap { | 20 class CC_EXPORT SharedBitmap { |
21 public: | 21 public: |
22 SharedBitmap(base::SharedMemory* memory, | 22 SharedBitmap(base::SharedMemory* memory, |
23 const SharedBitmapId& id, | 23 const SharedBitmapId& id, |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
61 uint8* pixels_; | 61 uint8* pixels_; |
62 SharedBitmapId id_; | 62 SharedBitmapId id_; |
63 base::Callback<void(SharedBitmap* bitmap)> free_callback_; | 63 base::Callback<void(SharedBitmap* bitmap)> free_callback_; |
64 | 64 |
65 DISALLOW_COPY_AND_ASSIGN(SharedBitmap); | 65 DISALLOW_COPY_AND_ASSIGN(SharedBitmap); |
66 }; | 66 }; |
67 | 67 |
68 } // namespace cc | 68 } // namespace cc |
69 | 69 |
70 #endif // CC_RESOURCES_SHARED_BITMAP_H_ | 70 #endif // CC_RESOURCES_SHARED_BITMAP_H_ |
OLD | NEW |