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

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: rebase Created 5 years 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 191 matching lines...) Expand 10 before | Expand all | Expand 10 after
202 { 202 {
203 ASSERT(blobIndex >= 0); 203 ASSERT(blobIndex >= 0);
204 append(BlobIndexTag); 204 append(BlobIndexTag);
205 doWriteUint32(blobIndex); 205 doWriteUint32(blobIndex);
206 } 206 }
207 207
208 void SerializedScriptValueWriter::writeCompositorProxy(const CompositorProxy& co mpositorProxy) 208 void SerializedScriptValueWriter::writeCompositorProxy(const CompositorProxy& co mpositorProxy)
209 { 209 {
210 append(CompositorProxyTag); 210 append(CompositorProxyTag);
211 doWriteUint64(compositorProxy.elementId()); 211 doWriteUint64(compositorProxy.elementId());
212 doWriteUint32(compositorProxy.bitfieldsSupported()); 212 doWriteUint32(compositorProxy.compositorMutableProperties());
213 } 213 }
214 214
215 void SerializedScriptValueWriter::writeFile(const File& file) 215 void SerializedScriptValueWriter::writeFile(const File& file)
216 { 216 {
217 append(FileTag); 217 append(FileTag);
218 doWriteFile(file); 218 doWriteFile(file);
219 } 219 }
220 220
221 void SerializedScriptValueWriter::writeFileIndex(int blobIndex) 221 void SerializedScriptValueWriter::writeFileIndex(int blobIndex)
222 { 222 {
(...skipping 2002 matching lines...) Expand 10 before | Expand all | Expand 10 after
2225 return false; 2225 return false;
2226 uint32_t objectReference = m_openCompositeReferenceStack[m_openCompositeRefe renceStack.size() - 1]; 2226 uint32_t objectReference = m_openCompositeReferenceStack[m_openCompositeRefe renceStack.size() - 1];
2227 m_openCompositeReferenceStack.shrink(m_openCompositeReferenceStack.size() - 1); 2227 m_openCompositeReferenceStack.shrink(m_openCompositeReferenceStack.size() - 1);
2228 if (objectReference >= m_objectPool.size()) 2228 if (objectReference >= m_objectPool.size())
2229 return false; 2229 return false;
2230 *object = m_objectPool[objectReference]; 2230 *object = m_objectPool[objectReference];
2231 return true; 2231 return true;
2232 } 2232 }
2233 2233
2234 } // namespace blink 2234 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698