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

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

Issue 356513003: Step towards variable length effect keys. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: tweak comment 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
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 365 matching lines...) Expand 10 before | Expand all | Expand 10 after
376 376
377 fPtsToUnit.setTranslate(-fCenter1.fX, -fCenter1.fY); 377 fPtsToUnit.setTranslate(-fCenter1.fX, -fCenter1.fY);
378 fPtsToUnit.postScale(inv, inv); 378 fPtsToUnit.postScale(inv, inv);
379 } 379 }
380 380
381 ///////////////////////////////////////////////////////////////////// 381 /////////////////////////////////////////////////////////////////////
382 382
383 #if SK_SUPPORT_GPU 383 #if SK_SUPPORT_GPU
384 384
385 #include "GrTBackendEffectFactory.h" 385 #include "GrTBackendEffectFactory.h"
386 #include "gl/GrGLShaderBuilder.h"
386 #include "SkGr.h" 387 #include "SkGr.h"
387 388
388 // For brevity 389 // For brevity
389 typedef GrGLUniformManager::UniformHandle UniformHandle; 390 typedef GrGLUniformManager::UniformHandle UniformHandle;
390 391
391 class GrGLRadial2Gradient : public GrGLGradientEffect { 392 class GrGLRadial2Gradient : public GrGLGradientEffect {
392 393
393 public: 394 public:
394 395
395 GrGLRadial2Gradient(const GrBackendEffectFactory& factory, const GrDrawEffec t&); 396 GrGLRadial2Gradient(const GrBackendEffectFactory& factory, const GrDrawEffec t&);
(...skipping 314 matching lines...) Expand 10 before | Expand all | Expand 10 after
710 #else 711 #else
711 712
712 bool SkTwoPointRadialGradient::asNewEffect(GrContext* context, const SkPaint& pa int, 713 bool SkTwoPointRadialGradient::asNewEffect(GrContext* context, const SkPaint& pa int,
713 const SkMatrix* localMatrix, GrColor* paintColor, 714 const SkMatrix* localMatrix, GrColor* paintColor,
714 GrEffect** effect) const { 715 GrEffect** effect) const {
715 SkDEBUGFAIL("Should not call in GPU-less build"); 716 SkDEBUGFAIL("Should not call in GPU-less build");
716 return false; 717 return false;
717 } 718 }
718 719
719 #endif 720 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698