| Index: cc/resources/ui_resource_bitmap.h
|
| diff --git a/cc/resources/ui_resource_bitmap.h b/cc/resources/ui_resource_bitmap.h
|
| index c56cc86115e9a25f84b72de065d7ebffc8831238..23492182b35d359082445f798990b9f607780848 100644
|
| --- a/cc/resources/ui_resource_bitmap.h
|
| +++ b/cc/resources/ui_resource_bitmap.h
|
| @@ -11,6 +11,8 @@
|
|
|
| #include "base/memory/ref_counted.h"
|
| #include "cc/base/cc_export.h"
|
| +#include "third_party/skia/include/core/SkBitmap.h"
|
| +#include "third_party/skia/include/core/SkCanvas.h"
|
| #include "third_party/skia/include/core/SkPixelRef.h"
|
| #include "ui/gfx/geometry/size.h"
|
|
|
| @@ -37,6 +39,10 @@ class CC_EXPORT UIResourceBitmap {
|
| bool GetOpaque() const { return opaque_; }
|
| void SetOpaque(bool opaque) { opaque_ = opaque; }
|
|
|
| + // Draw the UIResourceBitmap onto the provided |canvas| using the style
|
| + // information specified by |paint|.
|
| + void DrawToCanvas(SkCanvas* canvas, SkPaint* paint);
|
| +
|
| // User must ensure that |skbitmap| is immutable. The SkBitmap Format should
|
| // be 32-bit RGBA or 8-bit ALPHA.
|
| explicit UIResourceBitmap(const SkBitmap& skbitmap);
|
|
|