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

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

Issue 1215643006: more threading of GrShaderDataManager (Closed) Base URL: https://skia.googlesource.com/skia.git@GrShaderDataManager3
Patch Set: tweaks Created 5 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 * Copyright 2012 Google Inc. 2 * Copyright 2012 Google Inc.
3 * 3 *
4 * Use of this source code is governed by a BSD-style license that can be 4 * Use of this source code is governed by a BSD-style license that can be
5 * found in the LICENSE file. 5 * found in the LICENSE file.
6 */ 6 */
7 7
8 #include "SkTwoPointConicalGradient.h" 8 #include "SkTwoPointConicalGradient.h"
9 #include "SkTwoPointConicalGradient_gpu.h" 9 #include "SkTwoPointConicalGradient_gpu.h"
10 10
(...skipping 376 matching lines...) Expand 10 before | Expand all | Expand 10 after
387 387
388 #if SK_SUPPORT_GPU 388 #if SK_SUPPORT_GPU
389 389
390 #include "SkGr.h" 390 #include "SkGr.h"
391 391
392 bool SkTwoPointConicalGradient::asFragmentProcessor(GrContext* context, 392 bool SkTwoPointConicalGradient::asFragmentProcessor(GrContext* context,
393 const SkPaint& paint, 393 const SkPaint& paint,
394 const SkMatrix& viewM, 394 const SkMatrix& viewM,
395 const SkMatrix* localMatrix, 395 const SkMatrix* localMatrix,
396 GrColor* paintColor, 396 GrColor* paintColor,
397 GrShaderDataManager*, 397 GrShaderDataManager* shaderD ataManager,
398 GrFragmentProcessor** fp) c onst { 398 GrFragmentProcessor** fp) c onst {
399 SkASSERT(context); 399 SkASSERT(context);
400 SkASSERT(fPtsToUnit.isIdentity()); 400 SkASSERT(fPtsToUnit.isIdentity());
401 401
402 *fp = Gr2PtConicalGradientEffect::Create(context, *this, fTileMode, localMat rix); 402 *fp = Gr2PtConicalGradientEffect::Create(context, shaderDataManager, *this, fTileMode,
403 localMatrix);
403 *paintColor = SkColor2GrColorJustAlpha(paint.getColor()); 404 *paintColor = SkColor2GrColorJustAlpha(paint.getColor());
404 return true; 405 return true;
405 } 406 }
406 407
407 #else 408 #else
408 409
409 bool SkTwoPointConicalGradient::asFragmentProcessor(GrContext*, const SkPaint&, 410 bool SkTwoPointConicalGradient::asFragmentProcessor(GrContext*, const SkPaint&,
410 const SkMatrix&, const SkMat rix*, 411 const SkMatrix&, const SkMat rix*,
411 GrColor*, GrShaderDataManage r*, 412 GrColor*, GrShaderDataManage r*,
412 GrFragmentProcessor**) cons t { 413 GrFragmentProcessor**) cons t {
(...skipping 21 matching lines...) Expand all
434 str->appendScalar(fCenter2.fY); 435 str->appendScalar(fCenter2.fY);
435 str->append(") radius2: "); 436 str->append(") radius2: ");
436 str->appendScalar(fRadius2); 437 str->appendScalar(fRadius2);
437 str->append(" "); 438 str->append(" ");
438 439
439 this->INHERITED::toString(str); 440 this->INHERITED::toString(str);
440 441
441 str->append(")"); 442 str->append(")");
442 } 443 }
443 #endif 444 #endif
OLDNEW
« no previous file with comments | « src/effects/gradients/SkSweepGradient.cpp ('k') | src/effects/gradients/SkTwoPointConicalGradient_gpu.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698