| OLD | NEW |
| 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 11 matching lines...) Expand all Loading... |
| 22 * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR | 22 * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR |
| 23 * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY | 23 * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY |
| 24 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR | 24 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR |
| 25 * TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF | 25 * TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF |
| 26 * THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF | 26 * THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF |
| 27 * SUCH DAMAGE. | 27 * SUCH DAMAGE. |
| 28 */ | 28 */ |
| 29 | 29 |
| 30 #include "config.h" | 30 #include "config.h" |
| 31 | 31 |
| 32 #if ENABLE(CSS_SHADERS) | |
| 33 | |
| 34 #include "CachedShader.h" | 32 #include "CachedShader.h" |
| 35 #include "ResourceBuffer.h" | 33 #include "ResourceBuffer.h" |
| 36 #include "TextResourceDecoder.h" | 34 #include "TextResourceDecoder.h" |
| 37 #include "WebCoreMemoryInstrumentation.h" | 35 #include "WebCoreMemoryInstrumentation.h" |
| 38 #include <wtf/text/StringBuilder.h> | 36 #include <wtf/text/StringBuilder.h> |
| 39 | 37 |
| 40 namespace WebCore { | 38 namespace WebCore { |
| 41 | 39 |
| 42 CachedShader::CachedShader(const ResourceRequest& resourceRequest) | 40 CachedShader::CachedShader(const ResourceRequest& resourceRequest) |
| 43 : CachedResource(resourceRequest, ShaderResource) | 41 : CachedResource(resourceRequest, ShaderResource) |
| (...skipping 27 matching lines...) Expand all Loading... |
| 71 void CachedShader::reportMemoryUsage(MemoryObjectInfo* memoryObjectInfo) const | 69 void CachedShader::reportMemoryUsage(MemoryObjectInfo* memoryObjectInfo) const |
| 72 { | 70 { |
| 73 MemoryClassInfo info(memoryObjectInfo, this, WebCoreMemoryTypes::CachedResou
rceShader); | 71 MemoryClassInfo info(memoryObjectInfo, this, WebCoreMemoryTypes::CachedResou
rceShader); |
| 74 CachedResource::reportMemoryUsage(memoryObjectInfo); | 72 CachedResource::reportMemoryUsage(memoryObjectInfo); |
| 75 info.addMember(m_decoder, "decoder"); | 73 info.addMember(m_decoder, "decoder"); |
| 76 info.addMember(m_shaderString, "shaderString"); | 74 info.addMember(m_shaderString, "shaderString"); |
| 77 } | 75 } |
| 78 | 76 |
| 79 } // namespace WebCore | 77 } // namespace WebCore |
| 80 | 78 |
| 81 #endif // ENABLE(CSS_SHADERS) | |
| OLD | NEW |