| 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 #include "content/renderer/render_view_impl.h" | 5 #include "content/renderer/render_view_impl.h" |
| 6 | 6 |
| 7 #include <algorithm> | 7 #include <algorithm> |
| 8 #include <cmath> | 8 #include <cmath> |
| 9 #include <memory> | 9 #include <memory> |
| 10 | 10 |
| (...skipping 956 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 967 settings->setExperimentalWebGLEnabled(prefs.experimental_webgl_enabled); | 967 settings->setExperimentalWebGLEnabled(prefs.experimental_webgl_enabled); |
| 968 | 968 |
| 969 // Enable WebGL errors to the JS console if requested. | 969 // Enable WebGL errors to the JS console if requested. |
| 970 settings->setWebGLErrorsToConsoleEnabled( | 970 settings->setWebGLErrorsToConsoleEnabled( |
| 971 prefs.webgl_errors_to_console_enabled); | 971 prefs.webgl_errors_to_console_enabled); |
| 972 | 972 |
| 973 // Uses the mock theme engine for scrollbars. | 973 // Uses the mock theme engine for scrollbars. |
| 974 settings->setMockScrollbarsEnabled(prefs.mock_scrollbars_enabled); | 974 settings->setMockScrollbarsEnabled(prefs.mock_scrollbars_enabled); |
| 975 | 975 |
| 976 // Enable gpu-accelerated 2d canvas if requested on the command line. | 976 // Enable gpu-accelerated 2d canvas if requested on the command line. |
| 977 settings->setAccelerated2dCanvasEnabled(prefs.accelerated_2d_canvas_enabled); | 977 WebRuntimeFeatures::enableAccelerated2dCanvas( |
| 978 prefs.accelerated_2d_canvas_enabled); |
| 978 | 979 |
| 979 settings->setMinimumAccelerated2dCanvasSize( | 980 settings->setMinimumAccelerated2dCanvasSize( |
| 980 prefs.minimum_accelerated_2d_canvas_size); | 981 prefs.minimum_accelerated_2d_canvas_size); |
| 981 | 982 |
| 982 // Disable antialiasing for 2d canvas if requested on the command line. | 983 // Disable antialiasing for 2d canvas if requested on the command line. |
| 983 settings->setAntialiased2dCanvasEnabled( | 984 settings->setAntialiased2dCanvasEnabled( |
| 984 !prefs.antialiased_2d_canvas_disabled); | 985 !prefs.antialiased_2d_canvas_disabled); |
| 985 WebRuntimeFeatures::forceDisable2dCanvasCopyOnWrite( | 986 WebRuntimeFeatures::forceDisable2dCanvasCopyOnWrite( |
| 986 prefs.disable_2d_canvas_copy_on_write); | 987 prefs.disable_2d_canvas_copy_on_write); |
| 987 | 988 |
| (...skipping 2093 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3081 return render_frame->focused_pepper_plugin(); | 3082 return render_frame->focused_pepper_plugin(); |
| 3082 } | 3083 } |
| 3083 frame = frame->traverseNext(false); | 3084 frame = frame->traverseNext(false); |
| 3084 } | 3085 } |
| 3085 | 3086 |
| 3086 return nullptr; | 3087 return nullptr; |
| 3087 } | 3088 } |
| 3088 #endif | 3089 #endif |
| 3089 | 3090 |
| 3090 } // namespace content | 3091 } // namespace content |
| OLD | NEW |