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

Side by Side Diff: src/utils/android/SkAndroidSDKCanvas.cpp

Issue 1224783002: add matrix options to drawDrawable (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: modify gm Created 5 years, 5 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
« src/core/SkRecords.h ('K') | « src/utils/android/SkAndroidSDKCanvas.h ('k') | no next file » | 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 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 "SkAndroidSDKCanvas.h" 8 #include "SkAndroidSDKCanvas.h"
9 9
10 #include "SkColorFilter.h" 10 #include "SkColorFilter.h"
(...skipping 233 matching lines...) Expand 10 before | Expand all | Expand 10 after
244 fProxyTarget->drawImageRect(image, in, out, filteredPaint); 244 fProxyTarget->drawImageRect(image, in, out, filteredPaint);
245 } 245 }
246 246
247 void SkAndroidSDKCanvas::onDrawPicture(const SkPicture* picture, 247 void SkAndroidSDKCanvas::onDrawPicture(const SkPicture* picture,
248 const SkMatrix* matrix, 248 const SkMatrix* matrix,
249 const SkPaint* paint) { 249 const SkPaint* paint) {
250 FILTER_PTR(paint); 250 FILTER_PTR(paint);
251 fProxyTarget->drawPicture(picture, matrix, filteredPaint); 251 fProxyTarget->drawPicture(picture, matrix, filteredPaint);
252 } 252 }
253 253
254 void SkAndroidSDKCanvas::onDrawDrawable(SkDrawable* drawable) { 254 void SkAndroidSDKCanvas::onDrawDrawable(SkDrawable* drawable, const SkMatrix* ma trix) {
255 fProxyTarget->drawDrawable(drawable); 255 fProxyTarget->drawDrawable(drawable, matrix);
256 } 256 }
257 257
258 SkISize SkAndroidSDKCanvas::getBaseLayerSize() const { 258 SkISize SkAndroidSDKCanvas::getBaseLayerSize() const {
259 return fProxyTarget->getBaseLayerSize(); 259 return fProxyTarget->getBaseLayerSize();
260 } 260 }
261 bool SkAndroidSDKCanvas::getClipBounds(SkRect* rect) const { 261 bool SkAndroidSDKCanvas::getClipBounds(SkRect* rect) const {
262 return fProxyTarget->getClipBounds(rect); 262 return fProxyTarget->getClipBounds(rect);
263 } 263 }
264 bool SkAndroidSDKCanvas::getClipDeviceBounds(SkIRect* rect) const { 264 bool SkAndroidSDKCanvas::getClipDeviceBounds(SkIRect* rect) const {
265 return fProxyTarget->getClipDeviceBounds(rect); 265 return fProxyTarget->getClipDeviceBounds(rect);
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
340 fProxyTarget->clipPath(path, op, style); 340 fProxyTarget->clipPath(path, op, style);
341 } 341 }
342 342
343 void SkAndroidSDKCanvas::onClipRegion(const SkRegion& region, SkRegion::Op op) { 343 void SkAndroidSDKCanvas::onClipRegion(const SkRegion& region, SkRegion::Op op) {
344 fProxyTarget->clipRegion(region, op); 344 fProxyTarget->clipRegion(region, op);
345 } 345 }
346 346
347 void SkAndroidSDKCanvas::onDiscard() { fProxyTarget->discard(); } 347 void SkAndroidSDKCanvas::onDiscard() { fProxyTarget->discard(); }
348 348
349 349
OLDNEW
« src/core/SkRecords.h ('K') | « src/utils/android/SkAndroidSDKCanvas.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698