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

Unified Diff: src/core/SkPicture.cpp

Issue 788143007: add const to encodePixels pixel parameter (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 6 years 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 | « include/core/SkPixelSerializer.h ('k') | src/images/SkImageEncoder.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/core/SkPicture.cpp
diff --git a/src/core/SkPicture.cpp b/src/core/SkPicture.cpp
index 3296264be8ab76ac666f0adf91f106bc5536dc7b..921fbdf532a3e9340e12c30f3404dd374e0b58cb 100644
--- a/src/core/SkPicture.cpp
+++ b/src/core/SkPicture.cpp
@@ -465,9 +465,9 @@ public:
SkASSERT(fEncoder);
}
- virtual bool onUseEncodedData(const void*, size_t) SK_OVERRIDE { return true; }
+ bool onUseEncodedData(const void*, size_t) SK_OVERRIDE { return true; }
- virtual SkData* onEncodePixels(const SkImageInfo& info, void* pixels,
+ SkData* onEncodePixels(const SkImageInfo& info, const void* pixels,
size_t rowBytes) SK_OVERRIDE {
// Required by signature of EncodeBitmap.
size_t unused;
« no previous file with comments | « include/core/SkPixelSerializer.h ('k') | src/images/SkImageEncoder.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698