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

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

Issue 942153002: PDF: remove unnecessary mutexes. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 5 years, 10 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/SkPDFStream.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 /* 2 /*
3 * Copyright 2010 The Android Open Source Project 3 * Copyright 2010 The Android Open Source Project
4 * 4 *
5 * Use of this source code is governed by a BSD-style license that can be 5 * Use of this source code is governed by a BSD-style license that can be
6 * found in the LICENSE file. 6 * found in the LICENSE file.
7 */ 7 */
8 8
9 9
10 #ifndef SkPDFTypes_DEFINED 10 #ifndef SkPDFTypes_DEFINED
11 #define SkPDFTypes_DEFINED 11 #define SkPDFTypes_DEFINED
12 12
13 #include "SkMutex.h"
14 #include "SkRefCnt.h" 13 #include "SkRefCnt.h"
15 #include "SkScalar.h" 14 #include "SkScalar.h"
16 #include "SkString.h" 15 #include "SkString.h"
17 #include "SkTDArray.h" 16 #include "SkTDArray.h"
18 #include "SkTSet.h" 17 #include "SkTSet.h"
19 #include "SkTypes.h" 18 #include "SkTypes.h"
20 19
21 class SkPDFCatalog; 20 class SkPDFCatalog;
22 class SkWStream; 21 class SkWStream;
23 22
(...skipping 353 matching lines...) Expand 10 before | Expand all | Expand 10 after
377 376
378 private: 377 private:
379 struct Rec { 378 struct Rec {
380 SkPDFName* key; 379 SkPDFName* key;
381 SkPDFObject* value; 380 SkPDFObject* value;
382 Rec(SkPDFName* k, SkPDFObject* v) : key(k), value(v) {} 381 Rec(SkPDFName* k, SkPDFObject* v) : key(k), value(v) {}
383 }; 382 };
384 383
385 static const int kMaxLen = 4095; 384 static const int kMaxLen = 4095;
386 385
387 mutable SkMutex fMutex; // protects modifications to fValue
388 SkTDArray<struct Rec> fValue; 386 SkTDArray<struct Rec> fValue;
389 387
390 SkPDFObject* append(SkPDFName* key, SkPDFObject* value); 388 SkPDFObject* append(SkPDFName* key, SkPDFObject* value);
391 389
392 typedef SkPDFObject INHERITED; 390 typedef SkPDFObject INHERITED;
393 }; 391 };
394 392
395 #endif 393 #endif
OLDNEW
« no previous file with comments | « src/pdf/SkPDFStream.cpp ('k') | src/pdf/SkPDFTypes.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698