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

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

Issue 1126613003: Revert of Move instanced index buffer creation to flush time (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 5 years, 7 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/GrAADistanceFieldPathRenderer.cpp ('k') | src/gpu/GrAAHairLinePathRenderer.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 2011 Google Inc. 3 * Copyright 2011 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 GrAAHairLinePathRenderer_DEFINED 9 #ifndef GrAAHairLinePathRenderer_DEFINED
10 #define GrAAHairLinePathRenderer_DEFINED 10 #define GrAAHairLinePathRenderer_DEFINED
11 11
12 #include "GrPathRenderer.h" 12 #include "GrPathRenderer.h"
13 13
14 class GrAAHairLinePathRenderer : public GrPathRenderer { 14 class GrAAHairLinePathRenderer : public GrPathRenderer {
15 public: 15 public:
16 static GrPathRenderer* Create() { return SkNEW(GrAAHairLinePathRenderer); } 16 virtual ~GrAAHairLinePathRenderer();
17 17
18 bool canDrawPath(const GrDrawTarget*, 18 static GrPathRenderer* Create(GrContext* context);
19 const GrPipelineBuilder*, 19
20 const SkMatrix& viewMatrix, 20 virtual bool canDrawPath(const GrDrawTarget*,
21 const SkPath&, 21 const GrPipelineBuilder*,
22 const GrStrokeInfo&, 22 const SkMatrix& viewMatrix,
23 bool antiAlias) const override; 23 const SkPath&,
24 const GrStrokeInfo&,
25 bool antiAlias) const override;
24 26
25 typedef SkTArray<SkPoint, true> PtArray; 27 typedef SkTArray<SkPoint, true> PtArray;
26 typedef SkTArray<int, true> IntArray; 28 typedef SkTArray<int, true> IntArray;
27 typedef SkTArray<float, true> FloatArray; 29 typedef SkTArray<float, true> FloatArray;
28 30
29 protected: 31 protected:
30 bool onDrawPath(GrDrawTarget*, 32 virtual bool onDrawPath(GrDrawTarget*,
31 GrPipelineBuilder*, 33 GrPipelineBuilder*,
32 GrColor, 34 GrColor,
33 const SkMatrix& viewMatrix, 35 const SkMatrix& viewMatrix,
34 const SkPath&, 36 const SkPath&,
35 const GrStrokeInfo&, 37 const GrStrokeInfo&,
36 bool antiAlias) override; 38 bool antiAlias) override;
37 39
38 private: 40 private:
39 GrAAHairLinePathRenderer() {} 41 GrAAHairLinePathRenderer(const GrContext* context,
42 const GrIndexBuffer* fLinesIndexBuffer,
43 const GrIndexBuffer* fQuadsIndexBuffer);
44
45 const GrIndexBuffer* fLinesIndexBuffer;
46 const GrIndexBuffer* fQuadsIndexBuffer;
40 47
41 typedef GrPathRenderer INHERITED; 48 typedef GrPathRenderer INHERITED;
42 }; 49 };
43 50
44 51
45 #endif 52 #endif
OLDNEW
« no previous file with comments | « src/gpu/GrAADistanceFieldPathRenderer.cpp ('k') | src/gpu/GrAAHairLinePathRenderer.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698