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

Side by Side Diff: src/utils/SkDeferredCanvas.cpp

Issue 448793004: add drawPicture variant that takes a matrix and paint (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: more dummies so we can land Created 6 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/pipe/SkGPipeWrite.cpp ('k') | src/utils/SkDumpCanvas.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 2013 Google Inc. 3 * Copyright 2013 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 "SkDeferredCanvas.h" 9 #include "SkDeferredCanvas.h"
10 10
(...skipping 881 matching lines...) Expand 10 before | Expand all | Expand 10 after
892 this->recordedDrawCommand(); 892 this->recordedDrawCommand();
893 } 893 }
894 894
895 void SkDeferredCanvas::onDrawTextOnPath(const void* text, size_t byteLength, con st SkPath& path, 895 void SkDeferredCanvas::onDrawTextOnPath(const void* text, size_t byteLength, con st SkPath& path,
896 const SkMatrix* matrix, const SkPaint& p aint) { 896 const SkMatrix* matrix, const SkPaint& p aint) {
897 AutoImmediateDrawIfNeeded autoDraw(*this, &paint); 897 AutoImmediateDrawIfNeeded autoDraw(*this, &paint);
898 this->drawingCanvas()->drawTextOnPath(text, byteLength, path, matrix, paint) ; 898 this->drawingCanvas()->drawTextOnPath(text, byteLength, path, matrix, paint) ;
899 this->recordedDrawCommand(); 899 this->recordedDrawCommand();
900 } 900 }
901 901
902 void SkDeferredCanvas::onDrawPicture(const SkPicture* picture) { 902 void SkDeferredCanvas::onDrawPicture(const SkPicture* picture, const SkMatrix* m atrix,
903 this->drawingCanvas()->drawPicture(picture); 903 const SkPaint* paint) {
904 this->drawingCanvas()->drawPicture(picture, matrix, paint);
904 this->recordedDrawCommand(); 905 this->recordedDrawCommand();
905 } 906 }
906 907
907 void SkDeferredCanvas::drawVertices(VertexMode vmode, int vertexCount, 908 void SkDeferredCanvas::drawVertices(VertexMode vmode, int vertexCount,
908 const SkPoint vertices[], 909 const SkPoint vertices[],
909 const SkPoint texs[], 910 const SkPoint texs[],
910 const SkColor colors[], SkXfermode* xmode, 911 const SkColor colors[], SkXfermode* xmode,
911 const uint16_t indices[], int indexCount, 912 const uint16_t indices[], int indexCount,
912 const SkPaint& paint) { 913 const SkPaint& paint) {
913 AutoImmediateDrawIfNeeded autoDraw(*this, &paint); 914 AutoImmediateDrawIfNeeded autoDraw(*this, &paint);
(...skipping 11 matching lines...) Expand all
925 SkDrawFilter* SkDeferredCanvas::setDrawFilter(SkDrawFilter* filter) { 926 SkDrawFilter* SkDeferredCanvas::setDrawFilter(SkDrawFilter* filter) {
926 this->drawingCanvas()->setDrawFilter(filter); 927 this->drawingCanvas()->setDrawFilter(filter);
927 this->INHERITED::setDrawFilter(filter); 928 this->INHERITED::setDrawFilter(filter);
928 this->recordedDrawCommand(); 929 this->recordedDrawCommand();
929 return filter; 930 return filter;
930 } 931 }
931 932
932 SkCanvas* SkDeferredCanvas::canvasForDrawIter() { 933 SkCanvas* SkDeferredCanvas::canvasForDrawIter() {
933 return this->drawingCanvas(); 934 return this->drawingCanvas();
934 } 935 }
OLDNEW
« no previous file with comments | « src/pipe/SkGPipeWrite.cpp ('k') | src/utils/SkDumpCanvas.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698