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

Unified Diff: src/core/SkOrderedReadBuffer.h

Issue 14437012: Fixes for piping bitmaps with encoded data. (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: Do not use bitmap storage when adding bitmaps to SkGPipeState. Created 7 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 | « samplecode/SampleApp.cpp ('k') | src/pipe/SkGPipeRead.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/core/SkOrderedReadBuffer.h
diff --git a/src/core/SkOrderedReadBuffer.h b/src/core/SkOrderedReadBuffer.h
index c609ec8be267d8304e232d050f3872671e7f7ac8..87c5a9169d3646c8474b4676b75e1d8b7945e683 100644
--- a/src/core/SkOrderedReadBuffer.h
+++ b/src/core/SkOrderedReadBuffer.h
@@ -73,6 +73,13 @@ public:
SkRefCnt_SafeAssign(fBitmapStorage, bitmapStorage);
}
+ /**
+ * Return a pointer to the bitmap storage. Does not affect its ref count.
+ */
+ SkBitmapHeapReader* getBitmapStorage() {
+ return fBitmapStorage;
+ }
+
void setTypefaceArray(SkTypeface* array[], int count) {
fTFArray = array;
fTFCount = count;
« no previous file with comments | « samplecode/SampleApp.cpp ('k') | src/pipe/SkGPipeRead.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698