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

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

Issue 295793002: stop calling SkBitmap::flatten (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
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: No longer call bitmap::flatten inside SkWriteBuffer::writeBitmap.
330 331
331 // Note: If the picture version needs to be increased then please follow the 332 // Note: If the picture version needs to be increased then please follow the
332 // steps to generate new SKPs in (only accessible to Googlers): http://goo.g l/qATVcw 333 // steps to generate new SKPs in (only accessible to Googlers): http://goo.g l/qATVcw
333 334
334 // Only SKPs within the min/current picture version range (inclusive) can be read. 335 // Only SKPs within the min/current picture version range (inclusive) can be read.
335 static const uint32_t MIN_PICTURE_VERSION = 19; 336 static const uint32_t MIN_PICTURE_VERSION = 19;
336 static const uint32_t CURRENT_PICTURE_VERSION = 26; 337 static const uint32_t CURRENT_PICTURE_VERSION = 26;
337 338
338 mutable uint32_t fUniqueID; 339 mutable uint32_t fUniqueID;
339 340
(...skipping 178 matching lines...) Expand 10 before | Expand all | Expand 10 after
518 typedef SkRefCnt INHERITED; 519 typedef SkRefCnt INHERITED;
519 }; 520 };
520 521
521 #endif 522 #endif
522 523
523 #ifdef SK_SUPPORT_LEGACY_PICTURE_HEADERS 524 #ifdef SK_SUPPORT_LEGACY_PICTURE_HEADERS
524 #include "SkPictureRecorder.h" 525 #include "SkPictureRecorder.h"
525 #endif 526 #endif
526 527
527 #endif 528 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698