| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright 2014 Google Inc. | 2 * Copyright 2014 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 "SkBigPicture.h" | 8 #include "SkBigPicture.h" |
| 9 #include "SkCanvasPriv.h" | 9 #include "SkCanvasPriv.h" |
| 10 #include "SkImage.h" | 10 #include "SkImage.h" |
| (...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 142 | 142 |
| 143 void SkRecorder::onDrawRect(const SkRect& rect, const SkPaint& paint) { | 143 void SkRecorder::onDrawRect(const SkRect& rect, const SkPaint& paint) { |
| 144 TRY_MINIRECORDER(drawRect, rect, paint); | 144 TRY_MINIRECORDER(drawRect, rect, paint); |
| 145 APPEND(DrawRect, paint, rect); | 145 APPEND(DrawRect, paint, rect); |
| 146 } | 146 } |
| 147 | 147 |
| 148 void SkRecorder::onDrawOval(const SkRect& oval, const SkPaint& paint) { | 148 void SkRecorder::onDrawOval(const SkRect& oval, const SkPaint& paint) { |
| 149 APPEND(DrawOval, paint, oval); | 149 APPEND(DrawOval, paint, oval); |
| 150 } | 150 } |
| 151 | 151 |
| 152 void SkRecorder::onDrawArc(const SkRect& oval, SkScalar startAngle, SkScalar swe
epAngle, |
| 153 bool useCenter, const SkPaint& paint) { |
| 154 APPEND(DrawArc, paint, oval, startAngle, sweepAngle, useCenter); |
| 155 } |
| 156 |
| 152 void SkRecorder::onDrawRRect(const SkRRect& rrect, const SkPaint& paint) { | 157 void SkRecorder::onDrawRRect(const SkRRect& rrect, const SkPaint& paint) { |
| 153 APPEND(DrawRRect, paint, rrect); | 158 APPEND(DrawRRect, paint, rrect); |
| 154 } | 159 } |
| 155 | 160 |
| 156 void SkRecorder::onDrawDRRect(const SkRRect& outer, const SkRRect& inner, const
SkPaint& paint) { | 161 void SkRecorder::onDrawDRRect(const SkRRect& outer, const SkRRect& inner, const
SkPaint& paint) { |
| 157 APPEND(DrawDRRect, paint, outer, inner); | 162 APPEND(DrawDRRect, paint, outer, inner); |
| 158 } | 163 } |
| 159 | 164 |
| 160 void SkRecorder::onDrawDrawable(SkDrawable* drawable, const SkMatrix* matrix) { | 165 void SkRecorder::onDrawDrawable(SkDrawable* drawable, const SkMatrix* matrix) { |
| 161 if (fDrawPictureMode == Record_DrawPictureMode) { | 166 if (fDrawPictureMode == Record_DrawPictureMode) { |
| (...skipping 243 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 405 } | 410 } |
| 406 | 411 |
| 407 void SkRecorder::onClipRegion(const SkRegion& deviceRgn, SkRegion::Op op) { | 412 void SkRecorder::onClipRegion(const SkRegion& deviceRgn, SkRegion::Op op) { |
| 408 INHERITED(onClipRegion, deviceRgn, op); | 413 INHERITED(onClipRegion, deviceRgn, op); |
| 409 APPEND(ClipRegion, this->devBounds(), deviceRgn, op); | 414 APPEND(ClipRegion, this->devBounds(), deviceRgn, op); |
| 410 } | 415 } |
| 411 | 416 |
| 412 sk_sp<SkSurface> SkRecorder::onNewSurface(const SkImageInfo&, const SkSurfacePro
ps&) { | 417 sk_sp<SkSurface> SkRecorder::onNewSurface(const SkImageInfo&, const SkSurfacePro
ps&) { |
| 413 return nullptr; | 418 return nullptr; |
| 414 } | 419 } |
| OLD | NEW |