Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(7)

Side by Side Diff: content/renderer/render_view_impl.cc

Issue 650143002: Add flag to enable antialiased clipping in HTML5 canvas (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address code review issues Created 6 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « content/public/common/web_preferences.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 988 matching lines...) Expand 10 before | Expand all | Expand 10 after
999 // Enable gpu-accelerated 2d canvas if requested on the command line. 999 // Enable gpu-accelerated 2d canvas if requested on the command line.
1000 settings->setAccelerated2dCanvasEnabled(prefs.accelerated_2d_canvas_enabled); 1000 settings->setAccelerated2dCanvasEnabled(prefs.accelerated_2d_canvas_enabled);
1001 1001
1002 settings->setMinimumAccelerated2dCanvasSize( 1002 settings->setMinimumAccelerated2dCanvasSize(
1003 prefs.minimum_accelerated_2d_canvas_size); 1003 prefs.minimum_accelerated_2d_canvas_size);
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 // Enabled antialiasing of clips for 2d canvas if requested on the command
1010 // line.
1011 settings->setAntialiasedClips2dCanvasEnabled(
1012 prefs.antialiased_clips_2d_canvas_enabled);
1013
1009 // Set MSAA sample count for 2d canvas if requested on the command line (or 1014 // Set MSAA sample count for 2d canvas if requested on the command line (or
1010 // default value if not). 1015 // default value if not).
1011 settings->setAccelerated2dCanvasMSAASampleCount( 1016 settings->setAccelerated2dCanvasMSAASampleCount(
1012 prefs.accelerated_2d_canvas_msaa_sample_count); 1017 prefs.accelerated_2d_canvas_msaa_sample_count);
1013 1018
1014 // Enable container culling if requested on the command line. 1019 // Enable container culling if requested on the command line.
1015 settings->setContainerCullingEnabled(prefs.container_culling_enabled); 1020 settings->setContainerCullingEnabled(prefs.container_culling_enabled);
1016 1021
1017 WebRuntimeFeatures::enableTextBlobs(prefs.text_blobs_enabled); 1022 WebRuntimeFeatures::enableTextBlobs(prefs.text_blobs_enabled);
1018 1023
(...skipping 3168 matching lines...) Expand 10 before | Expand all | Expand 10 after
4187 std::vector<gfx::Size> sizes; 4192 std::vector<gfx::Size> sizes;
4188 ConvertToFaviconSizes(icon_urls[i].sizes(), &sizes); 4193 ConvertToFaviconSizes(icon_urls[i].sizes(), &sizes);
4189 if (!url.isEmpty()) 4194 if (!url.isEmpty())
4190 urls.push_back( 4195 urls.push_back(
4191 FaviconURL(url, ToFaviconType(icon_urls[i].iconType()), sizes)); 4196 FaviconURL(url, ToFaviconType(icon_urls[i].iconType()), sizes));
4192 } 4197 }
4193 SendUpdateFaviconURL(urls); 4198 SendUpdateFaviconURL(urls);
4194 } 4199 }
4195 4200
4196 } // namespace content 4201 } // namespace content
OLDNEW
« no previous file with comments | « content/public/common/web_preferences.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698