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

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

Issue 1116943004: Move instanced index buffer creation to flush time (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: fix missing assignment of keys to index buffers 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/GrContext.cpp ('k') | src/gpu/GrGpu.h » ('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 2015 Google Inc. 2 * Copyright 2015 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 "GrDashLinePathRenderer.h" 8 #include "GrDashLinePathRenderer.h"
9 9
10 #include "GrGpu.h" 10 #include "GrGpu.h"
(...skipping 21 matching lines...) Expand all
32 32
33 bool GrDashLinePathRenderer::onDrawPath(GrDrawTarget* target, 33 bool GrDashLinePathRenderer::onDrawPath(GrDrawTarget* target,
34 GrPipelineBuilder* pipelineBuilder, 34 GrPipelineBuilder* pipelineBuilder,
35 GrColor color, 35 GrColor color,
36 const SkMatrix& viewMatrix, 36 const SkMatrix& viewMatrix,
37 const SkPath& path, 37 const SkPath& path,
38 const GrStrokeInfo& stroke, 38 const GrStrokeInfo& stroke,
39 bool useAA) { 39 bool useAA) {
40 SkPoint pts[2]; 40 SkPoint pts[2];
41 SkAssertResult(path.isLine(pts)); 41 SkAssertResult(path.isLine(pts));
42 return GrDashingEffect::DrawDashLine(fGpu, target, pipelineBuilder, color, 42 return GrDashingEffect::DrawDashLine(target, pipelineBuilder, color,
43 viewMatrix, pts, useAA, stroke); 43 viewMatrix, pts, useAA, stroke);
44 } 44 }
OLDNEW
« no previous file with comments | « src/gpu/GrContext.cpp ('k') | src/gpu/GrGpu.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698