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/GrOvalRenderer.h

Issue 2121313004: Revert of Better encapsulate oval/rrect batchs. (Closed) Base URL: https://chromium.googlesource.com/skia.git@master
Patch Set: Created 4 years, 5 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 | « no previous file | src/gpu/GrOvalRenderer.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 * Copyright 2013 Google Inc. 2 * Copyright 2013 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 GrOvalRenderer_DEFINED 8 #ifndef GrOvalRenderer_DEFINED
9 #define GrOvalRenderer_DEFINED 9 #define GrOvalRenderer_DEFINED
10 10
(...skipping 17 matching lines...) Expand all
28 const SkStrokeRec& stroke, 28 const SkStrokeRec& stroke,
29 GrShaderCaps* shaderCaps); 29 GrShaderCaps* shaderCaps);
30 static GrDrawBatch* CreateRRectBatch(GrColor, 30 static GrDrawBatch* CreateRRectBatch(GrColor,
31 const SkMatrix& viewMatrix, 31 const SkMatrix& viewMatrix,
32 const SkRRect& rrect, 32 const SkRRect& rrect,
33 const SkStrokeRec& stroke, 33 const SkStrokeRec& stroke,
34 GrShaderCaps* shaderCaps); 34 GrShaderCaps* shaderCaps);
35 35
36 private: 36 private:
37 GrOvalRenderer(); 37 GrOvalRenderer();
38
39 static GrDrawBatch* CreateEllipseBatch(GrColor,
40 const SkMatrix& viewMatrix,
41 const SkRect& ellipse,
42 const SkStrokeRec& stroke);
43 static GrDrawBatch* CreateDIEllipseBatch(GrColor,
44 const SkMatrix& viewMatrix,
45 const SkRect& ellipse,
46 const SkStrokeRec& stroke);
47 static GrDrawBatch* CreateCircleBatch(GrColor,
48 const SkMatrix& viewMatrix,
49 const SkRect& circle,
50 const SkStrokeRec& stroke);
38 }; 51 };
39 52
40 #endif // GrOvalRenderer_DEFINED 53 #endif // GrOvalRenderer_DEFINED
OLDNEW
« no previous file with comments | « no previous file | src/gpu/GrOvalRenderer.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698