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

Unified Diff: content/renderer/pepper/v8_var_converter.cc

Issue 149133005: Update callers of WebArrayBuffer/V8 conversions to use WebArrayBufferConverter (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 10 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | content/renderer/skia_benchmarking_extension.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/pepper/v8_var_converter.cc
diff --git a/content/renderer/pepper/v8_var_converter.cc b/content/renderer/pepper/v8_var_converter.cc
index f2d7271a036a61ef0edaedf82fcd25b63ff426da..2ac797958ed7a25d8c1d898047b56876ae18738c 100644
--- a/content/renderer/pepper/v8_var_converter.cc
+++ b/content/renderer/pepper/v8_var_converter.cc
@@ -21,6 +21,7 @@
#include "ppapi/shared_impl/var.h"
#include "ppapi/shared_impl/var_tracker.h"
#include "third_party/WebKit/public/platform/WebArrayBuffer.h"
+#include "third_party/WebKit/public/web/WebArrayBufferConverter.h"
using ppapi::ArrayBufferVar;
using ppapi::ArrayVar;
@@ -143,7 +144,8 @@ bool GetOrCreateV8Value(v8::Isolate* isolate,
}
HostArrayBufferVar* host_buffer =
static_cast<HostArrayBufferVar*>(buffer);
- *result = host_buffer->webkit_buffer().toV8Value();
+ *result = blink::WebArrayBufferConverter::toV8Value(
+ &host_buffer->webkit_buffer());
break;
}
case PP_VARTYPE_ARRAY:
@@ -213,7 +215,7 @@ bool GetOrCreateVar(v8::Handle<v8::Value> val,
*result = (new ArrayVar())->GetPPVar();
} else if (val->IsObject()) {
scoped_ptr<blink::WebArrayBuffer> web_array_buffer(
- blink::WebArrayBuffer::createFromV8Value(val));
+ blink::WebArrayBufferConverter::createFromV8Value(val));
if (web_array_buffer.get()) {
scoped_refptr<HostArrayBufferVar> buffer_var(new HostArrayBufferVar(
*web_array_buffer));
« no previous file with comments | « no previous file | content/renderer/skia_benchmarking_extension.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698