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 #include "SkDevice.h" | 8 #include "SkDevice.h" |
9 #include "SkDeviceProperties.h" | 9 #include "SkDeviceProperties.h" |
10 #include "SkDraw.h" | 10 #include "SkDraw.h" |
(...skipping 330 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
341 } | 341 } |
342 | 342 |
343 /////////////////////////////////////////////////////////////////////////////// | 343 /////////////////////////////////////////////////////////////////////////////// |
344 | 344 |
345 void SkDevice::drawPaint(const SkDraw& draw, const SkPaint& paint) { | 345 void SkDevice::drawPaint(const SkDraw& draw, const SkPaint& paint) { |
346 draw.drawPaint(paint); | 346 draw.drawPaint(paint); |
347 } | 347 } |
348 | 348 |
349 void SkDevice::drawPoints(const SkDraw& draw, SkCanvas::PointMode mode, size_t c
ount, | 349 void SkDevice::drawPoints(const SkDraw& draw, SkCanvas::PointMode mode, size_t c
ount, |
350 const SkPoint pts[], const SkPaint& paint) { | 350 const SkPoint pts[], const SkPaint& paint) { |
| 351 CHECK_FOR_NODRAW_ANNOTATION(paint); |
351 draw.drawPoints(mode, count, pts, paint); | 352 draw.drawPoints(mode, count, pts, paint); |
352 } | 353 } |
353 | 354 |
354 void SkDevice::drawRect(const SkDraw& draw, const SkRect& r, const SkPaint& pain
t) { | 355 void SkDevice::drawRect(const SkDraw& draw, const SkRect& r, const SkPaint& pain
t) { |
355 CHECK_FOR_NODRAW_ANNOTATION(paint); | 356 CHECK_FOR_NODRAW_ANNOTATION(paint); |
356 draw.drawRect(r, paint); | 357 draw.drawRect(r, paint); |
357 } | 358 } |
358 | 359 |
359 void SkDevice::drawOval(const SkDraw& draw, const SkRect& oval, const SkPaint& p
aint) { | 360 void SkDevice::drawOval(const SkDraw& draw, const SkRect& oval, const SkPaint& p
aint) { |
360 CHECK_FOR_NODRAW_ANNOTATION(paint); | 361 CHECK_FOR_NODRAW_ANNOTATION(paint); |
(...skipping 175 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
536 paint.getStyle() != SkPaint::kFill_Style || | 537 paint.getStyle() != SkPaint::kFill_Style || |
537 !SkXfermode::IsMode(paint.getXfermode(), SkXfermode::kSrcOver_Mode)) { | 538 !SkXfermode::IsMode(paint.getXfermode(), SkXfermode::kSrcOver_Mode)) { |
538 // turn off lcd | 539 // turn off lcd |
539 flags->fFlags = paint.getFlags() & ~SkPaint::kLCDRenderText_Flag; | 540 flags->fFlags = paint.getFlags() & ~SkPaint::kLCDRenderText_Flag; |
540 flags->fHinting = paint.getHinting(); | 541 flags->fHinting = paint.getHinting(); |
541 return true; | 542 return true; |
542 } | 543 } |
543 // we're cool with the paint as is | 544 // we're cool with the paint as is |
544 return false; | 545 return false; |
545 } | 546 } |
OLD | NEW |