| Index: include/core/SkDevice.h
|
| diff --git a/include/core/SkDevice.h b/include/core/SkDevice.h
|
| index 899c5d37540c5f6cf059229f8bbffcb8ec7aa384..68dae2d4703e7cf07cabe598a001d43effd71dfb 100644
|
| --- a/include/core/SkDevice.h
|
| +++ b/include/core/SkDevice.h
|
| @@ -134,6 +134,8 @@ public:
|
| virtual void writePixels(const SkBitmap& bitmap, int x, int y,
|
| SkCanvas::Config8888 config8888 = SkCanvas::kNative_Premul_Config8888) = 0;
|
|
|
| + bool writePixelsDirect(const SkImageInfo&, const void*, size_t rowBytes, int x, int y);
|
| +
|
| /**
|
| * Return the device's associated gpu render target, or NULL.
|
| */
|
| @@ -387,6 +389,8 @@ protected:
|
| // default impl returns NULL
|
| virtual const void* peekPixels(SkImageInfo*, size_t* rowBytes);
|
|
|
| + virtual bool onWritePixelsDirect(const SkImageInfo&, const void*, size_t, int x, int y);
|
| +
|
| /**
|
| * Leaky properties are those which the device should be applying but it isn't.
|
| * These properties will be applied by the draw, when and as it can.
|
|
|