OLD | NEW |
1 | 1 |
2 /* | 2 /* |
3 * Copyright 2006 The Android Open Source Project | 3 * Copyright 2006 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 SkBitmapProcShader_DEFINED | 10 #ifndef SkBitmapProcShader_DEFINED |
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
66 | 66 |
67 private: | 67 private: |
68 typedef SkShader INHERITED; | 68 typedef SkShader INHERITED; |
69 }; | 69 }; |
70 | 70 |
71 // Commonly used allocator. It currently is only used to allocate up to 3 object
s. The total | 71 // Commonly used allocator. It currently is only used to allocate up to 3 object
s. The total |
72 // bytes requested is calculated using one of our large shaders, its context siz
e plus the size of | 72 // bytes requested is calculated using one of our large shaders, its context siz
e plus the size of |
73 // an Sk3DBlitter in SkDraw.cpp | 73 // an Sk3DBlitter in SkDraw.cpp |
74 // Note that some contexts may contain other contexts (e.g. for compose shaders)
, but we've not | 74 // Note that some contexts may contain other contexts (e.g. for compose shaders)
, but we've not |
75 // yet found a situation where the size below isn't big enough. | 75 // yet found a situation where the size below isn't big enough. |
76 typedef SkSmallAllocator<3, 768> SkTBlitterAllocator; | 76 typedef SkSmallAllocator<3, 1024> SkTBlitterAllocator; |
77 | 77 |
78 // If alloc is non-NULL, it will be used to allocate the returned SkShader, and
MUST outlive | 78 // If alloc is non-NULL, it will be used to allocate the returned SkShader, and
MUST outlive |
79 // the SkShader. | 79 // the SkShader. |
80 SkShader* CreateBitmapShader(const SkBitmap& src, SkShader::TileMode, SkShader::
TileMode, | 80 SkShader* CreateBitmapShader(const SkBitmap& src, SkShader::TileMode, SkShader::
TileMode, |
81 const SkMatrix* localMatrix, SkTBlitterAllocator* a
lloc); | 81 const SkMatrix* localMatrix, SkTBlitterAllocator* a
lloc); |
82 | 82 |
83 #endif | 83 #endif |
OLD | NEW |