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 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
57 //=========================================== | 57 //=========================================== |
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 }; // enum | 65 }; // enum |
66 | 66 |
67 } // ExpensiveCanvasHeuristicParameters | 67 } // namespace ExpensiveCanvasHeuristicParameters |
68 | 68 |
69 } // blink | 69 } // namespace blink |
70 | 70 |
71 #endif | 71 #endif |
OLD | NEW |