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

Side by Side Diff: Source/core/css/WebKitCSSShaderValue.h

Issue 13973026: remove memoryinstrumentation Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: remove the rest part of MemoryInstrumentation Created 7 years, 8 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 | « Source/core/css/WebKitCSSSVGDocumentValue.cpp ('k') | Source/core/css/WebKitCSSShaderValue.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 * Copyright (C) 2011 Adobe Systems Incorporated. All rights reserved. 2 * Copyright (C) 2011 Adobe Systems Incorporated. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 7 *
8 * 1. Redistributions of source code must retain the above 8 * 1. Redistributions of source code must retain the above
9 * copyright notice, this list of conditions and the following 9 * copyright notice, this list of conditions and the following
10 * disclaimer. 10 * disclaimer.
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
48 void setFormat(const String& format) { m_format = format; } 48 void setFormat(const String& format) { m_format = format; }
49 49
50 KURL completeURL(CachedResourceLoader*) const; 50 KURL completeURL(CachedResourceLoader*) const;
51 StyleCachedShader* cachedShader(CachedResourceLoader*); 51 StyleCachedShader* cachedShader(CachedResourceLoader*);
52 StyleShader* cachedOrPendingShader(); 52 StyleShader* cachedOrPendingShader();
53 53
54 String customCssText() const; 54 String customCssText() const;
55 55
56 bool equals(const WebKitCSSShaderValue&) const; 56 bool equals(const WebKitCSSShaderValue&) const;
57 57
58 void reportDescendantMemoryUsage(MemoryObjectInfo*) const;
59
60 private: 58 private:
61 WebKitCSSShaderValue(const String& url); 59 WebKitCSSShaderValue(const String& url);
62 60
63 String m_url; 61 String m_url;
64 String m_format; 62 String m_format;
65 RefPtr<StyleShader> m_shader; 63 RefPtr<StyleShader> m_shader;
66 bool m_accessedShader; 64 bool m_accessedShader;
67 }; 65 };
68 66
69 // This will catch anyone doing an unnecessary cast. 67 // This will catch anyone doing an unnecessary cast.
70 WebKitCSSShaderValue* toWebKitCSSShaderValue(const WebKitCSSShaderValue*); 68 WebKitCSSShaderValue* toWebKitCSSShaderValue(const WebKitCSSShaderValue*);
71 69
72 inline WebKitCSSShaderValue* toWebKitCSSShaderValue(CSSValue* value) 70 inline WebKitCSSShaderValue* toWebKitCSSShaderValue(CSSValue* value)
73 { 71 {
74 return value->isWebKitCSSShaderValue() ? static_cast<WebKitCSSShaderValue*>( value) : 0; 72 return value->isWebKitCSSShaderValue() ? static_cast<WebKitCSSShaderValue*>( value) : 0;
75 } 73 }
76 74
77 } // namespace WebCore 75 } // namespace WebCore
78 76
79 77
80 #endif // WebKitCSSShaderValue_h 78 #endif // WebKitCSSShaderValue_h
OLDNEW
« no previous file with comments | « Source/core/css/WebKitCSSSVGDocumentValue.cpp ('k') | Source/core/css/WebKitCSSShaderValue.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698