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

Side by Side Diff: src/gpu/GrAADistanceFieldPathRenderer.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 | « no previous file | src/gpu/GrAAHairLinePathRenderer.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 2014 Google Inc. 3 * Copyright 2014 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 "GrAADistanceFieldPathRenderer.h" 9 #include "GrAADistanceFieldPathRenderer.h"
10 10
11 #include "GrBatch.h" 11 #include "GrBatch.h"
12 #include "GrBatchTarget.h" 12 #include "GrBatchTarget.h"
13 #include "GrBufferAllocPool.h" 13 #include "GrBufferAllocPool.h"
14 #include "GrContext.h" 14 #include "GrContext.h"
15 #include "GrPipelineBuilder.h" 15 #include "GrPipelineBuilder.h"
16 #include "GrSurfacePriv.h" 16 #include "GrSurfacePriv.h"
17 #include "GrSWMaskHelper.h" 17 #include "GrSWMaskHelper.h"
18 #include "GrTexturePriv.h" 18 #include "GrTexturePriv.h"
19 #include "GrVertexBuffer.h"
19 #include "effects/GrDistanceFieldGeoProc.h" 20 #include "effects/GrDistanceFieldGeoProc.h"
20 21
21 #include "SkDistanceFieldGen.h" 22 #include "SkDistanceFieldGen.h"
22 #include "SkRTConf.h" 23 #include "SkRTConf.h"
23 24
24 #define ATLAS_TEXTURE_WIDTH 1024 25 #define ATLAS_TEXTURE_WIDTH 1024
25 #define ATLAS_TEXTURE_HEIGHT 2048 26 #define ATLAS_TEXTURE_HEIGHT 2048
26 #define PLOT_WIDTH 256 27 #define PLOT_WIDTH 256
27 #define PLOT_HEIGHT 256 28 #define PLOT_HEIGHT 256
28 29
(...skipping 578 matching lines...) Expand 10 before | Expand all | Expand 10 after
607 SkAutoTUnref<GrBatch> batch(AADistanceFieldPathBatch::Create(geometry, color , viewMatrix, 608 SkAutoTUnref<GrBatch> batch(AADistanceFieldPathBatch::Create(geometry, color , viewMatrix,
608 fAtlas, &fPathC ache, &fPathList)); 609 fAtlas, &fPathC ache, &fPathList));
609 610
610 SkRect bounds = path.getBounds(); 611 SkRect bounds = path.getBounds();
611 viewMatrix.mapRect(&bounds); 612 viewMatrix.mapRect(&bounds);
612 target->drawBatch(pipelineBuilder, batch, &bounds); 613 target->drawBatch(pipelineBuilder, batch, &bounds);
613 614
614 return true; 615 return true;
615 } 616 }
616 617
OLDNEW
« no previous file with comments | « no previous file | src/gpu/GrAAHairLinePathRenderer.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698