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

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

Issue 1107923002: SkPDF: clean up uses of deprecated calls in other SkPDF classes (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: 2015-04-27 (Monday) 09:04:15 EDT Created 5 years, 8 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/pdf/SkPDFShader.cpp ('k') | src/pdf/SkPDFTypes.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 335 matching lines...) Expand 10 before | Expand all | Expand 10 after
346 */ 346 */
347 void insertObject(const char key[], SkPDFObject* value); 347 void insertObject(const char key[], SkPDFObject* value);
348 void insertObject(const SkString& key, SkPDFObject* value); 348 void insertObject(const SkString& key, SkPDFObject* value);
349 void insertObjRef(const char key[], SkPDFObject* value); 349 void insertObjRef(const char key[], SkPDFObject* value);
350 void insertObjRef(const SkString& key, SkPDFObject* value); 350 void insertObjRef(const SkString& key, SkPDFObject* value);
351 351
352 /** Add the value to the dictionary with the given key. 352 /** Add the value to the dictionary with the given key.
353 * @param key The text of the key for this dictionary entry. 353 * @param key The text of the key for this dictionary entry.
354 * @param value The value for this dictionary entry. 354 * @param value The value for this dictionary entry.
355 */ 355 */
356 void insertBool(const char key[], bool value);
356 void insertInt(const char key[], int32_t value); 357 void insertInt(const char key[], int32_t value);
357 void insertInt(const char key[], size_t value); 358 void insertInt(const char key[], size_t value);
358 void insertScalar(const char key[], SkScalar value); 359 void insertScalar(const char key[], SkScalar value);
359 void insertName(const char key[], const char nameValue[]); 360 void insertName(const char key[], const char nameValue[]);
360 void insertName(const char key[], const SkString& nameValue); 361 void insertName(const char key[], const SkString& nameValue);
361 void insertString(const char key[], const char value[]); 362 void insertString(const char key[], const char value[]);
362 void insertString(const char key[], const SkString& value); 363 void insertString(const char key[], const SkString& value);
363 364
364 /** Remove all entries from the dictionary. 365 /** Remove all entries from the dictionary.
365 */ 366 */
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
428 429
429 SkPDFObject* operator()(SkPDFObject* o) const { 430 SkPDFObject* operator()(SkPDFObject* o) const {
430 return this->getSubstitute(o); 431 return this->getSubstitute(o);
431 } 432 }
432 433
433 private: 434 private:
434 SkTHashMap<SkPDFObject*, SkPDFObject*> fSubstituteMap; 435 SkTHashMap<SkPDFObject*, SkPDFObject*> fSubstituteMap;
435 }; 436 };
436 437
437 #endif 438 #endif
OLDNEW
« no previous file with comments | « src/pdf/SkPDFShader.cpp ('k') | src/pdf/SkPDFTypes.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698