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

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

Issue 1272293004: Move SkTemplates.h to private. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: It's a struct! Created 5 years, 4 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
« no previous file with comments | « src/core/SkBitmapController.cpp ('k') | src/core/SkBitmapProcShader.cpp » ('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
11 #define SkBitmapProcShader_DEFINED 11 #define SkBitmapProcShader_DEFINED
12 12
13 #include "SkShader.h" 13 #include "SkShader.h"
14 #include "SkBitmapProcState.h"
15 #include "SkSmallAllocator.h" 14 #include "SkSmallAllocator.h"
16 15
16 struct SkBitmapProcState;
17
17 class SkBitmapProcShader : public SkShader { 18 class SkBitmapProcShader : public SkShader {
18 public: 19 public:
19 SkBitmapProcShader(const SkBitmap& src, TileMode tx, TileMode ty, 20 SkBitmapProcShader(const SkBitmap& src, TileMode tx, TileMode ty,
20 const SkMatrix* localMatrix = NULL); 21 const SkMatrix* localMatrix = NULL);
21 22
22 // overrides from SkShader 23 // overrides from SkShader
23 bool isOpaque() const override; 24 bool isOpaque() const override;
24 BitmapType asABitmap(SkBitmap*, SkMatrix*, TileMode*) const override; 25 BitmapType asABitmap(SkBitmap*, SkMatrix*, TileMode*) const override;
25 26
26 size_t contextSize() const override; 27 size_t contextSize() const override;
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
70 // Note that some contexts may contain other contexts (e.g. for compose shaders) , but we've not 71 // Note that some contexts may contain other contexts (e.g. for compose shaders) , but we've not
71 // yet found a situation where the size below isn't big enough. 72 // yet found a situation where the size below isn't big enough.
72 typedef SkSmallAllocator<3, 1152> SkTBlitterAllocator; 73 typedef SkSmallAllocator<3, 1152> SkTBlitterAllocator;
73 74
74 // If alloc is non-NULL, it will be used to allocate the returned SkShader, and MUST outlive 75 // If alloc is non-NULL, it will be used to allocate the returned SkShader, and MUST outlive
75 // the SkShader. 76 // the SkShader.
76 SkShader* SkCreateBitmapShader(const SkBitmap& src, SkShader::TileMode, SkShader ::TileMode, 77 SkShader* SkCreateBitmapShader(const SkBitmap& src, SkShader::TileMode, SkShader ::TileMode,
77 const SkMatrix* localMatrix, SkTBlitterAllocator* alloc); 78 const SkMatrix* localMatrix, SkTBlitterAllocator* alloc);
78 79
79 #endif 80 #endif
OLDNEW
« no previous file with comments | « src/core/SkBitmapController.cpp ('k') | src/core/SkBitmapProcShader.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698