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

Unified Diff: src/core/SkValidatingReadBuffer.h

Issue 1918433002: Optionally enable SkValidatingReadBuffer in SkPictureImageFilter (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: More clean up Created 4 years, 8 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 | « src/core/SkReadBuffer.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/core/SkValidatingReadBuffer.h
diff --git a/src/core/SkValidatingReadBuffer.h b/src/core/SkValidatingReadBuffer.h
index 28d8c34e0e99466ef535abe96fbc063319b9b537..785b15e291be4fe069004e7bf2bab010ffadd56a 100644
--- a/src/core/SkValidatingReadBuffer.h
+++ b/src/core/SkValidatingReadBuffer.h
@@ -21,7 +21,11 @@ class SkBitmap;
class SkValidatingReadBuffer : public SkReadBuffer {
public:
SkValidatingReadBuffer(const void* data, size_t size);
- virtual ~SkValidatingReadBuffer();
+ ~SkValidatingReadBuffer() override;
+
+ SkReadBuffer* clone(const void* data, size_t size) const override {
+ return new SkValidatingReadBuffer(data, size);
+ }
const void* skip(size_t size) override;
« no previous file with comments | « src/core/SkReadBuffer.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698