OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 UI_GFX_IMAGE_IMAGE_SKIA_H_ | 5 #ifndef UI_GFX_IMAGE_IMAGE_SKIA_H_ |
6 #define UI_GFX_IMAGE_IMAGE_SKIA_H_ | 6 #define UI_GFX_IMAGE_IMAGE_SKIA_H_ |
7 | 7 |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
11 #include "base/gtest_prod_util.h" | 11 #include "base/gtest_prod_util.h" |
12 #include "base/memory/ref_counted.h" | 12 #include "base/memory/ref_counted.h" |
13 #include "base/memory/scoped_ptr.h" | 13 #include "base/memory/scoped_ptr.h" |
14 #include "ui/base/ui_export.h" | 14 #include "ui/gfx/gfx_export.h" |
15 #include "ui/gfx/image/image_skia_rep.h" | 15 #include "ui/gfx/image/image_skia_rep.h" |
16 | 16 |
17 namespace gfx { | 17 namespace gfx { |
18 class ImageSkiaSource; | 18 class ImageSkiaSource; |
19 class Size; | 19 class Size; |
20 | 20 |
21 namespace internal { | 21 namespace internal { |
22 class ImageSkiaStorage; | 22 class ImageSkiaStorage; |
23 } // namespace internal | 23 } // namespace internal |
24 | 24 |
(...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
158 // so that other thread can access the storage. | 158 // so that other thread can access the storage. |
159 void DetachStorageFromThread(); | 159 void DetachStorageFromThread(); |
160 | 160 |
161 // A refptr so that ImageRepSkia can be copied cheaply. | 161 // A refptr so that ImageRepSkia can be copied cheaply. |
162 scoped_refptr<internal::ImageSkiaStorage> storage_; | 162 scoped_refptr<internal::ImageSkiaStorage> storage_; |
163 }; | 163 }; |
164 | 164 |
165 } // namespace gfx | 165 } // namespace gfx |
166 | 166 |
167 #endif // UI_GFX_IMAGE_IMAGE_SKIA_H_ | 167 #endif // UI_GFX_IMAGE_IMAGE_SKIA_H_ |
OLD | NEW |