OLD | NEW |
1 | |
2 /* | 1 /* |
3 * Copyright 2010 Google Inc. | 2 * Copyright 2010 Google Inc. |
4 * | 3 * |
5 * Use of this source code is governed by a BSD-style license that can be | 4 * Use of this source code is governed by a BSD-style license that can be |
6 * found in the LICENSE file. | 5 * found in the LICENSE file. |
7 */ | 6 */ |
8 | 7 |
9 | 8 |
10 #ifndef SkGradientBitmapCache_DEFINED | 9 #ifndef SkGradientBitmapCache_DEFINED |
11 #define SkGradientBitmapCache_DEFINED | 10 #define SkGradientBitmapCache_DEFINED |
(...skipping 28 matching lines...) Expand all Loading... |
40 class AutoValidate : SkNoncopyable { | 39 class AutoValidate : SkNoncopyable { |
41 public: | 40 public: |
42 AutoValidate(const SkGradientBitmapCache* bc) : fBC(bc) { bc->validate()
; } | 41 AutoValidate(const SkGradientBitmapCache* bc) : fBC(bc) { bc->validate()
; } |
43 ~AutoValidate() { fBC->validate(); } | 42 ~AutoValidate() { fBC->validate(); } |
44 private: | 43 private: |
45 const SkGradientBitmapCache* fBC; | 44 const SkGradientBitmapCache* fBC; |
46 }; | 45 }; |
47 }; | 46 }; |
48 | 47 |
49 #endif | 48 #endif |
OLD | NEW |