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

Unified Diff: src/core/SkReadBuffer.h

Issue 2201323003: add pipecanvas (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: add test for writeImage Created 4 years, 3 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
Index: src/core/SkReadBuffer.h
diff --git a/src/core/SkReadBuffer.h b/src/core/SkReadBuffer.h
index 7c4ecc6bd371293353ad4f05c6ca47556bce64e6..1873c7d3f46edc46ede270af08e53802abc957d7 100644
--- a/src/core/SkReadBuffer.h
+++ b/src/core/SkReadBuffer.h
@@ -27,6 +27,7 @@
class SkBitmap;
class SkImage;
+class SkInflator;
#if defined(SK_DEBUG) && defined(SK_BUILD_FOR_MAC)
#define DEBUG_NON_DETERMINISTIC_ASSERT
@@ -131,7 +132,7 @@ public:
virtual void readRegion(SkRegion* region);
virtual void readPath(SkPath* path);
- void readPaint(SkPaint* paint) { paint->unflatten(*this); }
+ virtual void readPaint(SkPaint* paint) { paint->unflatten(*this); }
virtual SkFlattenable* readFlattenable(SkFlattenable::Type);
template <typename T> sk_sp<T> readFlattenable() {
@@ -210,6 +211,11 @@ public:
return this->validate(index >= 0 && index < count);
}
+ SkInflator* getInflator() const { return fInflator; }
+ void setInflator(SkInflator* inf) { fInflator = inf; }
+
+// sk_sp<SkImage> inflateImage();
+
protected:
/**
* Allows subclass to check if we are using factories for expansion
@@ -256,6 +262,8 @@ private:
// have decoded.
int fDecodedBitmapIndex;
#endif // DEBUG_NON_DETERMINISTIC_ASSERT
+
+ SkInflator* fInflator = nullptr;
};
#endif // SkReadBuffer_DEFINED
« src/core/SkPipe.h ('K') | « src/core/SkPipe.h ('k') | src/core/SkReadBuffer.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698