| 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 997 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1008 | 1008 |
| 1009 settings->setMinimumAccelerated2dCanvasSize( | 1009 settings->setMinimumAccelerated2dCanvasSize( |
| 1010 prefs.minimum_accelerated_2d_canvas_size); | 1010 prefs.minimum_accelerated_2d_canvas_size); |
| 1011 | 1011 |
| 1012 // Disable antialiasing for 2d canvas if requested on the command line. | 1012 // Disable antialiasing for 2d canvas if requested on the command line. |
| 1013 settings->setAntialiased2dCanvasEnabled( | 1013 settings->setAntialiased2dCanvasEnabled( |
| 1014 !prefs.antialiased_2d_canvas_disabled); | 1014 !prefs.antialiased_2d_canvas_disabled); |
| 1015 WebRuntimeFeatures::forceDisable2dCanvasCopyOnWrite( | 1015 WebRuntimeFeatures::forceDisable2dCanvasCopyOnWrite( |
| 1016 prefs.disable_2d_canvas_copy_on_write); | 1016 prefs.disable_2d_canvas_copy_on_write); |
| 1017 | 1017 |
| 1018 // Enabled antialiasing of clips for 2d canvas if requested on the command | 1018 // Disable antialiasing of clips for 2d canvas if requested on the command |
| 1019 // line. | 1019 // line. |
| 1020 settings->setAntialiasedClips2dCanvasEnabled( | 1020 settings->setAntialiasedClips2dCanvasDisabled( |
| 1021 prefs.antialiased_clips_2d_canvas_enabled); | 1021 prefs.antialiased_clips_2d_canvas_disabled); |
| 1022 | 1022 |
| 1023 // Set MSAA sample count for 2d canvas if requested on the command line (or | 1023 // Set MSAA sample count for 2d canvas if requested on the command line (or |
| 1024 // default value if not). | 1024 // default value if not). |
| 1025 settings->setAccelerated2dCanvasMSAASampleCount( | 1025 settings->setAccelerated2dCanvasMSAASampleCount( |
| 1026 prefs.accelerated_2d_canvas_msaa_sample_count); | 1026 prefs.accelerated_2d_canvas_msaa_sample_count); |
| 1027 | 1027 |
| 1028 // Tabs to link is not part of the settings. WebCore calls | 1028 // Tabs to link is not part of the settings. WebCore calls |
| 1029 // ChromeClient::tabsToLinks which is part of the glue code. | 1029 // ChromeClient::tabsToLinks which is part of the glue code. |
| 1030 web_view->setTabsToLinks(prefs.tabs_to_links); | 1030 web_view->setTabsToLinks(prefs.tabs_to_links); |
| 1031 | 1031 |
| (...skipping 1990 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3022 return render_frame->focused_pepper_plugin(); | 3022 return render_frame->focused_pepper_plugin(); |
| 3023 } | 3023 } |
| 3024 frame = frame->traverseNext(false); | 3024 frame = frame->traverseNext(false); |
| 3025 } | 3025 } |
| 3026 | 3026 |
| 3027 return nullptr; | 3027 return nullptr; |
| 3028 } | 3028 } |
| 3029 #endif | 3029 #endif |
| 3030 | 3030 |
| 3031 } // namespace content | 3031 } // namespace content |
| OLD | NEW |