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

Side by Side Diff: src/pdf/SkPDFTypes.h

Issue 1106163002: SkPDF: clean up uses of deprecated calls in tests (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: 2015-05-01 (Friday) 10:31:59 EDT Created 5 years, 7 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 | « no previous file | tests/PDFPrimitivesTest.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 2010 The Android Open Source Project 2 * Copyright 2010 The Android Open Source Project
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 8
9 #ifndef SkPDFTypes_DEFINED 9 #ifndef SkPDFTypes_DEFINED
10 #define SkPDFTypes_DEFINED 10 #define SkPDFTypes_DEFINED
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
70 SkPDFUnion(SkPDFUnion&& other); 70 SkPDFUnion(SkPDFUnion&& other);
71 SkPDFUnion& operator=(SkPDFUnion&& other); 71 SkPDFUnion& operator=(SkPDFUnion&& other);
72 72
73 ~SkPDFUnion(); 73 ~SkPDFUnion();
74 74
75 /** The following nine functions are the standard way of creating 75 /** The following nine functions are the standard way of creating
76 SkPDFUnion objects. */ 76 SkPDFUnion objects. */
77 77
78 static SkPDFUnion Int(int32_t); 78 static SkPDFUnion Int(int32_t);
79 79
80 static SkPDFUnion Int(size_t);
81
80 static SkPDFUnion Bool(bool); 82 static SkPDFUnion Bool(bool);
81 83
82 static SkPDFUnion Scalar(SkScalar); 84 static SkPDFUnion Scalar(SkScalar);
83 85
84 /** These two functions do NOT take ownership of ptr, and do NOT 86 /** These two functions do NOT take ownership of ptr, and do NOT
85 copy the string. Suitable for passing in static const 87 copy the string. Suitable for passing in static const
86 strings. For example: 88 strings. For example:
87 SkPDFUnion n = SkPDFUnion::Name("Length"); 89 SkPDFUnion n = SkPDFUnion::Name("Length");
88 SkPDFUnion u = SkPDFUnion::String("Identity"); */ 90 SkPDFUnion u = SkPDFUnion::String("Identity"); */
89 91
(...skipping 339 matching lines...) Expand 10 before | Expand all | Expand 10 after
429 431
430 SkPDFObject* operator()(SkPDFObject* o) const { 432 SkPDFObject* operator()(SkPDFObject* o) const {
431 return this->getSubstitute(o); 433 return this->getSubstitute(o);
432 } 434 }
433 435
434 private: 436 private:
435 SkTHashMap<SkPDFObject*, SkPDFObject*> fSubstituteMap; 437 SkTHashMap<SkPDFObject*, SkPDFObject*> fSubstituteMap;
436 }; 438 };
437 439
438 #endif 440 #endif
OLDNEW
« no previous file with comments | « no previous file | tests/PDFPrimitivesTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698