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

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

Issue 823133004: Cleanup: Update the path to gfx rect headers. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rect_f.h Created 5 years, 11 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
« no previous file with comments | « content/renderer/sad_plugin.cc ('k') | content/renderer/text_input_client_observer.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 "cc/resources/picture.h" 11 #include "cc/resources/picture.h"
12 #include "content/public/renderer/v8_value_converter.h" 12 #include "content/public/renderer/v8_value_converter.h"
13 #include "content/renderer/chrome_object_extensions_utils.h" 13 #include "content/renderer/chrome_object_extensions_utils.h"
14 #include "content/renderer/render_thread_impl.h" 14 #include "content/renderer/render_thread_impl.h"
15 #include "gin/arguments.h" 15 #include "gin/arguments.h"
16 #include "gin/handle.h" 16 #include "gin/handle.h"
17 #include "gin/object_template_builder.h" 17 #include "gin/object_template_builder.h"
18 #include "skia/ext/benchmarking_canvas.h" 18 #include "skia/ext/benchmarking_canvas.h"
19 #include "third_party/WebKit/public/web/WebArrayBuffer.h" 19 #include "third_party/WebKit/public/web/WebArrayBuffer.h"
20 #include "third_party/WebKit/public/web/WebArrayBufferConverter.h" 20 #include "third_party/WebKit/public/web/WebArrayBufferConverter.h"
21 #include "third_party/WebKit/public/web/WebFrame.h" 21 #include "third_party/WebKit/public/web/WebFrame.h"
22 #include "third_party/WebKit/public/web/WebKit.h" 22 #include "third_party/WebKit/public/web/WebKit.h"
23 #include "third_party/skia/include/core/SkCanvas.h" 23 #include "third_party/skia/include/core/SkCanvas.h"
24 #include "third_party/skia/include/core/SkColorPriv.h" 24 #include "third_party/skia/include/core/SkColorPriv.h"
25 #include "third_party/skia/include/core/SkGraphics.h" 25 #include "third_party/skia/include/core/SkGraphics.h"
26 #include "third_party/skia/include/core/SkStream.h" 26 #include "third_party/skia/include/core/SkStream.h"
27 #include "third_party/skia/src/utils/debugger/SkDebugCanvas.h" 27 #include "third_party/skia/src/utils/debugger/SkDebugCanvas.h"
28 #include "third_party/skia/src/utils/debugger/SkDrawCommand.h" 28 #include "third_party/skia/src/utils/debugger/SkDrawCommand.h"
29 #include "ui/gfx/rect_conversions.h" 29 #include "ui/gfx/geometry/rect_conversions.h"
30 #include "ui/gfx/skia_util.h" 30 #include "ui/gfx/skia_util.h"
31 #include "v8/include/v8.h" 31 #include "v8/include/v8.h"
32 32
33 namespace content { 33 namespace content {
34 34
35 namespace { 35 namespace {
36 36
37 scoped_ptr<base::Value> ParsePictureArg(v8::Isolate* isolate, 37 scoped_ptr<base::Value> ParsePictureArg(v8::Isolate* isolate,
38 v8::Handle<v8::Value> arg) { 38 v8::Handle<v8::Value> arg) {
39 scoped_ptr<content::V8ValueConverter> converter( 39 scoped_ptr<content::V8ValueConverter> converter(
(...skipping 258 matching lines...) Expand 10 before | Expand all | Expand 10 after
298 v8::Handle<v8::Object> result = v8::Object::New(isolate); 298 v8::Handle<v8::Object> result = v8::Object::New(isolate);
299 result->Set(v8::String::NewFromUtf8(isolate, "width"), 299 result->Set(v8::String::NewFromUtf8(isolate, "width"),
300 v8::Number::New(isolate, picture->LayerRect().width())); 300 v8::Number::New(isolate, picture->LayerRect().width()));
301 result->Set(v8::String::NewFromUtf8(isolate, "height"), 301 result->Set(v8::String::NewFromUtf8(isolate, "height"),
302 v8::Number::New(isolate, picture->LayerRect().height())); 302 v8::Number::New(isolate, picture->LayerRect().height()));
303 303
304 args->Return(result); 304 args->Return(result);
305 } 305 }
306 306
307 } // namespace content 307 } // namespace content
OLDNEW
« no previous file with comments | « content/renderer/sad_plugin.cc ('k') | content/renderer/text_input_client_observer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698