| OLD | NEW |
| 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 "GrAAConvexPathRenderer.h" | 9 #include "GrAAConvexPathRenderer.h" |
| 10 | 10 |
| (...skipping 614 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 625 const GrGLCaps& caps, | 625 const GrGLCaps& caps, |
| 626 GrProcessorKeyBuilder* b) const SK_OVERRIDE { | 626 GrProcessorKeyBuilder* b) const SK_OVERRIDE { |
| 627 GLProcessor::GenKey(*this, bt, caps, b); | 627 GLProcessor::GenKey(*this, bt, caps, b); |
| 628 } | 628 } |
| 629 | 629 |
| 630 virtual GrGLPrimitiveProcessor* createGLInstance(const GrBatchTracker& bt, | 630 virtual GrGLPrimitiveProcessor* createGLInstance(const GrBatchTracker& bt, |
| 631 const GrGLCaps&) const SK_O
VERRIDE { | 631 const GrGLCaps&) const SK_O
VERRIDE { |
| 632 return SkNEW_ARGS(GLProcessor, (*this, bt)); | 632 return SkNEW_ARGS(GLProcessor, (*this, bt)); |
| 633 } | 633 } |
| 634 | 634 |
| 635 void initBatchTracker(GrBatchTracker* bt, const InitBT& init) const SK_OVERR
IDE { | 635 void initBatchTracker(GrBatchTracker* bt, const GrPipelineInfo& init) const
SK_OVERRIDE { |
| 636 BatchTracker* local = bt->cast<BatchTracker>(); | 636 BatchTracker* local = bt->cast<BatchTracker>(); |
| 637 local->fInputColorType = GetColorInputType(&local->fColor, this->color()
, init, false); | 637 local->fInputColorType = GetColorInputType(&local->fColor, this->color()
, init, false); |
| 638 local->fUsesLocalCoords = init.fUsesLocalCoords; | 638 local->fUsesLocalCoords = init.fUsesLocalCoords; |
| 639 } | 639 } |
| 640 | 640 |
| 641 bool onCanMakeEqual(const GrBatchTracker& m, | 641 bool onCanMakeEqual(const GrBatchTracker& m, |
| 642 const GrGeometryProcessor& that, | 642 const GrGeometryProcessor& that, |
| 643 const GrBatchTracker& t) const SK_OVERRIDE { | 643 const GrBatchTracker& t) const SK_OVERRIDE { |
| 644 const BatchTracker& mine = m.cast<BatchTracker>(); | 644 const BatchTracker& mine = m.cast<BatchTracker>(); |
| 645 const BatchTracker& theirs = t.cast<BatchTracker>(); | 645 const BatchTracker& theirs = t.cast<BatchTracker>(); |
| (...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 788 vOffset, // start vertex | 788 vOffset, // start vertex |
| 789 0, // start index | 789 0, // start index |
| 790 draw.fVertexCnt, | 790 draw.fVertexCnt, |
| 791 draw.fIndexCnt, | 791 draw.fIndexCnt, |
| 792 &devBounds); | 792 &devBounds); |
| 793 vOffset += draw.fVertexCnt; | 793 vOffset += draw.fVertexCnt; |
| 794 } | 794 } |
| 795 | 795 |
| 796 return true; | 796 return true; |
| 797 } | 797 } |
| OLD | NEW |