| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 ExpensiveCanvasHeuristicParameters_h | 5 #ifndef ExpensiveCanvasHeuristicParameters_h |
| 6 #define ExpensiveCanvasHeuristicParameters_h | 6 #define ExpensiveCanvasHeuristicParameters_h |
| 7 | 7 |
| 8 namespace blink { | 8 namespace blink { |
| 9 | 9 |
| 10 namespace ExpensiveCanvasHeuristicParameters { | 10 namespace ExpensiveCanvasHeuristicParameters { |
| (...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 58 | 58 |
| 59 // Pixel count beyond which we should always prefer to use display | 59 // Pixel count beyond which we should always prefer to use display |
| 60 // lists. Rationale: The allocation of large textures for canvas | 60 // lists. Rationale: The allocation of large textures for canvas |
| 61 // tends to starve the compositor, and increase the probability of | 61 // tends to starve the compositor, and increase the probability of |
| 62 // failure of subsequent allocations required for double buffering. | 62 // failure of subsequent allocations required for double buffering. |
| 63 PreferDisplayListOverGpuSizeThreshold = 4096 * 4096, | 63 PreferDisplayListOverGpuSizeThreshold = 4096 * 4096, |
| 64 | 64 |
| 65 // Disable Acceleration heuristic parameters | 65 // Disable Acceleration heuristic parameters |
| 66 //=========================================== | 66 //=========================================== |
| 67 | 67 |
| 68 GetImageDataForcesNoAcceleration = 0, // Disabled for crbug.com/626188 | 68 GetImageDataForcesNoAcceleration = 1, |
| 69 | 69 |
| 70 }; // enum | 70 }; // enum |
| 71 | 71 |
| 72 | 72 |
| 73 // Constants and Coefficients for 2D Canvas Dynamic Rendering Mode Switching | 73 // Constants and Coefficients for 2D Canvas Dynamic Rendering Mode Switching |
| 74 // ========================================================================= | 74 // ========================================================================= |
| 75 | 75 |
| 76 // Approximate relative costs of different types of operations for the | 76 // Approximate relative costs of different types of operations for the |
| 77 // accelerated rendering pipeline and the recording rendering pipeline. | 77 // accelerated rendering pipeline and the recording rendering pipeline. |
| 78 // These costs were estimated experimentally based on the performance | 78 // These costs were estimated experimentally based on the performance |
| (...skipping 29 matching lines...) Expand all Loading... |
| 108 // before the rendering pipeline may be switched. Having this set | 108 // before the rendering pipeline may be switched. Having this set |
| 109 // to more than 1 increases the sample size of usage data before a | 109 // to more than 1 increases the sample size of usage data before a |
| 110 // decision is made, improving the accuracy of heuristics. | 110 // decision is made, improving the accuracy of heuristics. |
| 111 const int MinFramesBeforeSwitch = 3; | 111 const int MinFramesBeforeSwitch = 3; |
| 112 | 112 |
| 113 } // namespace ExpensiveCanvasHeuristicParameters | 113 } // namespace ExpensiveCanvasHeuristicParameters |
| 114 | 114 |
| 115 } // namespace blink | 115 } // namespace blink |
| 116 | 116 |
| 117 #endif | 117 #endif |
| OLD | NEW |