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

Side by Side Diff: src/gpu/effects/Gr1DKernelEffect.h

Issue 1230813003: More threading of GrProcessorDataManager (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: tweaks Created 5 years, 5 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/gpu/SkGpuDevice.cpp ('k') | src/gpu/effects/GrBicubicEffect.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 * Copyright 2012 Google Inc. 2 * Copyright 2012 Google Inc.
3 * 3 *
4 * Use of this source code is governed by a BSD-style license that can be 4 * Use of this source code is governed by a BSD-style license that can be
5 * found in the LICENSE file. 5 * found in the LICENSE file.
6 */ 6 */
7 7
8 #ifndef Gr1DKernelEffect_DEFINED 8 #ifndef Gr1DKernelEffect_DEFINED
9 #define Gr1DKernelEffect_DEFINED 9 #define Gr1DKernelEffect_DEFINED
10 10
(...skipping 10 matching lines...) Expand all
21 */ 21 */
22 22
23 class Gr1DKernelEffect : public GrSingleTextureEffect { 23 class Gr1DKernelEffect : public GrSingleTextureEffect {
24 24
25 public: 25 public:
26 enum Direction { 26 enum Direction {
27 kX_Direction, 27 kX_Direction,
28 kY_Direction, 28 kY_Direction,
29 }; 29 };
30 30
31 Gr1DKernelEffect(GrTexture* texture, 31 Gr1DKernelEffect(GrProcessorDataManager* procDataManager,
32 GrTexture* texture,
32 Direction direction, 33 Direction direction,
33 int radius) 34 int radius)
34 : GrSingleTextureEffect(texture, GrCoordTransform::MakeDivByTextureWHMat rix(texture)) 35 : INHERITED(procDataManager, texture, GrCoordTransform::MakeDivByTexture WHMatrix(texture))
35 , fDirection(direction) 36 , fDirection(direction)
36 , fRadius(radius) {} 37 , fRadius(radius) {}
37 38
38 virtual ~Gr1DKernelEffect() {}; 39 virtual ~Gr1DKernelEffect() {};
39 40
40 static int WidthFromRadius(int radius) { return 2 * radius + 1; } 41 static int WidthFromRadius(int radius) { return 2 * radius + 1; }
41 42
42 int radius() const { return fRadius; } 43 int radius() const { return fRadius; }
43 int width() const { return WidthFromRadius(fRadius); } 44 int width() const { return WidthFromRadius(fRadius); }
44 Direction direction() const { return fDirection; } 45 Direction direction() const { return fDirection; }
45 46
46 private: 47 private:
47 48
48 Direction fDirection; 49 Direction fDirection;
49 int fRadius; 50 int fRadius;
50 51
51 typedef GrSingleTextureEffect INHERITED; 52 typedef GrSingleTextureEffect INHERITED;
52 }; 53 };
53 54
54 #endif 55 #endif
OLDNEW
« no previous file with comments | « src/gpu/SkGpuDevice.cpp ('k') | src/gpu/effects/GrBicubicEffect.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698