Home
last modified time | relevance | path

Searched refs:GrColor (Results 1 – 25 of 115) sorted by relevance

12345

/external/skia/include/gpu/
DGrColor.h23 typedef uint32_t GrColor; typedef
44 static inline GrColor GrColorPackRGBA(unsigned r, unsigned g, unsigned b, unsigned a) { in GrColorPackRGBA()
58 static inline GrColor GrColorPackA4(unsigned a) { in GrColorPackA4()
85 static inline void GrColorIsPMAssert(GrColor SkDEBUGCODE(c)) { in GrColorIsPMAssert()
99 static inline GrColor GrInvertColor(GrColor c) { in GrInvertColor()
107 static inline GrColor GrColorMul(GrColor c0, GrColor c1) { in GrColorMul()
115 static inline GrColor GrColorSatAdd(GrColor c0, GrColor c1) { in GrColorSatAdd()
124 static inline void GrColorToRGBAFloat(GrColor color, float rgba[4]) { in GrColorToRGBAFloat()
139 static inline bool GrColorIsOpaque(GrColor color) { in GrColorIsOpaque()
143 static inline GrColor GrPremulColor(GrColor color) { in GrPremulColor()
[all …]
DGrInvariantOutput.h20 void setKnownFourComponents(GrColor color) { in setKnownFourComponents()
51 GrColor fColor;
59 GrInvariantOutput(GrColor color, GrColorComponentFlags flags, bool isSingleComponent) in GrInvariantOutput()
133 void mulByKnownFourComponents(GrColor color) { in mulByKnownFourComponents()
154 void mulAlphaByKnownFourComponents(GrColor color) { in mulAlphaByKnownFourComponents()
160 GrColor preAlpha = GrColorUnpackA(fColor); in mulAlphaByKnownFourComponents()
188 GrColor a = GrColorUnpackA(fColor); in mulAlphaByKnownSingleComponent()
211 void setToOther(GrColorComponentFlags validFlags, GrColor color, ReadInput readsInput) { in setToOther()
245 GrColor color() const { return fColor; } in color()
259 static bool GetAlphaAndCheckSingleChannel(GrColor color, uint32_t* alpha) { in GetAlphaAndCheckSingleChannel()
[all …]
DSkGr.h26 static inline GrColor SkColorToPremulGrColor(SkColor c) { in SkColorToPremulGrColor()
35 static inline GrColor SkColorToUnpremulGrColor(SkColor c) { in SkColorToUnpremulGrColor()
43 static inline GrColor SkColorToOpaqueGrColor(SkColor c) { in SkColorToOpaqueGrColor()
51 static inline GrColor SkColorAlphaToGrColor(SkColor c) { in SkColorAlphaToGrColor()
56 static inline SkPMColor GrColorToSkPMColor(GrColor c) { in GrColorToSkPMColor()
61 static inline GrColor SkPMColorToGrColor(SkPMColor c) { in SkPMColorToGrColor()
/external/skia/src/gpu/effects/
DGrDistanceFieldGeoProc.h48 static GrGeometryProcessor* Create(GrColor color, const SkMatrix& viewMatrix, in Create()
55 static GrGeometryProcessor* Create(GrColor color, const SkMatrix& viewMatrix,
70 GrColor color() const { return fColor; } in color()
84 GrDistanceFieldA8TextGeoProc(GrColor, const SkMatrix& viewMatrix,
91 GrColor fColor;
117 static GrGeometryProcessor* Create(GrColor color, const SkMatrix& viewMatrix, GrTexture* tex, in Create()
131 GrColor color() const { return fColor; } in color()
142 GrDistanceFieldPathGeoProc(GrColor, const SkMatrix& viewMatrix, GrTexture* texture,
146 GrColor fColor;
183 static GrGeometryProcessor* Create(GrColor color, const SkMatrix& viewMatrix, in Create()
[all …]
DGrBezierEffect.h61 static GrGeometryProcessor* Create(GrColor color,
99 GrColor color() const { return fColor; } in color()
111 GrConicEffect(GrColor, const SkMatrix& viewMatrix, uint8_t coverage, GrPrimitiveEdgeType,
114 GrColor fColor;
141 static GrGeometryProcessor* Create(GrColor color,
179 GrColor color() const { return fColor; } in color()
191 GrQuadEffect(GrColor, const SkMatrix& viewMatrix, uint8_t coverage, GrPrimitiveEdgeType,
194 GrColor fColor;
223 static GrGeometryProcessor* Create(GrColor color, in Create()
254 GrColor color() const { return fColor; } in color()
[all …]
DGrBitmapTextGeoProc.h24 static GrGeometryProcessor* Create(GrColor color, GrTexture* tex, const GrTextureParams& p, in Create()
38 GrColor color() const { return fColor; } in color()
49 GrBitmapTextGeoProc(GrColor, GrTexture* texture, const GrTextureParams& params,
52 GrColor fColor;
/external/skia/src/gpu/
DGrDefaultGeoProcFactory.h29 GrColor fCoverage;
40 GrColor fCoverage;
51 GrColor fCoverage;
56 GrColor fColor;
62 GrColor fColor;
64 GrColor fCoverage;
73 Color(GrColor color) : fType(kUniform_Type), fColor(color) {} in Color()
84 GrColor fColor;
DGrOvalRenderer.h25 static GrDrawBatch* CreateOvalBatch(GrColor,
30 static GrDrawBatch* CreateRRectBatch(GrColor,
39 static GrDrawBatch* CreateEllipseBatch(GrColor,
43 static GrDrawBatch* CreateDIEllipseBatch(GrColor,
47 static GrDrawBatch* CreateCircleBatch(GrColor,
DGrBlend.cpp16 MaskedColor(GrColor color, GrColorComponentFlags flags) in MaskedColor()
22 void set(GrColor color, GrColorComponentFlags flags) { in set()
55 GrColor color() const { return fColor; } in color()
77 GrColor fColor;
111 GrColor srcColor, GrColorComponentFlags srcColorFlags, in GrGetCoeffBlendKnownComponents()
112 GrColor dstColor, GrColorComponentFlags dstColorFlags, in GrGetCoeffBlendKnownComponents()
113 GrColor* outColor, in GrGetCoeffBlendKnownComponents()
DGrPathProcessor.h19 static GrPathProcessor* Create(GrColor color,
28 GrColor color() const { return fColor; } in color()
46 GrPathProcessor(GrColor color, const GrXPOverridesForBatch& overrides,
51 GrColor fColor;
DGrProcOptInfo.h33 void calcWithInitialValues(const GrFragmentProcessor* const *, int cnt, GrColor startColor,
49 GrColor color() const { return fInOut.color(); } in color()
76 GrColor inputColorToFirstEffectiveProccesor() const { return fInputColor; } in inputColorToFirstEffectiveProccesor()
89 GrColor fInputColor;
DGrOvalRenderer.cpp33 GrColor fColor;
41 GrColor fColor;
49 GrColor fColor;
75 static GrGeometryProcessor* Create(GrColor color, bool stroke, const SkMatrix& localMatrix, in Create()
83 GrColor color() const { return fColor; } in color()
175 CircleEdgeEffect(GrColor color, bool stroke, const SkMatrix& localMatrix, bool usesLocalCoords) in CircleEdgeEffect()
188 GrColor fColor;
222 static GrGeometryProcessor* Create(GrColor color, bool stroke, const SkMatrix& localMatrix, in Create()
235 GrColor color() const { return fColor; } in color()
343 EllipseEdgeEffect(GrColor color, bool stroke, const SkMatrix& localMatrix, in EllipseEdgeEffect()
[all …]
/external/skia/tests/
DGpuColorFilterTest.cpp19 static GrColor filterColor(const GrColor& color, uint32_t flags) { in filterColor()
40 GrColor inputColor; // "[color]" in DEF_GPUTEST_FOR_ALL_CONTEXTS()
47 GrColor outputColor; // "[color]" in DEF_GPUTEST_FOR_ALL_CONTEXTS()
64 const GrColor gr_c1 = SkColorToPremulGrColor(c1); in DEF_GPUTEST_FOR_ALL_CONTEXTS()
65 const GrColor gr_c2 = SkColorToPremulGrColor(c2); in DEF_GPUTEST_FOR_ALL_CONTEXTS()
67 const GrColor gr_black = GrColorPackA4(0); in DEF_GPUTEST_FOR_ALL_CONTEXTS()
68 const GrColor gr_white = GrColorPackA4(255); in DEF_GPUTEST_FOR_ALL_CONTEXTS()
69 const GrColor gr_whiteTrans = GrColorPackA4(128); in DEF_GPUTEST_FOR_ALL_CONTEXTS()
DGrGetCoeffBlendKnownComponentsTest.cpp18 static GrColor make_baseline_color(GrColor src, GrColor dst, const SkXfermode* xm) { in make_baseline_color()
38 GrColor src = GrPremulColor(random.nextU()); in DEF_TEST()
39 GrColor dst = GrPremulColor(random.nextU()); in DEF_TEST()
40 GrColor outColor; in DEF_TEST()
47 GrColor baselineColor = make_baseline_color(src, dst, xm); in DEF_TEST()
58 GrColor outColor; in DEF_TEST()
DVkUploadPixelsTests.cpp21 void fill_pixel_data(int width, int height, GrColor* data) { in fill_pixel_data()
33 bool does_full_buffer_contain_correct_color(GrColor* srcBuffer, in does_full_buffer_contain_correct_color()
34 GrColor* dstBuffer, in does_full_buffer_contain_correct_color()
38 GrColor* srcPtr = srcBuffer; in does_full_buffer_contain_correct_color()
39 GrColor* dstPtr = dstBuffer; in does_full_buffer_contain_correct_color()
59 SkAutoTMalloc<GrColor> srcBuffer(kWidth*kHeight); in basic_texture_test()
60 SkAutoTMalloc<GrColor> dstBuffer(kWidth*kHeight); in basic_texture_test()
97 memset(dstBuffer, 0, kWidth*kHeight*sizeof(GrColor)); in basic_texture_test()
122 memset(dstBuffer, 0, kWidth*kHeight*sizeof(GrColor)); in basic_texture_test()
DVkClearTests.cpp20 bool does_full_buffer_contain_correct_color(GrColor* buffer, in does_full_buffer_contain_correct_color()
21 GrColor clearColor, in does_full_buffer_contain_correct_color()
25 GrColor matchColor; in does_full_buffer_contain_correct_color()
52 SkAutoTMalloc<GrColor> buffer(25); in basic_clear_test()
86 GrColor myColor = GrColorPackRGBA(0xFF, 0x7F, 0x40, 0x20); in basic_clear_test()
106 SkAutoTMalloc<GrColor> buffer(width * height); in sub_clear_test()
107 SkAutoTMalloc<GrColor> subBuffer(subWidth * subHeight); in sub_clear_test()
157 GrColor subColor1 = GrColorPackRGBA(0xFF, 0x00, 0x00, 0xFF); in sub_clear_test()
158 GrColor subColor2 = GrColorPackRGBA(0x00, 0xFF, 0x00, 0xFF); in sub_clear_test()
159 GrColor subColor3 = GrColorPackRGBA(0x00, 0x00, 0xFF, 0xFF); in sub_clear_test()
[all …]
/external/skia/src/gpu/batches/
DGrAAFillRectBatch.h19 GrDrawBatch* Create(GrColor color,
24 GrDrawBatch* Create(GrColor color,
29 GrDrawBatch* Create(GrColor color,
35 GrDrawBatch* CreateWithLocalRect(GrColor color,
41 GrColor,
47 GrColor,
DGrAAFillRectBatch.cpp78 GrColor color, in generate_aa_fill_rect_geometry()
139 SkPoint* fan0Loc = reinterpret_cast<SkPoint*>(verts + sizeof(SkPoint) + sizeof(GrColor)); in generate_aa_fill_rect_geometry()
150 intptr_t coverageOffset = vertexStride - sizeof(GrColor) - sizeof(SkPoint); in generate_aa_fill_rect_geometry()
153 *reinterpret_cast<GrColor*>(verts + i * vertexStride) = 0; in generate_aa_fill_rect_geometry()
155 *reinterpret_cast<GrColor*>(verts + i * vertexStride) = color; in generate_aa_fill_rect_geometry()
171 GrColor scaledColor = (0xff == scale) ? color : SkAlphaMulQ(color, scale); in generate_aa_fill_rect_geometry()
175 *reinterpret_cast<GrColor*>(verts + i * vertexStride) = scaledColor; in generate_aa_fill_rect_geometry()
177 *reinterpret_cast<GrColor*>(verts + i * vertexStride) = color; in generate_aa_fill_rect_geometry()
215 GrColor fColor;
265 GrColor fColor;
[all …]
DGrDrawAtlasBatch.cpp23 (this->hasColors() ? sizeof(GrColor) : 0); in initBatchTracker()
26 *(reinterpret_cast<GrColor*>(currVertex + sizeof(SkPoint))) = fGeoData[0].fColor; in initBatchTracker()
40 GrColor color, in set_vertex_attributes()
66 + (this->hasColors() ? sizeof(GrColor) : 0)); in onPrepareDraws()
103 texOffset += sizeof(GrColor); in GrDrawAtlasBatch()
104 vertexStride += sizeof(GrColor); in GrDrawAtlasBatch()
129 GrColor grColor = SkColorToPremulGrColor(color); in GrDrawAtlasBatch()
131 *(reinterpret_cast<GrColor*>(currVertex+sizeof(SkPoint))) = grColor; in GrDrawAtlasBatch()
132 *(reinterpret_cast<GrColor*>(currVertex+vertexStride+sizeof(SkPoint))) = grColor; in GrDrawAtlasBatch()
133 *(reinterpret_cast<GrColor*>(currVertex+2*vertexStride+sizeof(SkPoint))) = grColor; in GrDrawAtlasBatch()
[all …]
DGrRectBatchFactory.h27 inline GrDrawBatch* CreateNonAAFill(GrColor color, in CreateNonAAFill()
40 inline GrDrawBatch* CreateAAFill(GrColor color, in CreateAAFill()
47 inline GrDrawBatch* CreateAAFill(GrColor color, in CreateAAFill()
55 inline GrDrawBatch* CreateNonAAStroke(GrColor color, in CreateNonAAStroke()
63 inline GrDrawBatch* CreateAAStroke(GrColor color, in CreateAAStroke()
71 GrDrawBatch* CreateAAFillNestedRects(GrColor,
DGrAAStrokeRectBatch.cpp55 GrColor fColor;
79 void append(GrColor color, const SkRect& devOutside, const SkRect& devOutsideAssist, in append()
89 void appendAndUpdateBounds(GrColor color, const SkRect& devOutside, in appendAndUpdateBounds()
129 GrColor color() const { return fBatch.fColor; } in color()
145 GrColor color,
154 GrColor fColor;
377 GrColor color, in generateAAStrokeRectGeometry()
480 *reinterpret_cast<GrColor*>(verts + i * vertexStride) = 0; in generateAAStrokeRectGeometry()
482 *reinterpret_cast<GrColor*>(verts + i * vertexStride) = color; in generateAAStrokeRectGeometry()
483 *reinterpret_cast<float*>(verts + i * vertexStride + sizeof(GrColor)) = 0; in generateAAStrokeRectGeometry()
[all …]
DGrNonAAFillRectBatch.cpp83 GrColor color, in tesselate()
100 static const int kLocalOffset = sizeof(SkPoint) + sizeof(GrColor); in tesselate()
109 GrColor* vertColor = reinterpret_cast<GrColor*>(vertices + kColorOffset); in tesselate()
112 vertColor = (GrColor*) ((intptr_t) vertColor + vertexStride); in tesselate()
122 GrColor fColor;
165 GrColor fColor;
216 inline static void append_to_batch(NonAAFillRectBatchSimple* batch, GrColor color, in append_to_batch()
237 inline static void append_to_batch(NonAAFillRectBatchPerspective* batch, GrColor color, in append_to_batch()
259 GrDrawBatch* Create(GrColor color, in Create()
270 GrDrawBatch* CreateWithPerspective(GrColor color, in CreateWithPerspective()
[all …]
DGrDrawPathBatch.h34 GrDrawPathBatchBase(uint32_t classID, const SkMatrix& viewMatrix, GrColor initialColor, in GrDrawPathBatchBase()
44 GrColor color() const { return fColor; } in color()
53 GrColor fColor;
66 static GrDrawPathBatchBase* Create(const SkMatrix& viewMatrix, GrColor color, in Create()
76 GrDrawPathBatch(const SkMatrix& viewMatrix, GrColor color, GrPathRendering::FillType fill, in GrDrawPathBatch()
163 SkScalar y, GrColor color, GrPathRendering::FillType fill, in Create()
176 GrColor color, GrPathRendering::FillType fill, GrPathRange* range,
/external/skia/src/gpu/text/
DGrTextUtils.h41 GrColor, const SkMatrix& viewMatrix,
47 GrColor, const SkMatrix& viewMatrix,
58 const SkPaint& skPaint, GrColor color,
65 GrColor color, const SkMatrix& viewMatrix,
98 GrColor color, GrFontScaler*);
102 SkScalar sx, SkScalar sy, GrColor color,
/external/skia/include/gpu/effects/
DGrConstColorProcessor.h29 static GrFragmentProcessor* Create(GrColor color, InputMode mode) { in Create()
41 GrColor color() const { return fColor; } in color()
46 GrConstColorProcessor(GrColor color, InputMode mode) : fColor(color), fMode(mode) { in GrConstColorProcessor()
60 GrColor fColor;

12345