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

Side by Side Diff: include/core/SkComposeShader.h

Issue 282733005: Add functions for inspecting SkShader. (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: Created 6 years, 7 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 | « no previous file | include/core/SkShader.h » ('j') | include/core/SkShader.h » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 1
2 /* 2 /*
3 * Copyright 2006 The Android Open Source Project 3 * Copyright 2006 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 SkComposeShader_DEFINED 10 #ifndef SkComposeShader_DEFINED
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
55 SkShader::Context* fShaderContextB; 55 SkShader::Context* fShaderContextB;
56 56
57 typedef SkShader::Context INHERITED; 57 typedef SkShader::Context INHERITED;
58 }; 58 };
59 59
60 #ifdef SK_DEBUG 60 #ifdef SK_DEBUG
61 SkShader* getShaderA() { return fShaderA; } 61 SkShader* getShaderA() { return fShaderA; }
62 SkShader* getShaderB() { return fShaderB; } 62 SkShader* getShaderB() { return fShaderB; }
63 #endif 63 #endif
64 64
65 virtual bool asACompose(ComposeRec* rec) const SK_OVERRIDE;
66
65 SK_TO_STRING_OVERRIDE() 67 SK_TO_STRING_OVERRIDE()
66 SK_DECLARE_PUBLIC_FLATTENABLE_DESERIALIZATION_PROCS(SkComposeShader) 68 SK_DECLARE_PUBLIC_FLATTENABLE_DESERIALIZATION_PROCS(SkComposeShader)
67 69
68 protected: 70 protected:
69 SkComposeShader(SkReadBuffer& ); 71 SkComposeShader(SkReadBuffer& );
70 virtual void flatten(SkWriteBuffer&) const SK_OVERRIDE; 72 virtual void flatten(SkWriteBuffer&) const SK_OVERRIDE;
71 virtual Context* onCreateContext(const ContextRec&, void*) const SK_OVERRIDE ; 73 virtual Context* onCreateContext(const ContextRec&, void*) const SK_OVERRIDE ;
72 74
73 private: 75 private:
74 SkShader* fShaderA; 76 SkShader* fShaderA;
75 SkShader* fShaderB; 77 SkShader* fShaderB;
76 SkXfermode* fMode; 78 SkXfermode* fMode;
77 79
78 typedef SkShader INHERITED; 80 typedef SkShader INHERITED;
79 }; 81 };
80 82
81 #endif 83 #endif
OLDNEW
« no previous file with comments | « no previous file | include/core/SkShader.h » ('j') | include/core/SkShader.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698