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

Side by Side Diff: src/effects/gradients/SkTwoPointRadialGradient.cpp

Issue 372053003: Revert of Make GrDrawState and GrPaint take GrEffect* instead of GrEffectRef*. (Closed) Base URL: https://skia.googlesource.com/skia.git@no_ref
Patch Set: Created 6 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 | « src/effects/gradients/SkTwoPointRadialGradient.h ('k') | src/gpu/GrDrawState.h » ('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 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 "SkTwoPointRadialGradient.h" 9 #include "SkTwoPointRadialGradient.h"
10 10
(...skipping 694 matching lines...) Expand 10 before | Expand all | Expand 10 after
705 *grColor = SkColor2GrColorJustAlpha(paint.getColor()); 705 *grColor = SkColor2GrColorJustAlpha(paint.getColor());
706 *grEffect = GrRadial2Gradient::Create(context, *this, matrix, fTileMode); 706 *grEffect = GrRadial2Gradient::Create(context, *this, matrix, fTileMode);
707 707
708 return true; 708 return true;
709 } 709 }
710 710
711 #else 711 #else
712 712
713 bool SkTwoPointRadialGradient::asNewEffect(GrContext* context, const SkPaint& pa int, 713 bool SkTwoPointRadialGradient::asNewEffect(GrContext* context, const SkPaint& pa int,
714 const SkMatrix* localMatrix, GrColor* grColor, 714 const SkMatrix* localMatrix, GrColor* grColor,
715 GrEffect** grEffect) const { 715 GrEffectRef** grEffect) const {
716 SkDEBUGFAIL("Should not call in GPU-less build"); 716 SkDEBUGFAIL("Should not call in GPU-less build");
717 return false; 717 return false;
718 } 718 }
719 719
720 #endif 720 #endif
OLDNEW
« no previous file with comments | « src/effects/gradients/SkTwoPointRadialGradient.h ('k') | src/gpu/GrDrawState.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698