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_UI_RESOURCE_BITMAP_H_ | 5 #ifndef CC_RESOURCES_UI_RESOURCE_BITMAP_H_ |
6 #define CC_RESOURCES_UI_RESOURCE_BITMAP_H_ | 6 #define CC_RESOURCES_UI_RESOURCE_BITMAP_H_ |
7 | 7 |
| 8 #include <stdint.h> |
| 9 |
8 #include "base/memory/ref_counted.h" | 10 #include "base/memory/ref_counted.h" |
9 #include "base/memory/scoped_ptr.h" | 11 #include "base/memory/scoped_ptr.h" |
10 #include "cc/base/cc_export.h" | 12 #include "cc/base/cc_export.h" |
11 #include "skia/ext/refptr.h" | 13 #include "skia/ext/refptr.h" |
12 #include "third_party/skia/include/core/SkPixelRef.h" | 14 #include "third_party/skia/include/core/SkPixelRef.h" |
13 #include "ui/gfx/geometry/size.h" | 15 #include "ui/gfx/geometry/size.h" |
14 | 16 |
15 class SkBitmap; | 17 class SkBitmap; |
16 | 18 |
17 namespace cc { | 19 namespace cc { |
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
62 ~AutoLockUIResourceBitmap(); | 64 ~AutoLockUIResourceBitmap(); |
63 const uint8_t* GetPixels() const; | 65 const uint8_t* GetPixels() const; |
64 | 66 |
65 private: | 67 private: |
66 const UIResourceBitmap& bitmap_; | 68 const UIResourceBitmap& bitmap_; |
67 }; | 69 }; |
68 | 70 |
69 } // namespace cc | 71 } // namespace cc |
70 | 72 |
71 #endif // CC_RESOURCES_UI_RESOURCE_BITMAP_H_ | 73 #endif // CC_RESOURCES_UI_RESOURCE_BITMAP_H_ |
OLD | NEW |