| OLD | NEW | 
|---|
| 1 /* | 1 /* | 
| 2  * Copyright 2011 Google Inc. | 2  * Copyright 2011 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 #ifndef UNICODE | 8 #ifndef UNICODE | 
| 9 #define UNICODE | 9 #define UNICODE | 
| 10 #endif | 10 #endif | 
| (...skipping 1142 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 1153             segmentTypes , segmentData, segmentStrokes), | 1153             segmentTypes , segmentData, segmentStrokes), | 
| 1154         "Could not add segment data to quad."); | 1154         "Could not add segment data to quad."); | 
| 1155 | 1155 | 
| 1156     // Set the closed and filled properties of the figure. | 1156     // Set the closed and filled properties of the figure. | 
| 1157     HRM((*xpsQuad)->SetIsClosed(stroke), "Could not set quad close."); | 1157     HRM((*xpsQuad)->SetIsClosed(stroke), "Could not set quad close."); | 
| 1158     HRM((*xpsQuad)->SetIsFilled(fill), "Could not set quad fill."); | 1158     HRM((*xpsQuad)->SetIsFilled(fill), "Could not set quad fill."); | 
| 1159 | 1159 | 
| 1160     return S_OK; | 1160     return S_OK; | 
| 1161 } | 1161 } | 
| 1162 | 1162 | 
| 1163 uint32_t SkXPSDevice::getDeviceCapabilities() { |  | 
| 1164     return kVector_Capability; |  | 
| 1165 } |  | 
| 1166 |  | 
| 1167 void SkXPSDevice::clear(SkColor color) { | 1163 void SkXPSDevice::clear(SkColor color) { | 
| 1168     //TODO: override this for XPS | 1164     //TODO: override this for XPS | 
| 1169     SkDEBUGF(("XPS clear not yet implemented.")); | 1165     SkDEBUGF(("XPS clear not yet implemented.")); | 
| 1170 } | 1166 } | 
| 1171 | 1167 | 
| 1172 void SkXPSDevice::drawPoints(const SkDraw& d, SkCanvas::PointMode mode, | 1168 void SkXPSDevice::drawPoints(const SkDraw& d, SkCanvas::PointMode mode, | 
| 1173                              size_t count, const SkPoint points[], | 1169                              size_t count, const SkPoint points[], | 
| 1174                              const SkPaint& paint) { | 1170                              const SkPaint& paint) { | 
| 1175     //This will call back into the device to do the drawing. | 1171     //This will call back into the device to do the drawing. | 
| 1176     d.drawPoints(mode, count, points, paint, true); | 1172     d.drawPoints(mode, count, points, paint, true); | 
| (...skipping 1269 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 2446              IID_PPV_ARGS(&this->fXpsFactory)), | 2442              IID_PPV_ARGS(&this->fXpsFactory)), | 
| 2447          "Could not create factory for layer."); | 2443          "Could not create factory for layer."); | 
| 2448 | 2444 | 
| 2449     HRVM(this->fXpsFactory->CreateCanvas(&this->fCurrentXpsCanvas), | 2445     HRVM(this->fXpsFactory->CreateCanvas(&this->fCurrentXpsCanvas), | 
| 2450          "Could not create canvas for layer."); | 2446          "Could not create canvas for layer."); | 
| 2451 } | 2447 } | 
| 2452 | 2448 | 
| 2453 bool SkXPSDevice::allowImageFilter(const SkImageFilter*) { | 2449 bool SkXPSDevice::allowImageFilter(const SkImageFilter*) { | 
| 2454     return false; | 2450     return false; | 
| 2455 } | 2451 } | 
| OLD | NEW | 
|---|