OLD | NEW |
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 Loading... |
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 Loading... |
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 |
OLD | NEW |