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

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

Issue 1584703003: Remove two varieties of drawNonAARect from GrDrawTarget (Closed) Base URL: https://skia.googlesource.com/skia.git@hidedrawtargetabit
Patch Set: deprecation message on GrTest Created 4 years, 11 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/GrDrawTarget.h ('k') | src/gpu/GrOvalRenderer.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 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 341 matching lines...) Expand 10 before | Expand all | Expand 10 after
352 352
353 void GrDrawTarget::drawNonAARect(const GrPipelineBuilder& pipelineBuilder, 353 void GrDrawTarget::drawNonAARect(const GrPipelineBuilder& pipelineBuilder,
354 GrColor color, 354 GrColor color,
355 const SkMatrix& viewMatrix, 355 const SkMatrix& viewMatrix,
356 const SkRect& rect) { 356 const SkRect& rect) {
357 SkAutoTUnref<GrDrawBatch> batch(GrRectBatchFactory::CreateNonAAFill(color, vi ewMatrix, rect, 357 SkAutoTUnref<GrDrawBatch> batch(GrRectBatchFactory::CreateNonAAFill(color, vi ewMatrix, rect,
358 nullptr, nullptr)); 358 nullptr, nullptr));
359 this->drawBatch(pipelineBuilder, batch); 359 this->drawBatch(pipelineBuilder, batch);
360 } 360 }
361 361
362 void GrDrawTarget::drawNonAARect(const GrPipelineBuilder& pipelineBuilder,
363 GrColor color,
364 const SkMatrix& viewMatrix,
365 const SkRect& rect,
366 const SkMatrix& localMatrix) {
367 SkAutoTUnref<GrDrawBatch> batch(GrRectBatchFactory::CreateNonAAFill(color, vi ewMatrix, rect,
368 nullptr, &localMatrix));
369 this->drawBatch(pipelineBuilder, batch);
370 }
371
372 void GrDrawTarget::drawNonAARect(const GrPipelineBuilder& pipelineBuilder,
373 GrColor color,
374 const SkMatrix& viewMatrix,
375 const SkRect& rect,
376 const SkRect& localRect) {
377 SkAutoTUnref<GrDrawBatch> batch(GrRectBatchFactory::CreateNonAAFill(color, vi ewMatrix, rect,
378 &localRec t, nullptr));
379 this->drawBatch(pipelineBuilder, batch);
380 }
381
382
383 void GrDrawTarget::drawAARect(const GrPipelineBuilder& pipelineBuilder, 362 void GrDrawTarget::drawAARect(const GrPipelineBuilder& pipelineBuilder,
384 GrColor color, 363 GrColor color,
385 const SkMatrix& viewMatrix, 364 const SkMatrix& viewMatrix,
386 const SkRect& rect, 365 const SkRect& rect,
387 const SkRect& devRect) { 366 const SkRect& devRect) {
388 SkAutoTUnref<GrDrawBatch> batch(GrRectBatchFactory::CreateAAFill(color, view Matrix, rect, 367 SkAutoTUnref<GrDrawBatch> batch(GrRectBatchFactory::CreateAAFill(color, view Matrix, rect,
389 devRect)); 368 devRect));
390 this->drawBatch(pipelineBuilder, batch); 369 this->drawBatch(pipelineBuilder, batch);
391 } 370 }
392 371
(...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after
538 } 517 }
539 518
540 return true; 519 return true;
541 } 520 }
542 521
543 void GrDrawTarget::clearStencilClip(const SkIRect& rect, bool insideClip, GrRend erTarget* rt) { 522 void GrDrawTarget::clearStencilClip(const SkIRect& rect, bool insideClip, GrRend erTarget* rt) {
544 GrBatch* batch = new GrClearStencilClipBatch(rect, insideClip, rt); 523 GrBatch* batch = new GrClearStencilClipBatch(rect, insideClip, rt);
545 this->recordBatch(batch); 524 this->recordBatch(batch);
546 batch->unref(); 525 batch->unref();
547 } 526 }
OLDNEW
« no previous file with comments | « src/gpu/GrDrawTarget.h ('k') | src/gpu/GrOvalRenderer.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698