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

Side by Side Diff: src/pipe/SkGPipeWrite.cpp

Issue 272623002: if SK_DEBUG -> ifdef SK_DEBUG (Closed) Base URL: https://skia.googlesource.com/skia.git@master
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
« no previous file with comments | « no previous file | no next file » | 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 8
9 #include "SkAnnotation.h" 9 #include "SkAnnotation.h"
10 #include "SkBitmapDevice.h" 10 #include "SkBitmapDevice.h"
(...skipping 11 matching lines...) Expand all
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
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
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698