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

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

Issue 296823008: Revert of Remove unused (by clients) SkUnitMapper (https://codereview.chromium.org/283273002/) (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: Created 6 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 | « include/core/SkFlattenable.h ('k') | include/core/SkReadBuffer.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 309 matching lines...) Expand 10 before | Expand all | Expand 10 after
320 // V17: SkPixelRef now writes SkImageInfo 320 // V17: SkPixelRef now writes SkImageInfo
321 // V18: SkBitmap now records x,y for its pixelref origin, instead of offset. 321 // V18: SkBitmap now records x,y for its pixelref origin, instead of offset.
322 // V19: encode matrices and regions into the ops stream 322 // V19: encode matrices and regions into the ops stream
323 // V20: added bool to SkPictureImageFilter's serialization (to allow SkPictu re serialization) 323 // V20: added bool to SkPictureImageFilter's serialization (to allow SkPictu re serialization)
324 // V21: add pushCull, popCull 324 // V21: add pushCull, popCull
325 // V22: SK_PICT_FACTORY_TAG's size is now the chunk size in bytes 325 // V22: SK_PICT_FACTORY_TAG's size is now the chunk size in bytes
326 // V23: SkPaint::FilterLevel became a real enum 326 // V23: SkPaint::FilterLevel became a real enum
327 // V24: SkTwoPointConicalGradient now has fFlipped flag for gradient flippin g 327 // V24: SkTwoPointConicalGradient now has fFlipped flag for gradient flippin g
328 // V25: SkDashPathEffect now only writes phase and interval array when flatt ening 328 // V25: SkDashPathEffect now only writes phase and interval array when flatt ening
329 // V26: Removed boolean from SkColorShader for inheriting color from SkPaint . 329 // V26: Removed boolean from SkColorShader for inheriting color from SkPaint .
330 // V27: Remove SkUnitMapper from gradients (and skia).
331 330
332 // Note: If the picture version needs to be increased then please follow the 331 // Note: If the picture version needs to be increased then please follow the
333 // steps to generate new SKPs in (only accessible to Googlers): http://goo.g l/qATVcw 332 // steps to generate new SKPs in (only accessible to Googlers): http://goo.g l/qATVcw
334 333
335 // Only SKPs within the min/current picture version range (inclusive) can be read. 334 // Only SKPs within the min/current picture version range (inclusive) can be read.
336 static const uint32_t MIN_PICTURE_VERSION = 19; 335 static const uint32_t MIN_PICTURE_VERSION = 19;
337 static const uint32_t CURRENT_PICTURE_VERSION = 27; 336 static const uint32_t CURRENT_PICTURE_VERSION = 26;
338 337
339 mutable uint32_t fUniqueID; 338 mutable uint32_t fUniqueID;
340 339
341 // fPlayback, fRecord, fWidth & fHeight are protected to allow derived class es to 340 // fPlayback, fRecord, fWidth & fHeight are protected to allow derived class es to
342 // install their own SkPicturePlayback-derived players,SkPictureRecord-deriv ed 341 // install their own SkPicturePlayback-derived players,SkPictureRecord-deriv ed
343 // recorders and set the picture size 342 // recorders and set the picture size
344 SkPicturePlayback* fPlayback; 343 SkPicturePlayback* fPlayback;
345 SkPictureRecord* fRecord; 344 SkPictureRecord* fRecord;
346 int fWidth, fHeight; 345 int fWidth, fHeight;
347 const AccelData* fAccelData; 346 const AccelData* fAccelData;
(...skipping 171 matching lines...) Expand 10 before | Expand all | Expand 10 after
519 typedef SkRefCnt INHERITED; 518 typedef SkRefCnt INHERITED;
520 }; 519 };
521 520
522 #endif 521 #endif
523 522
524 #ifdef SK_SUPPORT_LEGACY_PICTURE_HEADERS 523 #ifdef SK_SUPPORT_LEGACY_PICTURE_HEADERS
525 #include "SkPictureRecorder.h" 524 #include "SkPictureRecorder.h"
526 #endif 525 #endif
527 526
528 #endif 527 #endif
OLDNEW
« no previous file with comments | « include/core/SkFlattenable.h ('k') | include/core/SkReadBuffer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698