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

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

Issue 263293005: add local-matrix to shader::context (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: add/fix comments 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 | Annotate | Revision Log
« no previous file with comments | « include/core/SkShader.h ('k') | src/core/SkBlitter.h » ('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 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 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
64 64
65 private: 65 private:
66 typedef SkShader INHERITED; 66 typedef SkShader INHERITED;
67 }; 67 };
68 68
69 // Commonly used allocator. It currently is only used to allocate up to 3 object s. The total 69 // Commonly used allocator. It currently is only used to allocate up to 3 object s. The total
70 // bytes requested is calculated using one of our large shaders, its context siz e plus the size of 70 // bytes requested is calculated using one of our large shaders, its context siz e plus the size of
71 // an Sk3DBlitter in SkDraw.cpp 71 // an Sk3DBlitter in SkDraw.cpp
72 // Note that some contexts may contain other contexts (e.g. for compose shaders) , but we've not 72 // Note that some contexts may contain other contexts (e.g. for compose shaders) , but we've not
73 // yet found a situation where the size below isn't big enough. 73 // yet found a situation where the size below isn't big enough.
74 typedef SkSmallAllocator<3, sizeof(SkBitmapProcShader) + 74 typedef SkSmallAllocator<3, 768> SkTBlitterAllocator;
75 sizeof(SkBitmapProcShader::BitmapProcShaderContext) +
76 sizeof(SkBitmapProcState) +
77 sizeof(void*) * 2> SkTBlitterAllocator;
78 75
79 // If alloc is non-NULL, it will be used to allocate the returned SkShader, and MUST outlive 76 // If alloc is non-NULL, it will be used to allocate the returned SkShader, and MUST outlive
80 // the SkShader. 77 // the SkShader.
81 SkShader* CreateBitmapShader(const SkBitmap& src, SkShader::TileMode, SkShader:: TileMode, 78 SkShader* CreateBitmapShader(const SkBitmap& src, SkShader::TileMode, SkShader:: TileMode,
82 const SkMatrix* localMatrix, SkTBlitterAllocator* a lloc); 79 const SkMatrix* localMatrix, SkTBlitterAllocator* a lloc);
83 80
84 #endif 81 #endif
OLDNEW
« no previous file with comments | « include/core/SkShader.h ('k') | src/core/SkBlitter.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698