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 #include "GrGLPath.h" | 9 #include "GrGLPath.h" |
10 #include "GrGLPathRendering.h" | 10 #include "GrGLPathRendering.h" |
11 #include "GrGpuGL.h" | 11 #include "GrGLGpu.h" |
12 | 12 |
13 namespace { | 13 namespace { |
14 inline GrGLubyte verb_to_gl_path_cmd(SkPath::Verb verb) { | 14 inline GrGLubyte verb_to_gl_path_cmd(SkPath::Verb verb) { |
15 static const GrGLubyte gTable[] = { | 15 static const GrGLubyte gTable[] = { |
16 GR_GL_MOVE_TO, | 16 GR_GL_MOVE_TO, |
17 GR_GL_LINE_TO, | 17 GR_GL_LINE_TO, |
18 GR_GL_QUADRATIC_CURVE_TO, | 18 GR_GL_QUADRATIC_CURVE_TO, |
19 GR_GL_CONIC_CURVE_TO, | 19 GR_GL_CONIC_CURVE_TO, |
20 GR_GL_CUBIC_CURVE_TO, | 20 GR_GL_CUBIC_CURVE_TO, |
21 GR_GL_CLOSE_PATH, | 21 GR_GL_CLOSE_PATH, |
(...skipping 181 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
203 } | 203 } |
204 | 204 |
205 INHERITED::onRelease(); | 205 INHERITED::onRelease(); |
206 } | 206 } |
207 | 207 |
208 void GrGLPath::onAbandon() { | 208 void GrGLPath::onAbandon() { |
209 fPathID = 0; | 209 fPathID = 0; |
210 | 210 |
211 INHERITED::onAbandon(); | 211 INHERITED::onAbandon(); |
212 } | 212 } |
OLD | NEW |