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

Side by Side Diff: src/gpu/GrAARectRenderer.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/GrAAHairLinePathRenderer.cpp ('k') | src/gpu/GrAtlasTextContext.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 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 "GrAARectRenderer.h" 8 #include "GrAARectRenderer.h"
9 #include "GrBatch.h" 9 #include "GrBatch.h"
10 #include "GrBatchTarget.h" 10 #include "GrBatchTarget.h"
11 #include "GrBufferAllocPool.h" 11 #include "GrBufferAllocPool.h"
12 #include "GrDefaultGeoProcFactory.h" 12 #include "GrDefaultGeoProcFactory.h"
13 #include "GrGeometryProcessor.h" 13 #include "GrGeometryProcessor.h"
14 #include "GrGpu.h" 14 #include "GrGpu.h"
15 #include "GrInvariantOutput.h" 15 #include "GrInvariantOutput.h"
16 #include "GrVertexBuffer.h"
16 #include "SkColorPriv.h" 17 #include "SkColorPriv.h"
17 #include "gl/GrGLProcessor.h" 18 #include "gl/GrGLProcessor.h"
18 #include "gl/GrGLGeometryProcessor.h" 19 #include "gl/GrGLGeometryProcessor.h"
19 #include "gl/builders/GrGLProgramBuilder.h" 20 #include "gl/builders/GrGLProgramBuilder.h"
20 21
21 /////////////////////////////////////////////////////////////////////////////// 22 ///////////////////////////////////////////////////////////////////////////////
22 23
23 static void set_inset_fan(SkPoint* pts, size_t stride, 24 static void set_inset_fan(SkPoint* pts, size_t stride,
24 const SkRect& r, SkScalar dx, SkScalar dy) { 25 const SkRect& r, SkScalar dx, SkScalar dy) {
25 pts->setRectFan(r.fLeft + dx, r.fTop + dy, 26 pts->setRectFan(r.fLeft + dx, r.fTop + dy,
(...skipping 865 matching lines...) Expand 10 before | Expand all | Expand 10 after
891 viewMatrix.mapPoints((SkPoint*)&devInside, (const SkPoint*)&rects[1], 2); 892 viewMatrix.mapPoints((SkPoint*)&devInside, (const SkPoint*)&rects[1], 2);
892 893
893 if (devInside.isEmpty()) { 894 if (devInside.isEmpty()) {
894 this->fillAARect(target, pipelineBuilder, color, viewMatrix, devOutside, devOutside); 895 this->fillAARect(target, pipelineBuilder, color, viewMatrix, devOutside, devOutside);
895 return; 896 return;
896 } 897 }
897 898
898 this->geometryStrokeAARect(target, pipelineBuilder, color, viewMatrix, devOu tside, 899 this->geometryStrokeAARect(target, pipelineBuilder, color, viewMatrix, devOu tside,
899 devOutsideAssist, devInside, true); 900 devOutsideAssist, devInside, true);
900 } 901 }
OLDNEW
« no previous file with comments | « src/gpu/GrAAHairLinePathRenderer.cpp ('k') | src/gpu/GrAtlasTextContext.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698