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

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

Issue 1534443003: remove drawSprite from canvas (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: really tired of unused variable warnings Created 5 years 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
OLDNEW
1 /* 1 /*
2 * Copyright 2015 Google Inc. 2 * Copyright 2015 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 "SkPaintFilterCanvas.h" 8 #include "SkPaintFilterCanvas.h"
9 9
10 #include "SkPaint.h" 10 #include "SkPaint.h"
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after
103 AutoPaintFilter apf(this, kBitmap_Type, paint); 103 AutoPaintFilter apf(this, kBitmap_Type, paint);
104 this->INHERITED::onDrawImageRect(image, src, dst, apf.paint(), constraint); 104 this->INHERITED::onDrawImageRect(image, src, dst, apf.paint(), constraint);
105 } 105 }
106 106
107 void SkPaintFilterCanvas::onDrawBitmapNine(const SkBitmap& bm, const SkIRect& ce nter, 107 void SkPaintFilterCanvas::onDrawBitmapNine(const SkBitmap& bm, const SkIRect& ce nter,
108 const SkRect& dst, const SkPaint* pai nt) { 108 const SkRect& dst, const SkPaint* pai nt) {
109 AutoPaintFilter apf(this, kBitmap_Type, paint); 109 AutoPaintFilter apf(this, kBitmap_Type, paint);
110 this->INHERITED::onDrawBitmapNine(bm, center, dst, apf.paint()); 110 this->INHERITED::onDrawBitmapNine(bm, center, dst, apf.paint());
111 } 111 }
112 112
113 void SkPaintFilterCanvas::onDrawSprite(const SkBitmap& bm, int left, int top,
114 const SkPaint* paint) {
115 AutoPaintFilter apf(this, kBitmap_Type, paint);
116 this->INHERITED::onDrawSprite(bm, left, top, apf.paint());
117 }
118
119 void SkPaintFilterCanvas::onDrawVertices(VertexMode vmode, int vertexCount, 113 void SkPaintFilterCanvas::onDrawVertices(VertexMode vmode, int vertexCount,
120 const SkPoint vertices[], const SkPoint texs[], 114 const SkPoint vertices[], const SkPoint texs[],
121 const SkColor colors[], SkXfermode* xmo de, 115 const SkColor colors[], SkXfermode* xmo de,
122 const uint16_t indices[], int indexCoun t, 116 const uint16_t indices[], int indexCoun t,
123 const SkPaint& paint) { 117 const SkPaint& paint) {
124 AutoPaintFilter apf(this, kVertices_Type, paint); 118 AutoPaintFilter apf(this, kVertices_Type, paint);
125 this->INHERITED::onDrawVertices(vmode, vertexCount, vertices, texs, colors, xmode, indices, 119 this->INHERITED::onDrawVertices(vmode, vertexCount, vertices, texs, colors, xmode, indices,
126 indexCount, *apf.paint()); 120 indexCount, *apf.paint());
127 } 121 }
128 122
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
161 const SkMatrix* matrix, const SkPaint & paint) { 155 const SkMatrix* matrix, const SkPaint & paint) {
162 AutoPaintFilter apf(this, kText_Type, paint); 156 AutoPaintFilter apf(this, kText_Type, paint);
163 this->INHERITED::onDrawTextOnPath(text, byteLength, path, matrix, *apf.paint ()); 157 this->INHERITED::onDrawTextOnPath(text, byteLength, path, matrix, *apf.paint ());
164 } 158 }
165 159
166 void SkPaintFilterCanvas::onDrawTextBlob(const SkTextBlob* blob, SkScalar x, SkS calar y, 160 void SkPaintFilterCanvas::onDrawTextBlob(const SkTextBlob* blob, SkScalar x, SkS calar y,
167 const SkPaint& paint) { 161 const SkPaint& paint) {
168 AutoPaintFilter apf(this, kTextBlob_Type, paint); 162 AutoPaintFilter apf(this, kTextBlob_Type, paint);
169 this->INHERITED::onDrawTextBlob(blob, x, y, *apf.paint()); 163 this->INHERITED::onDrawTextBlob(blob, x, y, *apf.paint());
170 } 164 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698