OLD | NEW |
1 | 1 |
2 /* | 2 /* |
3 * Copyright 2012 Google Inc. | 3 * Copyright 2012 Google Inc. |
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 #ifndef GrSoftwarePathRenderer_DEFINED | 9 #ifndef GrSoftwarePathRenderer_DEFINED |
10 #define GrSoftwarePathRenderer_DEFINED | 10 #define GrSoftwarePathRenderer_DEFINED |
11 | 11 |
12 #include "GrPathRenderer.h" | 12 #include "GrPathRenderer.h" |
13 | 13 |
14 class GrContext; | 14 class GrContext; |
15 class GrAutoScratchTexture; | |
16 | 15 |
17 /** | 16 /** |
18 * This class uses the software side to render a path to an SkBitmap and | 17 * This class uses the software side to render a path to an SkBitmap and |
19 * then uploads the result to the gpu | 18 * then uploads the result to the gpu |
20 */ | 19 */ |
21 class GrSoftwarePathRenderer : public GrPathRenderer { | 20 class GrSoftwarePathRenderer : public GrPathRenderer { |
22 public: | 21 public: |
23 GrSoftwarePathRenderer(GrContext* context) | 22 GrSoftwarePathRenderer(GrContext* context) |
24 : fContext(context) { | 23 : fContext(context) { |
25 } | 24 } |
(...skipping 12 matching lines...) Expand all Loading... |
38 GrDrawTarget*, | 37 GrDrawTarget*, |
39 bool antiAlias) SK_OVERRIDE; | 38 bool antiAlias) SK_OVERRIDE; |
40 | 39 |
41 private: | 40 private: |
42 GrContext* fContext; | 41 GrContext* fContext; |
43 | 42 |
44 typedef GrPathRenderer INHERITED; | 43 typedef GrPathRenderer INHERITED; |
45 }; | 44 }; |
46 | 45 |
47 #endif | 46 #endif |
OLD | NEW |