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

Side by Side Diff: content/renderer/gpu/gpu_benchmarking_extension.h

Issue 2265483002: chrome.gpuBenchmarking.printPagesToSkPictures (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: respond to Lei Created 4 years, 4 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 | « no previous file | content/renderer/gpu/gpu_benchmarking_extension.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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_GPU_GPU_BENCHMARKING_EXTENSION_H_ 5 #ifndef CONTENT_RENDERER_GPU_GPU_BENCHMARKING_EXTENSION_H_
6 #define CONTENT_RENDERER_GPU_GPU_BENCHMARKING_EXTENSION_H_ 6 #define CONTENT_RENDERER_GPU_GPU_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
(...skipping 24 matching lines...) Expand all
35 ~GpuBenchmarking() override; 35 ~GpuBenchmarking() override;
36 36
37 // gin::Wrappable. 37 // gin::Wrappable.
38 gin::ObjectTemplateBuilder GetObjectTemplateBuilder( 38 gin::ObjectTemplateBuilder GetObjectTemplateBuilder(
39 v8::Isolate* isolate) override; 39 v8::Isolate* isolate) override;
40 40
41 // JavaScript handlers. 41 // JavaScript handlers.
42 void SetNeedsDisplayOnAllLayers(); 42 void SetNeedsDisplayOnAllLayers();
43 void SetRasterizeOnlyVisibleContent(); 43 void SetRasterizeOnlyVisibleContent();
44 void PrintToSkPicture(v8::Isolate* isolate, const std::string& dirname); 44 void PrintToSkPicture(v8::Isolate* isolate, const std::string& dirname);
45 void PrintPagesToSkPictures(v8::Isolate* isolate,
46 const std::string& filename);
45 bool GestureSourceTypeSupported(int gesture_source_type); 47 bool GestureSourceTypeSupported(int gesture_source_type);
46 bool SmoothScrollBy(gin::Arguments* args); 48 bool SmoothScrollBy(gin::Arguments* args);
47 bool SmoothDrag(gin::Arguments* args); 49 bool SmoothDrag(gin::Arguments* args);
48 bool Swipe(gin::Arguments* args); 50 bool Swipe(gin::Arguments* args);
49 bool ScrollBounce(gin::Arguments* args); 51 bool ScrollBounce(gin::Arguments* args);
50 bool PinchBy(gin::Arguments* args); 52 bool PinchBy(gin::Arguments* args);
51 float VisualViewportX(); 53 float VisualViewportX();
52 float VisualViewportY(); 54 float VisualViewportY();
53 float VisualViewportHeight(); 55 float VisualViewportHeight();
54 float VisualViewportWidth(); 56 float VisualViewportWidth();
55 float PageScaleFactor(); 57 float PageScaleFactor();
56 bool Tap(gin::Arguments* args); 58 bool Tap(gin::Arguments* args);
57 void ClearImageCache(); 59 void ClearImageCache();
58 int RunMicroBenchmark(gin::Arguments* args); 60 int RunMicroBenchmark(gin::Arguments* args);
59 bool SendMessageToMicroBenchmark(int id, v8::Local<v8::Object> message); 61 bool SendMessageToMicroBenchmark(int id, v8::Local<v8::Object> message);
60 bool HasGpuChannel(); 62 bool HasGpuChannel();
61 bool HasGpuProcess(); 63 bool HasGpuProcess();
62 void GetGpuDriverBugWorkarounds(gin::Arguments* args); 64 void GetGpuDriverBugWorkarounds(gin::Arguments* args);
63 65
64 DISALLOW_COPY_AND_ASSIGN(GpuBenchmarking); 66 DISALLOW_COPY_AND_ASSIGN(GpuBenchmarking);
65 }; 67 };
66 68
67 } // namespace content 69 } // namespace content
68 70
69 #endif // CONTENT_RENDERER_GPU_GPU_BENCHMARKING_EXTENSION_H_ 71 #endif // CONTENT_RENDERER_GPU_GPU_BENCHMARKING_EXTENSION_H_
OLDNEW
« no previous file with comments | « no previous file | content/renderer/gpu/gpu_benchmarking_extension.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698