diff options
author | commit-bot@chromium.org <commit-bot@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2014-03-07 15:53:01 +0000 |
---|---|---|
committer | commit-bot@chromium.org <commit-bot@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2014-03-07 15:53:01 +0000 |
commit | 8016f79cfc6b4e9b34049ecbccdb65ee222d537a (patch) | |
tree | 444f455f15ca0186129d949b4dc260e1d2315669 /src/core/SkPicturePlayback.h | |
parent | 8eb20cc112c2eefc08f5102bd96f9ae1f75b9e54 (diff) |
This is just the first version and shows how I intend to orchestrate this. Future enhancements will:
track the portion of the bitmap required
track any resizing that might be required
actually preload something
R=bsalomon@google.com, mtklein@google.com
Author: robertphillips@google.com
Review URL: https://codereview.chromium.org/187833003
git-svn-id: http://skia.googlecode.com/svn/trunk@13704 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'src/core/SkPicturePlayback.h')
-rw-r--r-- | src/core/SkPicturePlayback.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/core/SkPicturePlayback.h b/src/core/SkPicturePlayback.h index 48d782696d..178a408aee 100644 --- a/src/core/SkPicturePlayback.h +++ b/src/core/SkPicturePlayback.h @@ -31,6 +31,7 @@ class SkStream; class SkWStream; class SkBBoxHierarchy; class SkPictureStateTree; +class SkOffsetTable; struct SkPictInfo { enum Flags { @@ -107,6 +108,8 @@ protected: virtual void postDraw(int opIndex); #endif + void preLoadBitmaps(const SkTDArray<void*>& results); + private: class TextContainer { public: @@ -225,6 +228,7 @@ private: SkTRefArray<SkPaint>* fPaints; SkData* fOpData; // opcodes and parameters + SkAutoTUnref<SkOffsetTable> fBitmapUseOffsets; SkPicture** fPictureRefs; int fPictureCount; |