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

Side by Side Diff: include/core/SkPicture.h

Issue 14230022: Fixes for piping bitmaps with encoded data. (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: Add some asserts and comments. Created 7 years, 7 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 | « gm/gmmain.cpp ('k') | include/pipe/SkGPipe.h » ('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 2007 The Android Open Source Project 3 * Copyright 2007 The Android Open Source Project
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 8
9 9
10 #ifndef SkPicture_DEFINED 10 #ifndef SkPicture_DEFINED
(...skipping 185 matching lines...) Expand 10 before | Expand all | Expand 10 after
196 // V2 : adds SkPixelRef's generation ID. 196 // V2 : adds SkPixelRef's generation ID.
197 // V3 : PictInfo tag at beginning, and EOF tag at the end 197 // V3 : PictInfo tag at beginning, and EOF tag at the end
198 // V4 : move SkPictInfo to be the header 198 // V4 : move SkPictInfo to be the header
199 // V5 : don't read/write FunctionPtr on cross-process (we can detect that) 199 // V5 : don't read/write FunctionPtr on cross-process (we can detect that)
200 // V6 : added serialization of SkPath's bounds (and packed its flags tighter ) 200 // V6 : added serialization of SkPath's bounds (and packed its flags tighter )
201 // V7 : changed drawBitmapRect(IRect) to drawBitmapRectToRect(Rect) 201 // V7 : changed drawBitmapRect(IRect) to drawBitmapRectToRect(Rect)
202 // V8 : Add an option for encoding bitmaps 202 // V8 : Add an option for encoding bitmaps
203 // V9 : Allow the reader and writer of an SKP disagree on whether to support 203 // V9 : Allow the reader and writer of an SKP disagree on whether to support
204 // SK_SUPPORT_HINTING_SCALE_FACTOR 204 // SK_SUPPORT_HINTING_SCALE_FACTOR
205 // V10: add drawRRect, drawOval, clipRRect 205 // V10: add drawRRect, drawOval, clipRRect
206 static const uint32_t PICTURE_VERSION = 10; 206 // V11: modify how readBitmap and writeBitmap store their info.
207 static const uint32_t PICTURE_VERSION = 11;
207 208
208 // fPlayback, fRecord, fWidth & fHeight are protected to allow derived class es to 209 // fPlayback, fRecord, fWidth & fHeight are protected to allow derived class es to
209 // install their own SkPicturePlayback-derived players,SkPictureRecord-deriv ed 210 // install their own SkPicturePlayback-derived players,SkPictureRecord-deriv ed
210 // recorders and set the picture size 211 // recorders and set the picture size
211 SkPicturePlayback* fPlayback; 212 SkPicturePlayback* fPlayback;
212 SkPictureRecord* fRecord; 213 SkPictureRecord* fRecord;
213 int fWidth, fHeight; 214 int fWidth, fHeight;
214 215
215 // For testing. Derived classes may instantiate an alternate 216 // For testing. Derived classes may instantiate an alternate
216 // SkBBoxHierarchy implementation 217 // SkBBoxHierarchy implementation
(...skipping 23 matching lines...) Expand all
240 */ 241 */
241 SkCanvas* getRecordingCanvas() const { return fCanvas; } 242 SkCanvas* getRecordingCanvas() const { return fCanvas; }
242 243
243 private: 244 private:
244 SkPicture* fPicture; 245 SkPicture* fPicture;
245 SkCanvas* fCanvas; 246 SkCanvas* fCanvas;
246 }; 247 };
247 248
248 249
249 #endif 250 #endif
OLDNEW
« no previous file with comments | « gm/gmmain.cpp ('k') | include/pipe/SkGPipe.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698