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

Side by Side Diff: src/gpu/GrAADistanceFieldPathRenderer.h

Issue 716143004: Replace GrResourceCache with GrResourceCache2. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: fix asserts Created 6 years, 1 month 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 | « include/gpu/SkGr.h ('k') | src/gpu/GrBufferAllocPool.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 2014 Google Inc. 3 * Copyright 2014 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 GrAADistanceFieldPathRenderer_DEFINED 9 #ifndef GrAADistanceFieldPathRenderer_DEFINED
10 #define GrAADistanceFieldPathRenderer_DEFINED 10 #define GrAADistanceFieldPathRenderer_DEFINED
11 11
12 #include "GrAllocPool.h" 12 #include "GrAllocPool.h"
13 #include "GrAtlas.h" 13 #include "GrAtlas.h"
14 #include "GrPathRenderer.h" 14 #include "GrPathRenderer.h"
15 #include "GrRect.h" 15 #include "GrRect.h"
16 16
17 #include "SkChecksum.h" 17 #include "SkChecksum.h"
18 #include "SkTDynamicHash.h"
18 19
19 class GrContext; 20 class GrContext;
20 class GrPlot; 21 class GrPlot;
21 22
22 class GrAADistanceFieldPathRenderer : public GrPathRenderer { 23 class GrAADistanceFieldPathRenderer : public GrPathRenderer {
23 public: 24 public:
24 GrAADistanceFieldPathRenderer(GrContext* context); 25 GrAADistanceFieldPathRenderer(GrContext* context);
25 virtual ~GrAADistanceFieldPathRenderer(); 26 virtual ~GrAADistanceFieldPathRenderer();
26 27
27 virtual bool canDrawPath(const SkPath& path, 28 virtual bool canDrawPath(const SkPath& path,
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
77 78
78 bool internalDrawPath(const SkPath& path, const PathData* pathData, GrDrawTa rget* target); 79 bool internalDrawPath(const SkPath& path, const PathData* pathData, GrDrawTa rget* target);
79 PathData* addPathToAtlas(const SkPath& path, const SkStrokeRec& stroke, bool antiAlias, 80 PathData* addPathToAtlas(const SkPath& path, const SkStrokeRec& stroke, bool antiAlias,
80 uint32_t dimension, SkScalar scale); 81 uint32_t dimension, SkScalar scale);
81 bool freeUnusedPlot(); 82 bool freeUnusedPlot();
82 83
83 typedef GrPathRenderer INHERITED; 84 typedef GrPathRenderer INHERITED;
84 }; 85 };
85 86
86 #endif 87 #endif
OLDNEW
« no previous file with comments | « include/gpu/SkGr.h ('k') | src/gpu/GrBufferAllocPool.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698