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

Side by Side Diff: include/gpu/SkGr.h

Issue 15068008: Remove GrPathCmd (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: Created 7 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 | Annotate | Revision Log
« no previous file with comments | « include/gpu/GrTypes.h ('k') | src/gpu/GrAAConvexPathRenderer.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 2010 Google Inc. 3 * Copyright 2010 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 9
10 10
(...skipping 27 matching lines...) Expand all
38 GR_STATIC_ASSERT((int)kISC_GrBlendCoeff == (int)SkXfermode::kISC_Coeff); 38 GR_STATIC_ASSERT((int)kISC_GrBlendCoeff == (int)SkXfermode::kISC_Coeff);
39 GR_STATIC_ASSERT((int)kDC_GrBlendCoeff == (int)SkXfermode::kDC_Coeff); 39 GR_STATIC_ASSERT((int)kDC_GrBlendCoeff == (int)SkXfermode::kDC_Coeff);
40 GR_STATIC_ASSERT((int)kIDC_GrBlendCoeff == (int)SkXfermode::kIDC_Coeff); 40 GR_STATIC_ASSERT((int)kIDC_GrBlendCoeff == (int)SkXfermode::kIDC_Coeff);
41 GR_STATIC_ASSERT((int)kSA_GrBlendCoeff == (int)SkXfermode::kSA_Coeff); 41 GR_STATIC_ASSERT((int)kSA_GrBlendCoeff == (int)SkXfermode::kSA_Coeff);
42 GR_STATIC_ASSERT((int)kISA_GrBlendCoeff == (int)SkXfermode::kISA_Coeff); 42 GR_STATIC_ASSERT((int)kISA_GrBlendCoeff == (int)SkXfermode::kISA_Coeff);
43 GR_STATIC_ASSERT((int)kDA_GrBlendCoeff == (int)SkXfermode::kDA_Coeff); 43 GR_STATIC_ASSERT((int)kDA_GrBlendCoeff == (int)SkXfermode::kDA_Coeff);
44 GR_STATIC_ASSERT((int)kIDA_GrBlendCoeff == (int)SkXfermode::kIDA_Coeff); 44 GR_STATIC_ASSERT((int)kIDA_GrBlendCoeff == (int)SkXfermode::kIDA_Coeff);
45 45
46 #define sk_blend_to_grblend(X) ((GrBlendCoeff)(X)) 46 #define sk_blend_to_grblend(X) ((GrBlendCoeff)(X))
47 47
48 GR_STATIC_ASSERT((int)SkPath::kMove_Verb == (int)kMove_PathCmd);
49 GR_STATIC_ASSERT((int)SkPath::kLine_Verb == (int)kLine_PathCmd);
50 GR_STATIC_ASSERT((int)SkPath::kQuad_Verb == (int)kQuadratic_PathCmd);
51 GR_STATIC_ASSERT((int)SkPath::kCubic_Verb == (int)kCubic_PathCmd);
52 GR_STATIC_ASSERT((int)SkPath::kClose_Verb == (int)kClose_PathCmd);
53 GR_STATIC_ASSERT((int)SkPath::kDone_Verb == (int)kEnd_PathCmd);
54
55 #define sk_path_verb_to_gr_path_command(X) ((GrPathCmd)(X))
56
57 /////////////////////////////////////////////////////////////////////////////// 48 ///////////////////////////////////////////////////////////////////////////////
58 49
59 #include "SkColorPriv.h" 50 #include "SkColorPriv.h"
60 51
61 /** 52 /**
62 * Convert the SkBitmap::Config to the corresponding PixelConfig, or 53 * Convert the SkBitmap::Config to the corresponding PixelConfig, or
63 * kUnknown_PixelConfig if the conversion cannot be done. 54 * kUnknown_PixelConfig if the conversion cannot be done.
64 */ 55 */
65 GrPixelConfig SkBitmapConfig2GrPixelConfig(SkBitmap::Config); 56 GrPixelConfig SkBitmapConfig2GrPixelConfig(SkBitmap::Config);
66 57
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
101 92
102 private: 93 private:
103 SkGlyphCache* fStrike; 94 SkGlyphCache* fStrike;
104 GrKey* fKey; 95 GrKey* fKey;
105 // DECLARE_INSTANCE_COUNTER(SkGrFontScaler); 96 // DECLARE_INSTANCE_COUNTER(SkGrFontScaler);
106 }; 97 };
107 98
108 //////////////////////////////////////////////////////////////////////////////// 99 ////////////////////////////////////////////////////////////////////////////////
109 100
110 #endif 101 #endif
OLDNEW
« no previous file with comments | « include/gpu/GrTypes.h ('k') | src/gpu/GrAAConvexPathRenderer.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698