Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3)

Side by Side Diff: src/svg/SkSVGDevice.cpp

Issue 1204433002: Begin kLegacyFontHost_InitType cleanup (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Add dox Created 5 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/svg/SkSVGDevice.h ('k') | src/utils/SkCanvasStateUtils.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright 2015 Google Inc. 2 * Copyright 2015 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 "SkSVGDevice.h" 8 #include "SkSVGDevice.h"
9 9
10 #include "SkBase64.h" 10 #include "SkBase64.h"
(...skipping 551 matching lines...) Expand 10 before | Expand all | Expand 10 after
562 562
563 SkBaseDevice* SkSVGDevice::Create(const SkISize& size, SkXMLWriter* writer) { 563 SkBaseDevice* SkSVGDevice::Create(const SkISize& size, SkXMLWriter* writer) {
564 if (!writer) { 564 if (!writer) {
565 return NULL; 565 return NULL;
566 } 566 }
567 567
568 return SkNEW_ARGS(SkSVGDevice, (size, writer)); 568 return SkNEW_ARGS(SkSVGDevice, (size, writer));
569 } 569 }
570 570
571 SkSVGDevice::SkSVGDevice(const SkISize& size, SkXMLWriter* writer) 571 SkSVGDevice::SkSVGDevice(const SkISize& size, SkXMLWriter* writer)
572 : fWriter(writer) 572 : INHERITED(SkSurfaceProps(0, kUnknown_SkPixelGeometry))
573 , fWriter(writer)
573 , fResourceBucket(SkNEW(ResourceBucket)) { 574 , fResourceBucket(SkNEW(ResourceBucket)) {
574 SkASSERT(writer); 575 SkASSERT(writer);
575 576
576 fLegacyBitmap.setInfo(SkImageInfo::MakeUnknown(size.width(), size.height())) ; 577 fLegacyBitmap.setInfo(SkImageInfo::MakeUnknown(size.width(), size.height())) ;
577 578
578 fWriter->writeHeader(); 579 fWriter->writeHeader();
579 580
580 // The root <svg> tag gets closed by the destructor. 581 // The root <svg> tag gets closed by the destructor.
581 fRootElement.reset(SkNEW_ARGS(AutoElement, ("svg", fWriter))); 582 fRootElement.reset(SkNEW_ARGS(AutoElement, ("svg", fWriter)));
582 583
(...skipping 224 matching lines...) Expand 10 before | Expand all | Expand 10 after
807 const SkPaint& paint) { 808 const SkPaint& paint) {
808 // todo 809 // todo
809 SkDebugf("unsupported operation: drawVertices()\n"); 810 SkDebugf("unsupported operation: drawVertices()\n");
810 } 811 }
811 812
812 void SkSVGDevice::drawDevice(const SkDraw&, SkBaseDevice*, int x, int y, 813 void SkSVGDevice::drawDevice(const SkDraw&, SkBaseDevice*, int x, int y,
813 const SkPaint&) { 814 const SkPaint&) {
814 // todo 815 // todo
815 SkDebugf("unsupported operation: drawDevice()\n"); 816 SkDebugf("unsupported operation: drawDevice()\n");
816 } 817 }
OLDNEW
« no previous file with comments | « src/svg/SkSVGDevice.h ('k') | src/utils/SkCanvasStateUtils.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698