summaryrefslogtreecommitdiffstats
path: root/content/renderer/skia_benchmarking_extension.cc
diff options
context:
space:
mode:
Diffstat (limited to 'content/renderer/skia_benchmarking_extension.cc')
-rw-r--r--content/renderer/skia_benchmarking_extension.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/content/renderer/skia_benchmarking_extension.cc b/content/renderer/skia_benchmarking_extension.cc
index 7e8979a..7c957a5 100644
--- a/content/renderer/skia_benchmarking_extension.cc
+++ b/content/renderer/skia_benchmarking_extension.cc
@@ -16,6 +16,7 @@
#include "gin/object_template_builder.h"
#include "skia/ext/benchmarking_canvas.h"
#include "third_party/WebKit/public/platform/WebArrayBuffer.h"
+#include "third_party/WebKit/public/web/WebArrayBufferConverter.h"
#include "third_party/WebKit/public/web/WebFrame.h"
#include "third_party/WebKit/public/web/WebKit.h"
#include "third_party/skia/include/core/SkBitmapDevice.h"
@@ -199,7 +200,8 @@ void SkiaBenchmarking::Rasterize(gin::Arguments* args) {
v8::Number::New(isolate, snapped_clip.width()));
result->Set(v8::String::NewFromUtf8(isolate, "height"),
v8::Number::New(isolate, snapped_clip.height()));
- result->Set(v8::String::NewFromUtf8(isolate, "data"), buffer.toV8Value());
+ result->Set(v8::String::NewFromUtf8(isolate, "data"),
+ blink::WebArrayBufferConverter::toV8Value(&buffer));
args->Return(result);
}