OLD | NEW |
---|---|
1 | 1 |
2 /* | 2 /* |
3 * Copyright 2011 Google Inc. | 3 * Copyright 2011 Google Inc. |
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 SkPDFShader_DEFINED | 10 #ifndef SkPDFShader_DEFINED |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
50 public: | 50 public: |
51 ShaderCanonicalEntry(SkPDFObject* pdfShader, const State* state); | 51 ShaderCanonicalEntry(SkPDFObject* pdfShader, const State* state); |
52 bool operator==(const ShaderCanonicalEntry& b) const; | 52 bool operator==(const ShaderCanonicalEntry& b) const; |
53 | 53 |
54 SkPDFObject* fPDFShader; | 54 SkPDFObject* fPDFShader; |
55 const State* fState; | 55 const State* fState; |
56 }; | 56 }; |
57 // This should be made a hash table if performance is a problem. | 57 // This should be made a hash table if performance is a problem. |
58 static SkTDArray<ShaderCanonicalEntry>& CanonicalShaders(); | 58 static SkTDArray<ShaderCanonicalEntry>& CanonicalShaders(); |
59 static SkBaseMutex& CanonicalShadersMutex(); | 59 static SkBaseMutex& CanonicalShadersMutex(); |
60 | |
61 static SkPDFObject* GetPDFShaderByState(State* shaderState); | |
vandebo (ex-Chrome)
2013/07/12 21:41:44
At the least this should document that it consumes
ducky
2013/07/12 23:32:34
It would be cleaner if it didn't, but it needs to
| |
60 static void RemoveShader(SkPDFObject* shader); | 62 static void RemoveShader(SkPDFObject* shader); |
61 | 63 |
62 SkPDFShader(); | 64 SkPDFShader(); |
63 virtual ~SkPDFShader() {}; | 65 virtual ~SkPDFShader() {}; |
64 | 66 |
65 virtual bool isValid() = 0; | 67 virtual bool isValid() = 0; |
66 }; | 68 }; |
67 | 69 |
68 #endif | 70 #endif |
OLD | NEW |