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

Side by Side Diff: src/core/SkRecorder.cpp

Issue 789033002: Remove SkCanvas::drawBitmapMatrix() (Closed) Base URL: https://chromium.googlesource.com/skia.git@master
Patch Set: non-const canvas ptr Created 6 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
« no previous file with comments | « src/core/SkRecorder.h ('k') | src/core/SkRecords.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 * Copyright 2014 Google Inc. 2 * Copyright 2014 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 "SkRecorder.h" 8 #include "SkRecorder.h"
9 #include "SkPatchUtils.h" 9 #include "SkPatchUtils.h"
10 #include "SkPicture.h" 10 #include "SkPicture.h"
(...skipping 161 matching lines...) Expand 10 before | Expand all | Expand 10 after
172 if (kBleed_DrawBitmapRectFlag == flags) { 172 if (kBleed_DrawBitmapRectFlag == flags) {
173 APPEND(DrawBitmapRectToRectBleed, 173 APPEND(DrawBitmapRectToRectBleed,
174 this->copy(paint), delay_copy(bitmap), this->copy(src), dst); 174 this->copy(paint), delay_copy(bitmap), this->copy(src), dst);
175 return; 175 return;
176 } 176 }
177 SkASSERT(kNone_DrawBitmapRectFlag == flags); 177 SkASSERT(kNone_DrawBitmapRectFlag == flags);
178 APPEND(DrawBitmapRectToRect, 178 APPEND(DrawBitmapRectToRect,
179 this->copy(paint), delay_copy(bitmap), this->copy(src), dst); 179 this->copy(paint), delay_copy(bitmap), this->copy(src), dst);
180 } 180 }
181 181
182 void SkRecorder::drawBitmapMatrix(const SkBitmap& bitmap,
183 const SkMatrix& matrix,
184 const SkPaint* paint) {
185 APPEND(DrawBitmapMatrix, this->copy(paint), delay_copy(bitmap), matrix);
186 }
187
188 void SkRecorder::drawBitmapNine(const SkBitmap& bitmap, 182 void SkRecorder::drawBitmapNine(const SkBitmap& bitmap,
189 const SkIRect& center, 183 const SkIRect& center,
190 const SkRect& dst, 184 const SkRect& dst,
191 const SkPaint* paint) { 185 const SkPaint* paint) {
192 APPEND(DrawBitmapNine, this->copy(paint), delay_copy(bitmap), center, dst); 186 APPEND(DrawBitmapNine, this->copy(paint), delay_copy(bitmap), center, dst);
193 } 187 }
194 188
195 void SkRecorder::drawImage(const SkImage* image, SkScalar left, SkScalar top, 189 void SkRecorder::drawImage(const SkImage* image, SkScalar left, SkScalar top,
196 const SkPaint* paint) { 190 const SkPaint* paint) {
197 APPEND(DrawImage, this->copy(paint), image, left, top); 191 APPEND(DrawImage, this->copy(paint), image, left, top);
(...skipping 159 matching lines...) Expand 10 before | Expand all | Expand 10 after
357 APPEND(EndCommentGroup); 351 APPEND(EndCommentGroup);
358 } 352 }
359 353
360 bool SkRecorder::isDrawingToLayer() const { 354 bool SkRecorder::isDrawingToLayer() const {
361 return fSaveLayerCount > 0; 355 return fSaveLayerCount > 0;
362 } 356 }
363 357
364 void SkRecorder::drawData(const void* data, size_t length) { 358 void SkRecorder::drawData(const void* data, size_t length) {
365 APPEND(DrawData, copy((const char*)data), length); 359 APPEND(DrawData, copy((const char*)data), length);
366 } 360 }
OLDNEW
« no previous file with comments | « src/core/SkRecorder.h ('k') | src/core/SkRecords.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698