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

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

Issue 1540583002: update androidsdk to new savelayer signature (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: 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
« 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 301 matching lines...) Expand 10 before | Expand all | Expand 10 after
312 pmap->reset(info, addr, rowBytes); 312 pmap->reset(info, addr, rowBytes);
313 return true; 313 return true;
314 } 314 }
315 return false; 315 return false;
316 } 316 }
317 317
318 void SkAndroidSDKCanvas::willSave() { 318 void SkAndroidSDKCanvas::willSave() {
319 fProxyTarget->save(); 319 fProxyTarget->save();
320 } 320 }
321 321
322 SkCanvas::SaveLayerStrategy SkAndroidSDKCanvas::willSaveLayer(const SkRect* rect , 322 SkCanvas::SaveLayerStrategy SkAndroidSDKCanvas::getSaveLayerStrategy(const SaveL ayerRec& rec) {
323 const SkPaint* pai nt, 323 fProxyTarget->saveLayer(rec);
324 SaveFlags flags) {
325 fProxyTarget->saveLayer(rect, paint, flags);
326 return SkCanvas::kNoLayer_SaveLayerStrategy; 324 return SkCanvas::kNoLayer_SaveLayerStrategy;
327 } 325 }
328 326
329 void SkAndroidSDKCanvas::willRestore() { 327 void SkAndroidSDKCanvas::willRestore() {
330 fProxyTarget->restore(); 328 fProxyTarget->restore();
331 } 329 }
332 330
333 void SkAndroidSDKCanvas::didRestore() { } 331 void SkAndroidSDKCanvas::didRestore() { }
334 332
335 void SkAndroidSDKCanvas::didConcat(const SkMatrix& m) { 333 void SkAndroidSDKCanvas::didConcat(const SkMatrix& m) {
(...skipping 22 matching lines...) Expand all
358 fProxyTarget->clipPath(path, op, style); 356 fProxyTarget->clipPath(path, op, style);
359 } 357 }
360 358
361 void SkAndroidSDKCanvas::onClipRegion(const SkRegion& region, SkRegion::Op op) { 359 void SkAndroidSDKCanvas::onClipRegion(const SkRegion& region, SkRegion::Op op) {
362 fProxyTarget->clipRegion(region, op); 360 fProxyTarget->clipRegion(region, op);
363 } 361 }
364 362
365 void SkAndroidSDKCanvas::onDiscard() { fProxyTarget->discard(); } 363 void SkAndroidSDKCanvas::onDiscard() { fProxyTarget->discard(); }
366 364
367 365
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