| 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 57 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 68                                 const SkBitmapProvider&, const ContextRec&, void
    * storage); | 68                                 const SkBitmapProvider&, const ContextRec&, void
    * storage); | 
| 69 | 69 | 
| 70     typedef SkShader INHERITED; | 70     typedef SkShader INHERITED; | 
| 71 }; | 71 }; | 
| 72 | 72 | 
| 73 // Commonly used allocator. It currently is only used to allocate up to 3 object
    s. The total | 73 // Commonly used allocator. It currently is only used to allocate up to 3 object
    s. The total | 
| 74 // bytes requested is calculated using one of our large shaders, its context siz
    e plus the size of | 74 // bytes requested is calculated using one of our large shaders, its context siz
    e plus the size of | 
| 75 // an Sk3DBlitter in SkDraw.cpp | 75 // an Sk3DBlitter in SkDraw.cpp | 
| 76 // Note that some contexts may contain other contexts (e.g. for compose shaders)
    , but we've not | 76 // Note that some contexts may contain other contexts (e.g. for compose shaders)
    , but we've not | 
| 77 // yet found a situation where the size below isn't big enough. | 77 // yet found a situation where the size below isn't big enough. | 
| 78 typedef SkSmallAllocator<3, 1160> SkTBlitterAllocator; | 78 typedef SkSmallAllocator<3, 1280> SkTBlitterAllocator; | 
| 79 | 79 | 
| 80 // If alloc is non-nullptr, it will be used to allocate the returned SkShader, a
    nd MUST outlive | 80 // If alloc is non-nullptr, it will be used to allocate the returned SkShader, a
    nd MUST outlive | 
| 81 // the SkShader. | 81 // the SkShader. | 
| 82 SkShader* SkCreateBitmapShader(const SkBitmap& src, SkShader::TileMode, SkShader
    ::TileMode, | 82 SkShader* SkCreateBitmapShader(const SkBitmap& src, SkShader::TileMode, SkShader
    ::TileMode, | 
| 83                                const SkMatrix* localMatrix, SkTBlitterAllocator*
     alloc); | 83                                const SkMatrix* localMatrix, SkTBlitterAllocator*
     alloc); | 
| 84 | 84 | 
| 85 #endif | 85 #endif | 
| OLD | NEW | 
|---|