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 | 9 |
10 #include "base/auto_reset.h" | 10 #include "base/auto_reset.h" |
(...skipping 993 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1004 | 1004 |
1005 // Disable antialiasing for 2d canvas if requested on the command line. | 1005 // Disable antialiasing for 2d canvas if requested on the command line. |
1006 settings->setAntialiased2dCanvasEnabled( | 1006 settings->setAntialiased2dCanvasEnabled( |
1007 !prefs.antialiased_2d_canvas_disabled); | 1007 !prefs.antialiased_2d_canvas_disabled); |
1008 | 1008 |
1009 // Set MSAA sample count for 2d canvas if requested on the command line (or | 1009 // Set MSAA sample count for 2d canvas if requested on the command line (or |
1010 // default value if not). | 1010 // default value if not). |
1011 settings->setAccelerated2dCanvasMSAASampleCount( | 1011 settings->setAccelerated2dCanvasMSAASampleCount( |
1012 prefs.accelerated_2d_canvas_msaa_sample_count); | 1012 prefs.accelerated_2d_canvas_msaa_sample_count); |
1013 | 1013 |
1014 // Enable deferred filter rendering if requested on the command line. | |
1015 settings->setDeferredFiltersEnabled(prefs.deferred_filters_enabled); | |
1016 | |
1017 // Enable container culling if requested on the command line. | 1014 // Enable container culling if requested on the command line. |
1018 settings->setContainerCullingEnabled(prefs.container_culling_enabled); | 1015 settings->setContainerCullingEnabled(prefs.container_culling_enabled); |
1019 | 1016 |
1020 WebRuntimeFeatures::enableTextBlobs(prefs.text_blobs_enabled); | 1017 WebRuntimeFeatures::enableTextBlobs(prefs.text_blobs_enabled); |
1021 | 1018 |
1022 settings->setAsynchronousSpellCheckingEnabled( | 1019 settings->setAsynchronousSpellCheckingEnabled( |
1023 prefs.asynchronous_spell_checking_enabled); | 1020 prefs.asynchronous_spell_checking_enabled); |
1024 settings->setUnifiedTextCheckerEnabled(prefs.unified_textchecker_enabled); | 1021 settings->setUnifiedTextCheckerEnabled(prefs.unified_textchecker_enabled); |
1025 | 1022 |
1026 // Tabs to link is not part of the settings. WebCore calls | 1023 // Tabs to link is not part of the settings. WebCore calls |
(...skipping 3163 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4190 std::vector<gfx::Size> sizes; | 4187 std::vector<gfx::Size> sizes; |
4191 ConvertToFaviconSizes(icon_urls[i].sizes(), &sizes); | 4188 ConvertToFaviconSizes(icon_urls[i].sizes(), &sizes); |
4192 if (!url.isEmpty()) | 4189 if (!url.isEmpty()) |
4193 urls.push_back( | 4190 urls.push_back( |
4194 FaviconURL(url, ToFaviconType(icon_urls[i].iconType()), sizes)); | 4191 FaviconURL(url, ToFaviconType(icon_urls[i].iconType()), sizes)); |
4195 } | 4192 } |
4196 SendUpdateFaviconURL(urls); | 4193 SendUpdateFaviconURL(urls); |
4197 } | 4194 } |
4198 | 4195 |
4199 } // namespace content | 4196 } // namespace content |
OLD | NEW |