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

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

Issue 1529833003: Repeating SkBitmapProcState rounding bias (Closed) Base URL: https://chromium.googlesource.com/skia.git@master
Patch Set: comments Created 5 years 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
« no previous file with comments | « no previous file | src/core/SkBitmapProcState.h » ('j') | src/core/SkBitmapProcState.h » ('J')
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 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
69 const SkBitmapProvider&, const ContextRec&, void * storage); 69 const SkBitmapProvider&, const ContextRec&, void * storage);
70 70
71 typedef SkShader INHERITED; 71 typedef SkShader INHERITED;
72 }; 72 };
73 73
74 // Commonly used allocator. It currently is only used to allocate up to 3 object s. The total 74 // Commonly used allocator. It currently is only used to allocate up to 3 object s. The total
75 // bytes requested is calculated using one of our large shaders, its context siz e plus the size of 75 // bytes requested is calculated using one of our large shaders, its context siz e plus the size of
76 // an Sk3DBlitter in SkDraw.cpp 76 // an Sk3DBlitter in SkDraw.cpp
77 // Note that some contexts may contain other contexts (e.g. for compose shaders) , but we've not 77 // Note that some contexts may contain other contexts (e.g. for compose shaders) , but we've not
78 // yet found a situation where the size below isn't big enough. 78 // yet found a situation where the size below isn't big enough.
79 typedef SkSmallAllocator<3, 1160> SkTBlitterAllocator; 79 typedef SkSmallAllocator<3, 1172> SkTBlitterAllocator;
80 80
81 // If alloc is non-nullptr, it will be used to allocate the returned SkShader, a nd MUST outlive 81 // If alloc is non-nullptr, it will be used to allocate the returned SkShader, a nd MUST outlive
82 // the SkShader. 82 // the SkShader.
83 SkShader* SkCreateBitmapShader(const SkBitmap& src, SkShader::TileMode, SkShader ::TileMode, 83 SkShader* SkCreateBitmapShader(const SkBitmap& src, SkShader::TileMode, SkShader ::TileMode,
84 const SkMatrix* localMatrix, SkTBlitterAllocator* alloc); 84 const SkMatrix* localMatrix, SkTBlitterAllocator* alloc);
85 85
86 #endif 86 #endif
OLDNEW
« no previous file with comments | « no previous file | src/core/SkBitmapProcState.h » ('j') | src/core/SkBitmapProcState.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698