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

Side by Side Diff: src/pdf/SkPDFGraphicState.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/SkPDFFont.h ('k') | src/pdf/SkPDFShader.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 SkPDFGraphicState_DEFINED 10 #ifndef SkPDFGraphicState_DEFINED
11 #define SkPDFGraphicState_DEFINED 11 #define SkPDFGraphicState_DEFINED
12 12
13 #include "SkPaint.h" 13 #include "SkPaint.h"
14 #include "SkPDFTypes.h" 14 #include "SkPDFTypes.h"
15 #include "SkTemplates.h" 15 #include "SkTemplates.h"
16 #include "SkThread.h"
17 16
18 class SkPDFFormXObject; 17 class SkPDFFormXObject;
19 18
20 /** \class SkPDFGraphicState 19 /** \class SkPDFGraphicState
21 SkPaint objects roughly correspond to graphic state dictionaries that can 20 SkPaint objects roughly correspond to graphic state dictionaries that can
22 be installed. So that a given dictionary is only output to the pdf file 21 be installed. So that a given dictionary is only output to the pdf file
23 once, we want to canonicalize them. Static methods in this class manage 22 once, we want to canonicalize them. Static methods in this class manage
24 a weakly referenced set of SkPDFGraphicState objects: when the last 23 a weakly referenced set of SkPDFGraphicState objects: when the last
25 reference to a SkPDFGraphicState is removed, it removes itself from the 24 reference to a SkPDFGraphicState is removed, it removes itself from the
26 static set of objects. 25 static set of objects.
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
81 80
82 SkPDFGraphicState(); 81 SkPDFGraphicState();
83 SkPDFGraphicState(SkPDFCanon* canon, const SkPaint& paint); 82 SkPDFGraphicState(SkPDFCanon* canon, const SkPaint& paint);
84 83
85 void populateDict(); 84 void populateDict();
86 85
87 typedef SkPDFDict INHERITED; 86 typedef SkPDFDict INHERITED;
88 }; 87 };
89 88
90 #endif 89 #endif
OLDNEW
« no previous file with comments | « src/pdf/SkPDFFont.h ('k') | src/pdf/SkPDFShader.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698