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

Side by Side Diff: third_party/WebKit/Source/bindings/core/v8/SerializedScriptValue.h

Issue 1917733004: Reland of: Make OffscreenCanvas Transferable (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: address all comments Created 4 years, 7 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2009, 2010 Google Inc. All rights reserved. 2 * Copyright (C) 2009, 2010 Google Inc. 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 are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after
109 typedef Vector<RefPtr<StaticBitmapImage>, 1> ImageBitmapContentsArray; 109 typedef Vector<RefPtr<StaticBitmapImage>, 1> ImageBitmapContentsArray;
110 110
111 SerializedScriptValue(); 111 SerializedScriptValue();
112 explicit SerializedScriptValue(const String& wireData); 112 explicit SerializedScriptValue(const String& wireData);
113 113
114 BlobDataHandleMap& blobDataHandles() { return m_blobDataHandles; } 114 BlobDataHandleMap& blobDataHandles() { return m_blobDataHandles; }
115 String& data() { return m_data; } 115 String& data() { return m_data; }
116 void setData(const String& data) { m_data = data; } 116 void setData(const String& data) { m_data = data; }
117 void transferArrayBuffers(v8::Isolate*, const ArrayBufferArray&, ExceptionSt ate&); 117 void transferArrayBuffers(v8::Isolate*, const ArrayBufferArray&, ExceptionSt ate&);
118 void transferImageBitmaps(v8::Isolate*, const ImageBitmapArray&, ExceptionSt ate&); 118 void transferImageBitmaps(v8::Isolate*, const ImageBitmapArray&, ExceptionSt ate&);
119 void transferOffscreenCanvas(v8::Isolate*, const OffscreenCanvasArray&, Exce ptionState&);
119 ArrayBufferContentsArray* getArrayBufferContentsArray() { return m_arrayBuff erContentsArray.get(); } 120 ArrayBufferContentsArray* getArrayBufferContentsArray() { return m_arrayBuff erContentsArray.get(); }
120 ImageBitmapContentsArray* getImageBitmapContentsArray() { return m_imageBitm apContentsArray.get(); } 121 ImageBitmapContentsArray* getImageBitmapContentsArray() { return m_imageBitm apContentsArray.get(); }
121 122
122 private: 123 private:
123 String m_data; 124 String m_data;
124 OwnPtr<ArrayBufferContentsArray> m_arrayBufferContentsArray; 125 OwnPtr<ArrayBufferContentsArray> m_arrayBufferContentsArray;
125 OwnPtr<ImageBitmapContentsArray> m_imageBitmapContentsArray; 126 OwnPtr<ImageBitmapContentsArray> m_imageBitmapContentsArray;
126 BlobDataHandleMap m_blobDataHandles; 127 BlobDataHandleMap m_blobDataHandles;
127 intptr_t m_externallyAllocatedMemory; 128 intptr_t m_externallyAllocatedMemory;
128 129
129 friend class SerializedScriptValueFactory; 130 friend class SerializedScriptValueFactory;
130 }; 131 };
131 132
132 } // namespace blink 133 } // namespace blink
133 134
134 #endif // SerializedScriptValue_h 135 #endif // SerializedScriptValue_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698