| OLD | NEW |
| 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 | 8 |
| 9 #include "SkAnnotation.h" | 9 #include "SkAnnotation.h" |
| 10 #include "SkBitmapDevice.h" | 10 #include "SkBitmapDevice.h" |
| (...skipping 11 matching lines...) Expand all Loading... |
| 22 #include "SkPathEffect.h" | 22 #include "SkPathEffect.h" |
| 23 #include "SkPictureFlat.h" | 23 #include "SkPictureFlat.h" |
| 24 #include "SkRasterizer.h" | 24 #include "SkRasterizer.h" |
| 25 #include "SkRRect.h" | 25 #include "SkRRect.h" |
| 26 #include "SkShader.h" | 26 #include "SkShader.h" |
| 27 #include "SkStream.h" | 27 #include "SkStream.h" |
| 28 #include "SkTSearch.h" | 28 #include "SkTSearch.h" |
| 29 #include "SkTypeface.h" | 29 #include "SkTypeface.h" |
| 30 #include "SkWriter32.h" | 30 #include "SkWriter32.h" |
| 31 | 31 |
| 32 #if SK_DEBUG | 32 #ifdef SK_DEBUG |
| 33 // When debugging, allocate snuggly. | 33 // When debugging, allocate snuggly. |
| 34 static const size_t kMinBlockSize = 0; | 34 static const size_t kMinBlockSize = 0; |
| 35 #else | 35 #else |
| 36 // For peformance, make large allocations. | 36 // For peformance, make large allocations. |
| 37 static const size_t kMinBlockSize = 16 * 1024; | 37 static const size_t kMinBlockSize = 16 * 1024; |
| 38 #endif | 38 #endif |
| 39 | 39 |
| 40 enum { | 40 enum { |
| 41 kSizeOfFlatRRect = sizeof(SkRect) + 4 * sizeof(SkVector) | 41 kSizeOfFlatRRect = sizeof(SkRect) + 4 * sizeof(SkVector) |
| 42 }; | 42 }; |
| (...skipping 1181 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1224 } | 1224 } |
| 1225 | 1225 |
| 1226 void BitmapShuttle::removeCanvas() { | 1226 void BitmapShuttle::removeCanvas() { |
| 1227 if (NULL == fCanvas) { | 1227 if (NULL == fCanvas) { |
| 1228 return; | 1228 return; |
| 1229 } | 1229 } |
| 1230 fCanvas->unref(); | 1230 fCanvas->unref(); |
| 1231 fCanvas = NULL; | 1231 fCanvas = NULL; |
| 1232 } | 1232 } |
| 1233 | 1233 |
| OLD | NEW |