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

Side by Side Diff: src/core/SkBitmapProcState.h

Issue 20102002: free cache in destructor, in case endContext was not called. change Resize to return bool indicatin… (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: Created 7 years, 5 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 | « no previous file | src/core/SkBitmapProcState.cpp » ('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 SkBitmapProcState_DEFINED 10 #ifndef SkBitmapProcState_DEFINED
(...skipping 19 matching lines...) Expand all
30 #define SkFixedToFractionalInt(x) (x) 30 #define SkFixedToFractionalInt(x) (x)
31 #define SkFractionalIntToInt(x) ((x) >> 16) 31 #define SkFractionalIntToInt(x) ((x) >> 16)
32 #endif 32 #endif
33 33
34 class SkPaint; 34 class SkPaint;
35 struct SkConvolutionProcs; 35 struct SkConvolutionProcs;
36 36
37 struct SkBitmapProcState { 37 struct SkBitmapProcState {
38 38
39 SkBitmapProcState(): fScaledCacheID(NULL), fBitmapFilter(NULL) {} 39 SkBitmapProcState(): fScaledCacheID(NULL), fBitmapFilter(NULL) {}
40 ~SkBitmapProcState() { 40 ~SkBitmapProcState();
41 SkASSERT(NULL == fScaledCacheID);
42 SkDELETE(fBitmapFilter);
43 }
44 41
45 typedef void (*ShaderProc32)(const SkBitmapProcState&, int x, int y, 42 typedef void (*ShaderProc32)(const SkBitmapProcState&, int x, int y,
46 SkPMColor[], int count); 43 SkPMColor[], int count);
47 44
48 typedef void (*ShaderProc16)(const SkBitmapProcState&, int x, int y, 45 typedef void (*ShaderProc16)(const SkBitmapProcState&, int x, int y,
49 uint16_t[], int count); 46 uint16_t[], int count);
50 47
51 typedef void (*MatrixProc)(const SkBitmapProcState&, 48 typedef void (*MatrixProc)(const SkBitmapProcState&,
52 uint32_t bitmapXY[], 49 uint32_t bitmapXY[],
53 int count, 50 int count,
(...skipping 169 matching lines...) Expand 10 before | Expand all | Expand 10 after
223 void ClampX_ClampY_nofilter_affine(const SkBitmapProcState& s, 220 void ClampX_ClampY_nofilter_affine(const SkBitmapProcState& s,
224 uint32_t xy[], int count, int x, int y); 221 uint32_t xy[], int count, int x, int y);
225 void S32_D16_filter_DX(const SkBitmapProcState& s, 222 void S32_D16_filter_DX(const SkBitmapProcState& s,
226 const uint32_t* xy, int count, uint16_t* colo rs); 223 const uint32_t* xy, int count, uint16_t* colo rs);
227 224
228 void highQualityFilter(const SkBitmapProcState &s, int x, int y, 225 void highQualityFilter(const SkBitmapProcState &s, int x, int y,
229 SkPMColor *SK_RESTRICT colors, int count); 226 SkPMColor *SK_RESTRICT colors, int count);
230 227
231 228
232 #endif 229 #endif
OLDNEW
« no previous file with comments | « no previous file | src/core/SkBitmapProcState.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698