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

Side by Side Diff: content/renderer/skia_benchmarking_extension.cc

Issue 1385663002: [Contextual Search] Add Mojo-enabled API component. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Reset the Wrapper when the Frame goes away. 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 (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 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 "content/renderer/skia_benchmarking_extension.h" 5 #include "content/renderer/skia_benchmarking_extension.h"
6 6
7 #include "base/base64.h" 7 #include "base/base64.h"
8 #include "base/time/time.h" 8 #include "base/time/time.h"
9 #include "base/values.h" 9 #include "base/values.h"
10 #include "cc/base/math_util.h" 10 #include "cc/base/math_util.h"
11 #include "content/public/child/v8_value_converter.h" 11 #include "content/public/child/v8_value_converter.h"
12 #include "content/renderer/chrome_object_extensions_utils.h" 12 #include "content/public/renderer/chrome_object_extensions_utils.h"
13 #include "content/renderer/render_thread_impl.h" 13 #include "content/renderer/render_thread_impl.h"
14 #include "gin/arguments.h" 14 #include "gin/arguments.h"
15 #include "gin/handle.h" 15 #include "gin/handle.h"
16 #include "gin/object_template_builder.h" 16 #include "gin/object_template_builder.h"
17 #include "skia/ext/benchmarking_canvas.h" 17 #include "skia/ext/benchmarking_canvas.h"
18 #include "third_party/WebKit/public/web/WebArrayBuffer.h" 18 #include "third_party/WebKit/public/web/WebArrayBuffer.h"
19 #include "third_party/WebKit/public/web/WebArrayBufferConverter.h" 19 #include "third_party/WebKit/public/web/WebArrayBufferConverter.h"
20 #include "third_party/WebKit/public/web/WebFrame.h" 20 #include "third_party/WebKit/public/web/WebFrame.h"
21 #include "third_party/WebKit/public/web/WebKit.h" 21 #include "third_party/WebKit/public/web/WebKit.h"
22 #include "third_party/skia/include/core/SkCanvas.h" 22 #include "third_party/skia/include/core/SkCanvas.h"
(...skipping 305 matching lines...) Expand 10 before | Expand all | Expand 10 after
328 v8::Local<v8::Object> result = v8::Object::New(isolate); 328 v8::Local<v8::Object> result = v8::Object::New(isolate);
329 result->Set(v8::String::NewFromUtf8(isolate, "width"), 329 result->Set(v8::String::NewFromUtf8(isolate, "width"),
330 v8::Number::New(isolate, picture->layer_rect.width())); 330 v8::Number::New(isolate, picture->layer_rect.width()));
331 result->Set(v8::String::NewFromUtf8(isolate, "height"), 331 result->Set(v8::String::NewFromUtf8(isolate, "height"),
332 v8::Number::New(isolate, picture->layer_rect.height())); 332 v8::Number::New(isolate, picture->layer_rect.height()));
333 333
334 args->Return(result); 334 args->Return(result);
335 } 335 }
336 336
337 } // namespace content 337 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698