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

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

Issue 1282283002: Move GrStrokeRectBatch creation to behind factory (Closed) Base URL: https://skia.googlesource.com/skia.git@batchfactory2
Patch Set: feedback inc Created 5 years, 4 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/GrDrawContext.cpp ('k') | src/gpu/batches/GrRectBatchFactory.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 /* 2 /*
3 * Copyright 2010 Google Inc. 3 * Copyright 2010 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 "GrDrawTarget.h" 9 #include "GrDrawTarget.h"
10 10
(...skipping 276 matching lines...) Expand 10 before | Expand all | Expand 10 after
287 this->onDrawPaths(pathProc, pathRange, indices, indexType, transformValues, 287 this->onDrawPaths(pathProc, pathRange, indices, indexType, transformValues,
288 transformType, count, stencilSettings, pipelineInfo); 288 transformType, count, stencilSettings, pipelineInfo);
289 } 289 }
290 290
291 void GrDrawTarget::drawBWRect(const GrPipelineBuilder& pipelineBuilder, 291 void GrDrawTarget::drawBWRect(const GrPipelineBuilder& pipelineBuilder,
292 GrColor color, 292 GrColor color,
293 const SkMatrix& viewMatrix, 293 const SkMatrix& viewMatrix,
294 const SkRect& rect, 294 const SkRect& rect,
295 const SkRect* localRect, 295 const SkRect* localRect,
296 const SkMatrix* localMatrix) { 296 const SkMatrix* localMatrix) {
297 SkAutoTUnref<GrBatch> batch(GrRectBatchFactory::Create(color, viewMatrix, rec t, localRect, 297 SkAutoTUnref<GrBatch> batch(GrRectBatchFactory::CreateFillBW(color, viewMatri x, rect, localRect,
298 localMatrix)); 298 localMatrix));
299 this->drawBatch(pipelineBuilder, batch); 299 this->drawBatch(pipelineBuilder, batch);
300 } 300 }
301 301
302 void GrDrawTarget::drawAARect(const GrPipelineBuilder& pipelineBuilder, 302 void GrDrawTarget::drawAARect(const GrPipelineBuilder& pipelineBuilder,
303 GrColor color, 303 GrColor color,
304 const SkMatrix& viewMatrix, 304 const SkMatrix& viewMatrix,
305 const SkRect& rect, 305 const SkRect& rect,
306 const SkRect& devRect) { 306 const SkRect& devRect) {
307 GrAARectRenderer::FillAARect(this, pipelineBuilder, color, viewMatrix, rect, devRect); 307 GrAARectRenderer::FillAARect(this, pipelineBuilder, color, viewMatrix, rect, devRect);
308 } 308 }
(...skipping 208 matching lines...) Expand 10 before | Expand all | Expand 10 after
517 ars, 517 ars,
518 scissorState, 518 scissorState,
519 devBounds); 519 devBounds);
520 } 520 }
521 521
522 void GrClipTarget::purgeResources() { 522 void GrClipTarget::purgeResources() {
523 // The clip mask manager can rebuild all its clip masks so just 523 // The clip mask manager can rebuild all its clip masks so just
524 // get rid of them all. 524 // get rid of them all.
525 fClipMaskManager->purgeResources(); 525 fClipMaskManager->purgeResources();
526 }; 526 };
OLDNEW
« no previous file with comments | « src/gpu/GrDrawContext.cpp ('k') | src/gpu/batches/GrRectBatchFactory.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698