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

Side by Side Diff: src/gpu/gl/GrGLPathRendering.h

Issue 1957363002: Replace GrStrokeInfo with GrStyle. (Closed) Base URL: https://chromium.googlesource.com/skia.git@resscale
Patch Set: Fix issue where hairlines were going to MSAAPathRenderer Created 4 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
OLDNEW
1 /* 1 /*
2 * Copyright 2014 Google Inc. 2 * Copyright 2014 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 GrGLPathRendering_DEFINED 8 #ifndef GrGLPathRendering_DEFINED
9 #define GrGLPathRendering_DEFINED 9 #define GrGLPathRendering_DEFINED
10 10
11 #include "SkRefCnt.h" 11 #include "SkRefCnt.h"
12 #include "GrPathRendering.h" 12 #include "GrPathRendering.h"
13 #include "GrStencil.h" 13 #include "GrStencil.h"
14 #include "gl/GrGLTypes.h" 14 #include "gl/GrGLTypes.h"
15 #include "glsl/GrGLSLUtil.h" 15 #include "glsl/GrGLSLUtil.h"
16 16
17 class GrGLNameAllocator; 17 class GrGLNameAllocator;
18 class GrGLGpu; 18 class GrGLGpu;
19 class GrStyle;
19 20
20 /** 21 /**
21 * This class wraps the NV_path_rendering extension and manages its various 22 * This class wraps the NV_path_rendering extension and manages its various
22 * API versions. If a method is not present in the GrGLInterface of the GrGLGpu 23 * API versions. If a method is not present in the GrGLInterface of the GrGLGpu
23 * (because the driver version is old), it tries to provide a backup 24 * (because the driver version is old), it tries to provide a backup
24 * implementation. But if a backup implementation is not practical, it marks the 25 * implementation. But if a backup implementation is not practical, it marks the
25 * method as not supported. 26 * method as not supported.
26 */ 27 */
27 class GrGLPathRendering : public GrPathRendering { 28 class GrGLPathRendering : public GrPathRendering {
28 public: 29 public:
29 /** 30 /**
30 * Create a new GrGLPathRendering object from a given GrGLGpu. 31 * Create a new GrGLPathRendering object from a given GrGLGpu.
31 */ 32 */
32 GrGLPathRendering(GrGLGpu* gpu); 33 GrGLPathRendering(GrGLGpu* gpu);
33 virtual ~GrGLPathRendering(); 34 virtual ~GrGLPathRendering();
34 35
35 // GrPathRendering implementations. 36 // GrPathRendering implementations.
36 GrPath* createPath(const SkPath&, const GrStrokeInfo&) override; 37 GrPath* createPath(const SkPath&, const GrStyle&) override;
37 virtual GrPathRange* createPathRange(GrPathRange::PathGenerator*, 38 virtual GrPathRange* createPathRange(GrPathRange::PathGenerator*,
38 const GrStrokeInfo&) override; 39 const GrStyle&) override;
39 40
40 /* Called when the 3D context state is unknown. */ 41 /* Called when the 3D context state is unknown. */
41 void resetContext(); 42 void resetContext();
42 43
43 /** 44 /**
44 * Called when the context either is about to be lost or is lost. Disconnect Type indicates 45 * Called when the context either is about to be lost or is lost. Disconnect Type indicates
45 * whether GPU resources should be cleaned up or abandoned when this is call ed. 46 * whether GPU resources should be cleaned up or abandoned when this is call ed.
46 */ 47 */
47 void disconnect(GrGpu::DisconnectType); 48 void disconnect(GrGpu::DisconnectType);
48 49
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
122 GrGLGpu* gpu(); 123 GrGLGpu* gpu();
123 124
124 GrGLuint fFirstPreallocatedPathID; 125 GrGLuint fFirstPreallocatedPathID;
125 GrGLsizei fPreallocatedPathCount; 126 GrGLsizei fPreallocatedPathCount;
126 MatrixState fHWProjectionMatrixState; 127 MatrixState fHWProjectionMatrixState;
127 GrStencilSettings fHWPathStencilSettings; 128 GrStencilSettings fHWPathStencilSettings;
128 Caps fCaps; 129 Caps fCaps;
129 }; 130 };
130 131
131 #endif 132 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698