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

Side by Side Diff: src/core/SkPicturePlayback.h

Issue 192853002: Proposed SkCanvas API for preLoading textures to VRAM (Closed) Base URL: http://skia.googlecode.com/svn/trunk/
Patch Set: Created 6 years, 9 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « src/core/SkDevice.cpp ('k') | src/core/SkPicturePlayback.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 1
2 /* 2 /*
3 * Copyright 2011 Google Inc. 3 * Copyright 2011 Google Inc.
4 * 4 *
5 * Use of this source code is governed by a BSD-style license that can be 5 * Use of this source code is governed by a BSD-style license that can be
6 * found in the LICENSE file. 6 * found in the LICENSE file.
7 */ 7 */
8 #ifndef SkPicturePlayback_DEFINED 8 #ifndef SkPicturePlayback_DEFINED
9 #define SkPicturePlayback_DEFINED 9 #define SkPicturePlayback_DEFINED
10 10
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after
101 101
102 protected: 102 protected:
103 bool parseStream(SkStream*, const SkPictInfo&, 103 bool parseStream(SkStream*, const SkPictInfo&,
104 SkPicture::InstallPixelRefProc); 104 SkPicture::InstallPixelRefProc);
105 bool parseBuffer(SkReadBuffer& buffer); 105 bool parseBuffer(SkReadBuffer& buffer);
106 #ifdef SK_DEVELOPER 106 #ifdef SK_DEVELOPER
107 virtual bool preDraw(int opIndex, int type); 107 virtual bool preDraw(int opIndex, int type);
108 virtual void postDraw(int opIndex); 108 virtual void postDraw(int opIndex);
109 #endif 109 #endif
110 110
111 void preLoadBitmaps(const SkTDArray<void*>& results); 111 void preLoadBitmaps(SkCanvas& canvas, const SkTDArray<void*>& results);
112 112
113 private: 113 private:
114 class TextContainer { 114 class TextContainer {
115 public: 115 public:
116 size_t length() { return fByteLength; } 116 size_t length() { return fByteLength; }
117 const void* text() { return (const void*) fText; } 117 const void* text() { return (const void*) fText; }
118 size_t fByteLength; 118 size_t fByteLength;
119 const char* fText; 119 const char* fText;
120 }; 120 };
121 121
(...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after
238 238
239 SkTypefacePlayback fTFPlayback; 239 SkTypefacePlayback fTFPlayback;
240 SkFactoryPlayback* fFactoryPlayback; 240 SkFactoryPlayback* fFactoryPlayback;
241 #ifdef SK_BUILD_FOR_ANDROID 241 #ifdef SK_BUILD_FOR_ANDROID
242 SkMutex fDrawMutex; 242 SkMutex fDrawMutex;
243 bool fAbortCurrentPlayback; 243 bool fAbortCurrentPlayback;
244 #endif 244 #endif
245 }; 245 };
246 246
247 #endif 247 #endif
OLDNEW
« no previous file with comments | « src/core/SkDevice.cpp ('k') | src/core/SkPicturePlayback.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698