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

Side by Side Diff: third_party/WebKit/Source/bindings/core/v8/ScriptValueSerializer.cpp

Issue 1405993008: compositor-worker: plumb element id and mutable properties (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: s/WebMutable/WebCompositorMutable/g Created 5 years, 1 month 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
OLDNEW
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
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698