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

Side by Side Diff: src/gpu/GrPaint.cpp

Issue 18686007: Make GrPaint have a variable sized array of color and coverage stages rather than a fixed size. (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: comments Created 7 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 | Annotate | Revision Log
OLDNEW
(Empty)
1
2 /*
3 * Copyright 2013 Google Inc.
4 *
5 * Use of this source code is governed by a BSD-style license that can be
6 * found in the LICENSE file.
7 */
8
9 #include "GrPaint.h"
10
11 #include "effects/GrSimpleTextureEffect.h"
12
13 void GrPaint::addColorTextureEffect(GrTexture* texture, const SkMatrix& matrix) {
14 GrEffectRef* effect = GrSimpleTextureEffect::Create(texture, matrix);
15 this->addColorEffect(effect)->unref();
16 }
17
18 void GrPaint::addCoverageTextureEffect(GrTexture* texture, const SkMatrix& matri x) {
19 GrEffectRef* effect = GrSimpleTextureEffect::Create(texture, matrix);
20 this->addCoverageEffect(effect)->unref();
21 }
22
23 void GrPaint::addColorTextureEffect(GrTexture* texture,
robertphillips 2013/07/12 12:54:33 missing space in next two lines?
bsalomon 2013/07/12 13:38:59 Done.
24 const SkMatrix& matrix,
25 const GrTextureParams& params) {
26 GrEffectRef* effect = GrSimpleTextureEffect::Create(texture, matrix, params) ;
27 this->addColorEffect(effect)->unref();
28 }
29
30 void GrPaint::addCoverageTextureEffect(GrTexture* texture,
31 const SkMatrix& matrix,
32 const GrTextureParams& params) {
33 GrEffectRef* effect = GrSimpleTextureEffect::Create(texture, matrix, params) ;
34 this->addCoverageEffect(effect)->unref();
35 }
36
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698