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

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

Issue 18585002: Implemented transparent gradients (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: Fixes isValid() in SkPDFGradientShader, fixes tinybitmap regression 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
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 static SkPDFObject* GetPDFShaderByState(State* shaderState);
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698