OLD | NEW |
---|---|
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "config.h" | 5 #include "config.h" |
6 #include "bindings/core/v8/ScriptValueSerializer.h" | 6 #include "bindings/core/v8/ScriptValueSerializer.h" |
7 | 7 |
8 #include "bindings/core/v8/V8ArrayBuffer.h" | 8 #include "bindings/core/v8/V8ArrayBuffer.h" |
9 #include "bindings/core/v8/V8ArrayBufferView.h" | 9 #include "bindings/core/v8/V8ArrayBufferView.h" |
10 #include "bindings/core/v8/V8Blob.h" | 10 #include "bindings/core/v8/V8Blob.h" |
(...skipping 190 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
201 { | 201 { |
202 ASSERT(blobIndex >= 0); | 202 ASSERT(blobIndex >= 0); |
203 append(BlobIndexTag); | 203 append(BlobIndexTag); |
204 doWriteUint32(blobIndex); | 204 doWriteUint32(blobIndex); |
205 } | 205 } |
206 | 206 |
207 void SerializedScriptValueWriter::writeCompositorProxy(const CompositorProxy& co mpositorProxy) | 207 void SerializedScriptValueWriter::writeCompositorProxy(const CompositorProxy& co mpositorProxy) |
208 { | 208 { |
209 append(CompositorProxyTag); | 209 append(CompositorProxyTag); |
210 doWriteUint64(compositorProxy.elementId()); | 210 doWriteUint64(compositorProxy.elementId()); |
211 doWriteUint32(compositorProxy.bitfieldsSupported()); | 211 doWriteUint32(compositorProxy.mutableProperties()); |
chrishtr
2015/11/24 16:22:50
Why mutable?
Ian Vollick
2015/11/25 18:28:44
Actually, this got missed in my rename. It should
| |
212 } | 212 } |
213 | 213 |
214 void SerializedScriptValueWriter::writeFile(const File& file) | 214 void SerializedScriptValueWriter::writeFile(const File& file) |
215 { | 215 { |
216 append(FileTag); | 216 append(FileTag); |
217 doWriteFile(file); | 217 doWriteFile(file); |
218 } | 218 } |
219 | 219 |
220 void SerializedScriptValueWriter::writeFileIndex(int blobIndex) | 220 void SerializedScriptValueWriter::writeFileIndex(int blobIndex) |
221 { | 221 { |
(...skipping 1935 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
2157 return false; | 2157 return false; |
2158 uint32_t objectReference = m_openCompositeReferenceStack[m_openCompositeRefe renceStack.size() - 1]; | 2158 uint32_t objectReference = m_openCompositeReferenceStack[m_openCompositeRefe renceStack.size() - 1]; |
2159 m_openCompositeReferenceStack.shrink(m_openCompositeReferenceStack.size() - 1); | 2159 m_openCompositeReferenceStack.shrink(m_openCompositeReferenceStack.size() - 1); |
2160 if (objectReference >= m_objectPool.size()) | 2160 if (objectReference >= m_objectPool.size()) |
2161 return false; | 2161 return false; |
2162 *object = m_objectPool[objectReference]; | 2162 *object = m_objectPool[objectReference]; |
2163 return true; | 2163 return true; |
2164 } | 2164 } |
2165 | 2165 |
2166 } // namespace blink | 2166 } // namespace blink |
OLD | NEW |