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

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

Issue 1369923003: Add overrides to SkAndroidSDKCanvas, update SkHwuiRenderer (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 5 years, 2 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/utils/android/SkAndroidSDKCanvas.h ('k') | src/utils/android/SkHwuiRenderer.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 * 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 230 matching lines...) Expand 10 before | Expand all | Expand 10 after
241 void SkAndroidSDKCanvas::onDrawImageRect(const SkImage* image, 241 void SkAndroidSDKCanvas::onDrawImageRect(const SkImage* image,
242 const SkRect* in, 242 const SkRect* in,
243 const SkRect& out, 243 const SkRect& out,
244 const SkPaint* paint, 244 const SkPaint* paint,
245 SrcRectConstraint constraint) { 245 SrcRectConstraint constraint) {
246 FILTER_PTR(paint); 246 FILTER_PTR(paint);
247 fProxyTarget->legacy_drawImageRect(image, in, out, filteredPaint, constraint ); 247 fProxyTarget->legacy_drawImageRect(image, in, out, filteredPaint, constraint );
248 } 248 }
249 249
250 void SkAndroidSDKCanvas::onDrawPicture(const SkPicture* picture, 250 void SkAndroidSDKCanvas::onDrawPicture(const SkPicture* picture,
251 const SkMatrix* matrix, 251 const SkMatrix* matrix,
252 const SkPaint* paint) { 252 const SkPaint* paint) {
253 FILTER_PTR(paint); 253 FILTER_PTR(paint);
254 fProxyTarget->drawPicture(picture, matrix, filteredPaint); 254 fProxyTarget->drawPicture(picture, matrix, filteredPaint);
255 } 255 }
256 256
257 void SkAndroidSDKCanvas::onDrawAtlas(const SkImage* atlas,
258 const SkRSXform xform[],
259 const SkRect tex[],
260 const SkColor colors[],
261 int count,
262 SkXfermode::Mode mode,
263 const SkRect* cullRect,
264 const SkPaint* paint) {
265 FILTER_PTR(paint);
266 fProxyTarget->drawAtlas(atlas, xform, tex, colors, count, mode, cullRect,
267 filteredPaint);
268 }
269
270 void SkAndroidSDKCanvas::onDrawImageNine(const SkImage* image,
271 const SkIRect& center,
272 const SkRect& dst,
273 const SkPaint* paint) {
274 FILTER_PTR(paint);
275 fProxyTarget->drawImageNine(image, center, dst, filteredPaint);
276 }
277
278
257 void SkAndroidSDKCanvas::onDrawDrawable(SkDrawable* drawable, const SkMatrix* ma trix) { 279 void SkAndroidSDKCanvas::onDrawDrawable(SkDrawable* drawable, const SkMatrix* ma trix) {
258 fProxyTarget->drawDrawable(drawable, matrix); 280 fProxyTarget->drawDrawable(drawable, matrix);
259 } 281 }
260 282
261 SkISize SkAndroidSDKCanvas::getBaseLayerSize() const { 283 SkISize SkAndroidSDKCanvas::getBaseLayerSize() const {
262 return fProxyTarget->getBaseLayerSize(); 284 return fProxyTarget->getBaseLayerSize();
263 } 285 }
264 bool SkAndroidSDKCanvas::getClipBounds(SkRect* rect) const { 286 bool SkAndroidSDKCanvas::getClipBounds(SkRect* rect) const {
265 return fProxyTarget->getClipBounds(rect); 287 return fProxyTarget->getClipBounds(rect);
266 } 288 }
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
343 fProxyTarget->clipPath(path, op, style); 365 fProxyTarget->clipPath(path, op, style);
344 } 366 }
345 367
346 void SkAndroidSDKCanvas::onClipRegion(const SkRegion& region, SkRegion::Op op) { 368 void SkAndroidSDKCanvas::onClipRegion(const SkRegion& region, SkRegion::Op op) {
347 fProxyTarget->clipRegion(region, op); 369 fProxyTarget->clipRegion(region, op);
348 } 370 }
349 371
350 void SkAndroidSDKCanvas::onDiscard() { fProxyTarget->discard(); } 372 void SkAndroidSDKCanvas::onDiscard() { fProxyTarget->discard(); }
351 373
352 374
OLDNEW
« no previous file with comments | « src/utils/android/SkAndroidSDKCanvas.h ('k') | src/utils/android/SkHwuiRenderer.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698