Chromium Code Reviews| 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 the callback function of | |
| 55 // swipe will get called only when the GFS is handled by the compositor | |
| 56 // thread. | |
|
tdresser
2017/03/22 19:44:02
Mention the bug here.
sahel
2017/03/22 21:30:28
Done.
| |
| 51 bool Swipe(gin::Arguments* args); | 57 bool Swipe(gin::Arguments* args); |
| 58 | |
| 52 bool ScrollBounce(gin::Arguments* args); | 59 bool ScrollBounce(gin::Arguments* args); |
| 53 bool PinchBy(gin::Arguments* args); | 60 bool PinchBy(gin::Arguments* args); |
| 54 bool Tap(gin::Arguments* args); | 61 bool Tap(gin::Arguments* args); |
| 55 bool PointerActionSequence(gin::Arguments* args); | 62 bool PointerActionSequence(gin::Arguments* args); |
| 56 float VisualViewportX(); | 63 float VisualViewportX(); |
| 57 float VisualViewportY(); | 64 float VisualViewportY(); |
| 58 float VisualViewportHeight(); | 65 float VisualViewportHeight(); |
| 59 float VisualViewportWidth(); | 66 float VisualViewportWidth(); |
| 60 float PageScaleFactor(); | 67 float PageScaleFactor(); |
| 61 void ClearImageCache(); | 68 void ClearImageCache(); |
| 62 int RunMicroBenchmark(gin::Arguments* args); | 69 int RunMicroBenchmark(gin::Arguments* args); |
| 63 bool SendMessageToMicroBenchmark(int id, v8::Local<v8::Object> message); | 70 bool SendMessageToMicroBenchmark(int id, v8::Local<v8::Object> message); |
| 64 bool HasGpuChannel(); | 71 bool HasGpuChannel(); |
| 65 bool HasGpuProcess(); | 72 bool HasGpuProcess(); |
| 66 void GetGpuDriverBugWorkarounds(gin::Arguments* args); | 73 void GetGpuDriverBugWorkarounds(gin::Arguments* args); |
| 67 | 74 |
| 68 DISALLOW_COPY_AND_ASSIGN(GpuBenchmarking); | 75 DISALLOW_COPY_AND_ASSIGN(GpuBenchmarking); |
| 69 }; | 76 }; |
| 70 | 77 |
| 71 } // namespace content | 78 } // namespace content |
| 72 | 79 |
| 73 #endif // CONTENT_RENDERER_GPU_GPU_BENCHMARKING_EXTENSION_H_ | 80 #endif // CONTENT_RENDERER_GPU_GPU_BENCHMARKING_EXTENSION_H_ |
| OLD | NEW |