Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3)

Unified Diff: include/core/SkBitmapDevice.h

Issue 1155443004: change internals over to SkPixmap and stop using accessBitmap (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 5 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | include/core/SkCanvas.h » ('j') | src/core/SkPixmap.cpp » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: include/core/SkBitmapDevice.h
diff --git a/include/core/SkBitmapDevice.h b/include/core/SkBitmapDevice.h
index f0f959a579464593b6ebcdf07be975579ce51d54..5941016ce3c19c9b665c21f1a13e1203902d380f 100644
--- a/include/core/SkBitmapDevice.h
+++ b/include/core/SkBitmapDevice.h
@@ -118,7 +118,8 @@ protected:
bool onReadPixels(const SkImageInfo&, void*, size_t, int x, int y) override;
bool onWritePixels(const SkImageInfo&, const void*, size_t, int, int) override;
- void* onAccessPixels(SkImageInfo* info, size_t* rowBytes) override;
+ bool onPeekPixels(SkPixmap*) override;
+ bool onAccessPixels(SkPixmap*) override;
void onAttachToCanvas(SkCanvas*) override;
void onDetachFromCanvas() override;
@@ -140,7 +141,6 @@ private:
SkBaseDevice* onCreateDevice(const CreateInfo&, const SkPaint*) override;
SkSurface* newSurface(const SkImageInfo&, const SkSurfaceProps&) override;
- const void* peekPixels(SkImageInfo*, size_t* rowBytes) override;
SkImageFilter::Cache* getImageFilterCache() override;
« no previous file with comments | « no previous file | include/core/SkCanvas.h » ('j') | src/core/SkPixmap.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698