OLD | NEW |
1 | 1 |
2 /* | 2 /* |
3 * Copyright 2011 Google Inc. | 3 * Copyright 2011 Google Inc. |
4 * | 4 * |
5 * Use of this source code is governed by a BSD-style license that can be | 5 * Use of this source code is governed by a BSD-style license that can be |
6 * found in the LICENSE file. | 6 * found in the LICENSE file. |
7 */ | 7 */ |
8 | 8 |
9 #include "SkAnnotation.h" | 9 #include "SkAnnotation.h" |
10 #include "SkBitmapDevice.h" | 10 #include "SkBitmapDevice.h" |
(...skipping 1118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1129 | 1129 |
1130 if (base.getFlags() != paint.getFlags()) { | 1130 if (base.getFlags() != paint.getFlags()) { |
1131 *ptr++ = PaintOp_packOpData(kFlags_PaintOp, paint.getFlags()); | 1131 *ptr++ = PaintOp_packOpData(kFlags_PaintOp, paint.getFlags()); |
1132 base.setFlags(paint.getFlags()); | 1132 base.setFlags(paint.getFlags()); |
1133 } | 1133 } |
1134 if (base.getColor() != paint.getColor()) { | 1134 if (base.getColor() != paint.getColor()) { |
1135 *ptr++ = PaintOp_packOp(kColor_PaintOp); | 1135 *ptr++ = PaintOp_packOp(kColor_PaintOp); |
1136 *ptr++ = paint.getColor(); | 1136 *ptr++ = paint.getColor(); |
1137 base.setColor(paint.getColor()); | 1137 base.setColor(paint.getColor()); |
1138 } | 1138 } |
1139 if (base.getFilterLevel() != paint.getFilterLevel()) { | 1139 if (base.getFilterQuality() != paint.getFilterQuality()) { |
1140 *ptr++ = PaintOp_packOpData(kFilterLevel_PaintOp, paint.getFilterLevel()
); | 1140 *ptr++ = PaintOp_packOpData(kFilterLevel_PaintOp, paint.getFilterQuality
()); |
1141 base.setFilterLevel(paint.getFilterLevel()); | 1141 base.setFilterQuality(paint.getFilterQuality()); |
1142 } | 1142 } |
1143 if (base.getStyle() != paint.getStyle()) { | 1143 if (base.getStyle() != paint.getStyle()) { |
1144 *ptr++ = PaintOp_packOpData(kStyle_PaintOp, paint.getStyle()); | 1144 *ptr++ = PaintOp_packOpData(kStyle_PaintOp, paint.getStyle()); |
1145 base.setStyle(paint.getStyle()); | 1145 base.setStyle(paint.getStyle()); |
1146 } | 1146 } |
1147 if (base.getStrokeJoin() != paint.getStrokeJoin()) { | 1147 if (base.getStrokeJoin() != paint.getStrokeJoin()) { |
1148 *ptr++ = PaintOp_packOpData(kJoin_PaintOp, paint.getStrokeJoin()); | 1148 *ptr++ = PaintOp_packOpData(kJoin_PaintOp, paint.getStrokeJoin()); |
1149 base.setStrokeJoin(paint.getStrokeJoin()); | 1149 base.setStrokeJoin(paint.getStrokeJoin()); |
1150 } | 1150 } |
1151 if (base.getStrokeCap() != paint.getStrokeCap()) { | 1151 if (base.getStrokeCap() != paint.getStrokeCap()) { |
(...skipping 178 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1330 return fCanvas->shuttleBitmap(bitmap, slot); | 1330 return fCanvas->shuttleBitmap(bitmap, slot); |
1331 } | 1331 } |
1332 | 1332 |
1333 void BitmapShuttle::removeCanvas() { | 1333 void BitmapShuttle::removeCanvas() { |
1334 if (NULL == fCanvas) { | 1334 if (NULL == fCanvas) { |
1335 return; | 1335 return; |
1336 } | 1336 } |
1337 fCanvas->unref(); | 1337 fCanvas->unref(); |
1338 fCanvas = NULL; | 1338 fCanvas = NULL; |
1339 } | 1339 } |
OLD | NEW |