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

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

Issue 2227673002: std::move(SkTDArray) (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: 2016-08-08 (Monday) 09:19:06 EDT Created 4 years, 4 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/SkPDFDevice.h ('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 272 matching lines...) Expand 10 before | Expand all | Expand 10 after
283 */ 283 */
284 void emitAll(SkWStream* stream, 284 void emitAll(SkWStream* stream,
285 const SkPDFObjNumMap& objNumMap, 285 const SkPDFObjNumMap& objNumMap,
286 const SkPDFSubstituteMap& substitutes) const; 286 const SkPDFSubstituteMap& substitutes) const;
287 287
288 private: 288 private:
289 struct Record { 289 struct Record {
290 SkPDFUnion fKey; 290 SkPDFUnion fKey;
291 SkPDFUnion fValue; 291 SkPDFUnion fValue;
292 Record(SkPDFUnion&&, SkPDFUnion&&); 292 Record(SkPDFUnion&&, SkPDFUnion&&);
293 Record(Record&&); 293 Record(Record&&) = default;
294 Record& operator=(Record&&); 294 Record& operator=(Record&&) = default;
295 Record(const Record&) = delete; 295 Record(const Record&) = delete;
296 Record& operator=(const Record&) = delete; 296 Record& operator=(const Record&) = delete;
297 }; 297 };
298 SkTArray<Record> fRecords; 298 SkTArray<Record> fRecords;
299 SkDEBUGCODE(bool fDumped;) 299 SkDEBUGCODE(bool fDumped;)
300 }; 300 };
301 301
302 /** \class SkPDFSharedStream 302 /** \class SkPDFSharedStream
303 303
304 This class takes an asset and assumes that it is backed by 304 This class takes an asset and assumes that it is backed by
(...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after
428 }; 428 };
429 429
430 #ifdef SK_PDF_IMAGE_STATS 430 #ifdef SK_PDF_IMAGE_STATS
431 extern SkAtomic<int> gDrawImageCalls; 431 extern SkAtomic<int> gDrawImageCalls;
432 extern SkAtomic<int> gJpegImageObjects; 432 extern SkAtomic<int> gJpegImageObjects;
433 extern SkAtomic<int> gRegularImageObjects; 433 extern SkAtomic<int> gRegularImageObjects;
434 extern void SkPDFImageDumpStats(); 434 extern void SkPDFImageDumpStats();
435 #endif // SK_PDF_IMAGE_STATS 435 #endif // SK_PDF_IMAGE_STATS
436 436
437 #endif 437 #endif
OLDNEW
« no previous file with comments | « src/pdf/SkPDFDevice.h ('k') | src/pdf/SkPDFTypes.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698