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

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

Issue 1105263002: Remove vertex/index buffer factilities from GrDrawTarget. (Closed) Base URL: https://skia.googlesource.com/skia.git@josh
Patch Set: rebase Created 5 years, 7 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/gpu/GrInOrderDrawBuffer.cpp ('k') | src/gpu/GrSoftwarePathRenderer.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 * Copyright 2013 Google Inc. 2 * Copyright 2013 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 "GrOvalRenderer.h" 8 #include "GrOvalRenderer.h"
9 9
10 #include "GrBatch.h" 10 #include "GrBatch.h"
11 #include "GrBatchTarget.h" 11 #include "GrBatchTarget.h"
12 #include "GrBufferAllocPool.h" 12 #include "GrBufferAllocPool.h"
13 #include "GrDrawTarget.h" 13 #include "GrDrawTarget.h"
14 #include "GrGeometryProcessor.h" 14 #include "GrGeometryProcessor.h"
15 #include "GrGpu.h" 15 #include "GrGpu.h"
16 #include "GrInvariantOutput.h" 16 #include "GrInvariantOutput.h"
17 #include "GrPipelineBuilder.h" 17 #include "GrPipelineBuilder.h"
18 #include "GrProcessor.h" 18 #include "GrProcessor.h"
19 #include "GrVertexBuffer.h"
19 #include "SkRRect.h" 20 #include "SkRRect.h"
20 #include "SkStrokeRec.h" 21 #include "SkStrokeRec.h"
21 #include "SkTLazy.h" 22 #include "SkTLazy.h"
22 #include "effects/GrRRectEffect.h" 23 #include "effects/GrRRectEffect.h"
23 #include "gl/GrGLProcessor.h" 24 #include "gl/GrGLProcessor.h"
24 #include "gl/GrGLSL.h" 25 #include "gl/GrGLSL.h"
25 #include "gl/GrGLGeometryProcessor.h" 26 #include "gl/GrGLGeometryProcessor.h"
26 #include "gl/builders/GrGLProgramBuilder.h" 27 #include "gl/builders/GrGLProgramBuilder.h"
27 28
28 // TODO(joshualitt) - Break this file up during GrBatch post implementation clea nup 29 // TODO(joshualitt) - Break this file up during GrBatch post implementation clea nup
(...skipping 2193 matching lines...) Expand 10 before | Expand all | Expand 10 after
2222 geometry.fInnerXRadius = innerXRadius; 2223 geometry.fInnerXRadius = innerXRadius;
2223 geometry.fInnerYRadius = innerYRadius; 2224 geometry.fInnerYRadius = innerYRadius;
2224 geometry.fStroke = isStrokeOnly; 2225 geometry.fStroke = isStrokeOnly;
2225 geometry.fDevBounds = bounds; 2226 geometry.fDevBounds = bounds;
2226 2227
2227 SkAutoTUnref<GrBatch> batch(RRectEllipseRendererBatch::Create(geometry, indexBuffer)); 2228 SkAutoTUnref<GrBatch> batch(RRectEllipseRendererBatch::Create(geometry, indexBuffer));
2228 target->drawBatch(pipelineBuilder, batch, &bounds); 2229 target->drawBatch(pipelineBuilder, batch, &bounds);
2229 } 2230 }
2230 return true; 2231 return true;
2231 } 2232 }
OLDNEW
« no previous file with comments | « src/gpu/GrInOrderDrawBuffer.cpp ('k') | src/gpu/GrSoftwarePathRenderer.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698