| 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..8b1c5d0b2c066e056395e1e596529d1f77598bcf 100644
|
| --- a/cc/resources/ui_resource_bitmap.h
|
| +++ b/cc/resources/ui_resource_bitmap.h
|
| @@ -11,6 +11,12 @@
|
| #include "third_party/skia/include/core/SkTypes.h"
|
| #include "ui/gfx/size.h"
|
|
|
| +class SkBitmap;
|
| +
|
| +namespace gfx {
|
| +class JavaBitmap;
|
| +}
|
| +
|
| namespace cc {
|
|
|
| // Ref-counted bitmap class (can’t use SkBitmap because of ETC1). Thread-safety
|
| @@ -45,6 +51,13 @@ class CC_EXPORT UIResourceBitmap
|
| DISALLOW_COPY_AND_ASSIGN(UIResourceBitmap);
|
| };
|
|
|
| +CC_EXPORT scoped_refptr<UIResourceBitmap> CreateUIResourceBitmapFromSkBitmap(
|
| + const SkBitmap& skbitmap);
|
| +
|
| +// If the resource loads successfully, it will be resized to |size|.
|
| +CC_EXPORT scoped_refptr<UIResourceBitmap> CreateUIResourceBitmapFromJavaBitmap(
|
| + gfx::JavaBitmap& bitmap);
|
| +
|
| } // namespace cc
|
|
|
| #endif // CC_RESOURCES_UI_RESOURCE_BITMAP_H_
|
|
|