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

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

Issue 18585002: Implemented transparent gradients (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: Merge new SkPDFResourceDict method names Created 7 years, 5 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 | Annotate | Revision Log
« no previous file with comments | « src/pdf/SkPDFGraphicState.cpp ('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 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
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 // This is an internal method.
62 // CanonicalShadersMutex() should already be acquired.
63 // This also takes ownership of shaderState.
64 static SkPDFObject* GetPDFShaderByState(State* shaderState);
60 static void RemoveShader(SkPDFObject* shader); 65 static void RemoveShader(SkPDFObject* shader);
61 66
62 SkPDFShader(); 67 SkPDFShader();
63 virtual ~SkPDFShader() {}; 68 virtual ~SkPDFShader() {};
64 69
65 virtual bool isValid() = 0; 70 virtual bool isValid() = 0;
66 }; 71 };
67 72
68 #endif 73 #endif
OLDNEW
« no previous file with comments | « src/pdf/SkPDFGraphicState.cpp ('k') | src/pdf/SkPDFShader.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698