| Index: cc/resources/ui_resource_bitmap.h
|
| diff --git a/cc/resources/ui_resource_bitmap.h b/cc/resources/ui_resource_bitmap.h
|
| index dbf70690792c2801457abf68b0ff9cb7ee51639b..edce4290ea61d74326844d64f219310b968347e3 100644
|
| --- a/cc/resources/ui_resource_bitmap.h
|
| +++ b/cc/resources/ui_resource_bitmap.h
|
| @@ -11,6 +11,8 @@
|
| #include "third_party/skia/include/core/SkTypes.h"
|
| #include "ui/gfx/size.h"
|
|
|
| +class SkBitmap;
|
| +
|
| namespace cc {
|
|
|
| // Ref-counted bitmap class (can’t use SkBitmap because of ETC1). Thread-safety
|
| @@ -32,6 +34,9 @@ class CC_EXPORT UIResourceBitmap
|
| UIResourceFormat GetFormat() const { return format_; }
|
| uint8_t* GetPixels() { return pixels_.get(); }
|
|
|
| + static scoped_refptr<UIResourceBitmap> CreateFromSkBitmap(
|
| + const SkBitmap& skbitmap);
|
| +
|
| private:
|
| friend class base::RefCountedThreadSafe<UIResourceBitmap>;
|
|
|
|
|