| OLD | NEW |
| 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/values.h" | 7 #include "base/values.h" |
| 8 #include "cc/base/math_util.h" | 8 #include "cc/base/math_util.h" |
| 9 #include "cc/resources/picture.h" | 9 #include "cc/resources/picture.h" |
| 10 #include "content/public/renderer/v8_value_converter.h" | 10 #include "content/public/renderer/v8_value_converter.h" |
| 11 #include "third_party/WebKit/public/web/WebArrayBuffer.h" | 11 #include "third_party/WebKit/public/platform/WebArrayBuffer.h" |
| 12 #include "third_party/WebKit/public/web/WebFrame.h" | 12 #include "third_party/WebKit/public/web/WebFrame.h" |
| 13 #include "third_party/skia/include/core/SkCanvas.h" | 13 #include "third_party/skia/include/core/SkCanvas.h" |
| 14 #include "third_party/skia/include/core/SkColorPriv.h" | 14 #include "third_party/skia/include/core/SkColorPriv.h" |
| 15 #include "third_party/skia/include/core/SkGraphics.h" | 15 #include "third_party/skia/include/core/SkGraphics.h" |
| 16 #include "third_party/skia/src/utils/debugger/SkDebugCanvas.h" | 16 #include "third_party/skia/src/utils/debugger/SkDebugCanvas.h" |
| 17 #include "third_party/skia/src/utils/debugger/SkDrawCommand.h" | 17 #include "third_party/skia/src/utils/debugger/SkDrawCommand.h" |
| 18 #include "ui/gfx/rect_conversions.h" | 18 #include "ui/gfx/rect_conversions.h" |
| 19 #include "ui/gfx/skia_util.h" | 19 #include "ui/gfx/skia_util.h" |
| 20 #include "v8/include/v8.h" | 20 #include "v8/include/v8.h" |
| 21 | 21 |
| (...skipping 212 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 234 // FIXME: remove this after Skia updates SkGraphics::Init() to be | 234 // FIXME: remove this after Skia updates SkGraphics::Init() to be |
| 235 // thread-safe and idempotent. | 235 // thread-safe and idempotent. |
| 236 static bool skia_initialized = false; | 236 static bool skia_initialized = false; |
| 237 if (!skia_initialized) { | 237 if (!skia_initialized) { |
| 238 SkGraphics::Init(); | 238 SkGraphics::Init(); |
| 239 skia_initialized = true; | 239 skia_initialized = true; |
| 240 } | 240 } |
| 241 } | 241 } |
| 242 | 242 |
| 243 } // namespace content | 243 } // namespace content |
| OLD | NEW |