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

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

Issue 845103005: GrBatchPrototype (Closed) Base URL: https://skia.googlesource.com/skia.git@lc2
Patch Set: removing dstread Created 5 years, 10 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 | « gyp/gpu.gypi ('k') | src/gpu/GrAARectRenderer.cpp » ('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 "GrAAConvexPathRenderer.h" 9 #include "GrAAConvexPathRenderer.h"
10 10
(...skipping 614 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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 }
OLDNEW
« no previous file with comments | « gyp/gpu.gypi ('k') | src/gpu/GrAARectRenderer.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698