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

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

Issue 1268603003: Fix straggling SK_VIRTUAL_CONSTRAINT_TYPEs (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 5 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/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 125 matching lines...) Expand 10 before | Expand all | Expand 10 after
136 SkScalar left, 136 SkScalar left,
137 SkScalar top, 137 SkScalar top,
138 const SkPaint* paint) { 138 const SkPaint* paint) {
139 FILTER_PTR(paint); 139 FILTER_PTR(paint);
140 fProxyTarget->drawBitmap(bitmap, left, top, filteredPaint); 140 fProxyTarget->drawBitmap(bitmap, left, top, filteredPaint);
141 } 141 }
142 void SkAndroidSDKCanvas::onDrawBitmapRect(const SkBitmap& bitmap, 142 void SkAndroidSDKCanvas::onDrawBitmapRect(const SkBitmap& bitmap,
143 const SkRect* src, 143 const SkRect* src,
144 const SkRect& dst, 144 const SkRect& dst,
145 const SkPaint* paint, 145 const SkPaint* paint,
146 SK_VIRTUAL_CONSTRAINT_TYPE co nstraint) { 146 SkCanvas::SrcRectConstraint c onstraint) {
147 FILTER_PTR(paint); 147 FILTER_PTR(paint);
148 fProxyTarget->drawBitmapRect(bitmap, src, dst, filteredPaint, 148 fProxyTarget->drawBitmapRect(bitmap, src, dst, filteredPaint, constraint);
149 (SrcRectConstraint)constraint);
150 } 149 }
151 void SkAndroidSDKCanvas::onDrawBitmapNine(const SkBitmap& bitmap, 150 void SkAndroidSDKCanvas::onDrawBitmapNine(const SkBitmap& bitmap,
152 const SkIRect& center, 151 const SkIRect& center,
153 const SkRect& dst, 152 const SkRect& dst,
154 const SkPaint* paint) { 153 const SkPaint* paint) {
155 FILTER_PTR(paint); 154 FILTER_PTR(paint);
156 fProxyTarget->drawBitmapNine(bitmap, center, dst, filteredPaint); 155 fProxyTarget->drawBitmapNine(bitmap, center, dst, filteredPaint);
157 } 156 }
158 void SkAndroidSDKCanvas::onDrawSprite(const SkBitmap& bitmap, 157 void SkAndroidSDKCanvas::onDrawSprite(const SkBitmap& bitmap,
159 int left, 158 int left,
(...skipping 181 matching lines...) Expand 10 before | Expand all | Expand 10 after
341 fProxyTarget->clipPath(path, op, style); 340 fProxyTarget->clipPath(path, op, style);
342 } 341 }
343 342
344 void SkAndroidSDKCanvas::onClipRegion(const SkRegion& region, SkRegion::Op op) { 343 void SkAndroidSDKCanvas::onClipRegion(const SkRegion& region, SkRegion::Op op) {
345 fProxyTarget->clipRegion(region, op); 344 fProxyTarget->clipRegion(region, op);
346 } 345 }
347 346
348 void SkAndroidSDKCanvas::onDiscard() { fProxyTarget->discard(); } 347 void SkAndroidSDKCanvas::onDiscard() { fProxyTarget->discard(); }
349 348
350 349
OLDNEW
« no previous file with comments | « src/utils/android/SkAndroidSDKCanvas.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698