| 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 676 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 687 | 687 |
| 688 void SkGPipeCanvas::drawPaint(const SkPaint& paint) { | 688 void SkGPipeCanvas::drawPaint(const SkPaint& paint) { |
| 689 NOTIFY_SETUP(this); | 689 NOTIFY_SETUP(this); |
| 690 this->writePaint(paint); | 690 this->writePaint(paint); |
| 691 if (this->needOpBytes()) { | 691 if (this->needOpBytes()) { |
| 692 this->writeOp(kDrawPaint_DrawOp); | 692 this->writeOp(kDrawPaint_DrawOp); |
| 693 } | 693 } |
| 694 } | 694 } |
| 695 | 695 |
| 696 void SkGPipeCanvas::drawPoints(PointMode mode, size_t count, | 696 void SkGPipeCanvas::drawPoints(PointMode mode, size_t count, |
| 697 const SkPoint pts[], const SkPaint& paint) { | 697 const SkPoint pts[], const SkPaint& paint) { |
| 698 if (count) { | 698 if (count) { |
| 699 NOTIFY_SETUP(this); | 699 NOTIFY_SETUP(this); |
| 700 this->writePaint(paint); | 700 this->writePaint(paint); |
| 701 if (this->needOpBytes(4 + count * sizeof(SkPoint))) { | 701 if (this->needOpBytes(4 + count * sizeof(SkPoint))) { |
| 702 this->writeOp(kDrawPoints_DrawOp, mode, 0); | 702 this->writeOp(kDrawPoints_DrawOp, mode, 0); |
| 703 fWriter.write32(count); | 703 fWriter.write32(count); |
| 704 fWriter.write(pts, count * sizeof(SkPoint)); | 704 fWriter.write(pts, count * sizeof(SkPoint)); |
| 705 } | 705 } |
| 706 } | 706 } |
| 707 } | 707 } |
| (...skipping 502 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1210 fCanvas->ref(); | 1210 fCanvas->ref(); |
| 1211 } | 1211 } |
| 1212 | 1212 |
| 1213 BitmapShuttle::~BitmapShuttle() { | 1213 BitmapShuttle::~BitmapShuttle() { |
| 1214 fCanvas->unref(); | 1214 fCanvas->unref(); |
| 1215 } | 1215 } |
| 1216 | 1216 |
| 1217 bool BitmapShuttle::insert(const SkBitmap& bitmap, int32_t slot) { | 1217 bool BitmapShuttle::insert(const SkBitmap& bitmap, int32_t slot) { |
| 1218 return fCanvas->shuttleBitmap(bitmap, slot); | 1218 return fCanvas->shuttleBitmap(bitmap, slot); |
| 1219 } | 1219 } |
| OLD | NEW |