| 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 #ifndef CONTENT_RENDERER_SKIA_BENCHMARKING_EXTENSION_H_ | 5 #ifndef CONTENT_RENDERER_SKIA_BENCHMARKING_EXTENSION_H_ | 
| 6 #define CONTENT_RENDERER_SKIA_BENCHMARKING_EXTENSION_H_ | 6 #define CONTENT_RENDERER_SKIA_BENCHMARKING_EXTENSION_H_ | 
| 7 | 7 | 
| 8 #include "base/macros.h" | 8 #include "base/macros.h" | 
| 9 #include "gin/wrappable.h" | 9 #include "gin/wrappable.h" | 
| 10 | 10 | 
| 11 namespace blink { | 11 namespace blink { | 
| 12 class WebFrame; | 12 class WebLocalFrame; | 
| 13 } | 13 } | 
| 14 | 14 | 
| 15 namespace gin { | 15 namespace gin { | 
| 16 class Arguments; | 16 class Arguments; | 
| 17 } | 17 } | 
| 18 | 18 | 
| 19 namespace content { | 19 namespace content { | 
| 20 | 20 | 
| 21 class SkiaBenchmarking : public gin::Wrappable<SkiaBenchmarking> { | 21 class SkiaBenchmarking : public gin::Wrappable<SkiaBenchmarking> { | 
| 22  public: | 22  public: | 
| 23   static gin::WrapperInfo kWrapperInfo; | 23   static gin::WrapperInfo kWrapperInfo; | 
| 24   static void Install(blink::WebFrame* frame); | 24   static void Install(blink::WebLocalFrame* frame); | 
| 25 | 25 | 
| 26   // Wrapper around SkGraphics::Init that can be invoked multiple times. | 26   // Wrapper around SkGraphics::Init that can be invoked multiple times. | 
| 27   static void Initialize(); | 27   static void Initialize(); | 
| 28 | 28 | 
| 29  private: | 29  private: | 
| 30   SkiaBenchmarking(); | 30   SkiaBenchmarking(); | 
| 31   ~SkiaBenchmarking() override; | 31   ~SkiaBenchmarking() override; | 
| 32 | 32 | 
| 33   // gin::Wrappable. | 33   // gin::Wrappable. | 
| 34   gin::ObjectTemplateBuilder GetObjectTemplateBuilder( | 34   gin::ObjectTemplateBuilder GetObjectTemplateBuilder( | 
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 69   // Takes a base64 encoded SKP and returns | 69   // Takes a base64 encoded SKP and returns | 
| 70   // { 'width': {Number}, 'height': {Number} } | 70   // { 'width': {Number}, 'height': {Number} } | 
| 71   void GetInfo(gin::Arguments* args); | 71   void GetInfo(gin::Arguments* args); | 
| 72 | 72 | 
| 73   DISALLOW_COPY_AND_ASSIGN(SkiaBenchmarking); | 73   DISALLOW_COPY_AND_ASSIGN(SkiaBenchmarking); | 
| 74 }; | 74 }; | 
| 75 | 75 | 
| 76 }  // namespace content | 76 }  // namespace content | 
| 77 | 77 | 
| 78 #endif  // CONTENT_RENDERER_SKIA_BENCHMARKING_EXTENSION_H_ | 78 #endif  // CONTENT_RENDERER_SKIA_BENCHMARKING_EXTENSION_H_ | 
| OLD | NEW | 
|---|