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

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

Issue 2413753003: chrome.gpuBenchmarking.printPagesToXPS (Closed)
Patch Set: rebase Created 4 years, 1 month 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 26 matching lines...) Expand all
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, 45 void PrintPagesToSkPictures(v8::Isolate* isolate,
46 const std::string& filename); 46 const std::string& filename);
47 void PrintPagesToXPS(v8::Isolate* isolate,
Stephen White 2016/11/03 18:50:17 Not really new to this patch, but I'm having troub
48 const std::string& filename);
47 bool GestureSourceTypeSupported(int gesture_source_type); 49 bool GestureSourceTypeSupported(int gesture_source_type);
48 bool SmoothScrollBy(gin::Arguments* args); 50 bool SmoothScrollBy(gin::Arguments* args);
49 bool SmoothDrag(gin::Arguments* args); 51 bool SmoothDrag(gin::Arguments* args);
50 bool Swipe(gin::Arguments* args); 52 bool Swipe(gin::Arguments* args);
51 bool ScrollBounce(gin::Arguments* args); 53 bool ScrollBounce(gin::Arguments* args);
52 bool PinchBy(gin::Arguments* args); 54 bool PinchBy(gin::Arguments* args);
53 float VisualViewportX(); 55 float VisualViewportX();
54 float VisualViewportY(); 56 float VisualViewportY();
55 float VisualViewportHeight(); 57 float VisualViewportHeight();
56 float VisualViewportWidth(); 58 float VisualViewportWidth();
57 float PageScaleFactor(); 59 float PageScaleFactor();
58 bool Tap(gin::Arguments* args); 60 bool Tap(gin::Arguments* args);
59 void ClearImageCache(); 61 void ClearImageCache();
60 int RunMicroBenchmark(gin::Arguments* args); 62 int RunMicroBenchmark(gin::Arguments* args);
61 bool SendMessageToMicroBenchmark(int id, v8::Local<v8::Object> message); 63 bool SendMessageToMicroBenchmark(int id, v8::Local<v8::Object> message);
62 bool HasGpuChannel(); 64 bool HasGpuChannel();
63 bool HasGpuProcess(); 65 bool HasGpuProcess();
64 void GetGpuDriverBugWorkarounds(gin::Arguments* args); 66 void GetGpuDriverBugWorkarounds(gin::Arguments* args);
65 67
66 DISALLOW_COPY_AND_ASSIGN(GpuBenchmarking); 68 DISALLOW_COPY_AND_ASSIGN(GpuBenchmarking);
67 }; 69 };
68 70
69 } // namespace content 71 } // namespace content
70 72
71 #endif // CONTENT_RENDERER_GPU_GPU_BENCHMARKING_EXTENSION_H_ 73 #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