OLD | NEW |
---|---|
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 30 matching lines...) Expand all Loading... | |
41 void SetNeedsDisplayOnAllLayers(); | 41 void SetNeedsDisplayOnAllLayers(); |
42 void SetRasterizeOnlyVisibleContent(); | 42 void SetRasterizeOnlyVisibleContent(); |
43 void PrintToSkPicture(v8::Isolate* isolate, const std::string& dirname); | 43 void PrintToSkPicture(v8::Isolate* isolate, const std::string& dirname); |
44 void PrintPagesToSkPictures(v8::Isolate* isolate, | 44 void PrintPagesToSkPictures(v8::Isolate* isolate, |
45 const std::string& filename); | 45 const std::string& filename); |
46 void PrintPagesToXPS(v8::Isolate* isolate, | 46 void PrintPagesToXPS(v8::Isolate* isolate, |
47 const std::string& filename); | 47 const std::string& filename); |
48 bool GestureSourceTypeSupported(int gesture_source_type); | 48 bool GestureSourceTypeSupported(int gesture_source_type); |
49 bool SmoothScrollBy(gin::Arguments* args); | 49 bool SmoothScrollBy(gin::Arguments* args); |
50 bool SmoothDrag(gin::Arguments* args); | 50 bool SmoothDrag(gin::Arguments* args); |
51 | |
52 // This function generates a scroll followed by a fling. The default input | |
53 // source is touch; Source, velocity_x, and velocity_y are extra args that | |
54 // are necessary for a touchpad fling. Note that swipe only works when | |
55 // threaded compositing is enabled. | |
bokan
2017/03/10 14:41:57
Is this because of a difference in how main thread
sahel
2017/03/10 21:51:41
I tried to debug it to see what the cause is. It s
bokan
2017/03/13 13:43:13
Acknowledged.
| |
51 bool Swipe(gin::Arguments* args); | 56 bool Swipe(gin::Arguments* args); |
57 | |
52 bool ScrollBounce(gin::Arguments* args); | 58 bool ScrollBounce(gin::Arguments* args); |
53 bool PinchBy(gin::Arguments* args); | 59 bool PinchBy(gin::Arguments* args); |
54 bool Tap(gin::Arguments* args); | 60 bool Tap(gin::Arguments* args); |
55 bool PointerActionSequence(gin::Arguments* args); | 61 bool PointerActionSequence(gin::Arguments* args); |
56 float VisualViewportX(); | 62 float VisualViewportX(); |
57 float VisualViewportY(); | 63 float VisualViewportY(); |
58 float VisualViewportHeight(); | 64 float VisualViewportHeight(); |
59 float VisualViewportWidth(); | 65 float VisualViewportWidth(); |
60 float PageScaleFactor(); | 66 float PageScaleFactor(); |
61 void ClearImageCache(); | 67 void ClearImageCache(); |
62 int RunMicroBenchmark(gin::Arguments* args); | 68 int RunMicroBenchmark(gin::Arguments* args); |
63 bool SendMessageToMicroBenchmark(int id, v8::Local<v8::Object> message); | 69 bool SendMessageToMicroBenchmark(int id, v8::Local<v8::Object> message); |
64 bool HasGpuChannel(); | 70 bool HasGpuChannel(); |
65 bool HasGpuProcess(); | 71 bool HasGpuProcess(); |
66 void GetGpuDriverBugWorkarounds(gin::Arguments* args); | 72 void GetGpuDriverBugWorkarounds(gin::Arguments* args); |
67 | 73 |
68 DISALLOW_COPY_AND_ASSIGN(GpuBenchmarking); | 74 DISALLOW_COPY_AND_ASSIGN(GpuBenchmarking); |
69 }; | 75 }; |
70 | 76 |
71 } // namespace content | 77 } // namespace content |
72 | 78 |
73 #endif // CONTENT_RENDERER_GPU_GPU_BENCHMARKING_EXTENSION_H_ | 79 #endif // CONTENT_RENDERER_GPU_GPU_BENCHMARKING_EXTENSION_H_ |
OLD | NEW |