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

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

Issue 2359843003: Turning on clip anti-aliasing by default in Chrome. (Closed)
Patch Set: Addressing comments. Created 4 years, 3 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
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 #include <memory> 9 #include <memory>
10 10
(...skipping 999 matching lines...) Expand 10 before | Expand all | Expand 10 after
1010 1010
1011 settings->setMinimumAccelerated2dCanvasSize( 1011 settings->setMinimumAccelerated2dCanvasSize(
1012 prefs.minimum_accelerated_2d_canvas_size); 1012 prefs.minimum_accelerated_2d_canvas_size);
1013 1013
1014 // Disable antialiasing for 2d canvas if requested on the command line. 1014 // Disable antialiasing for 2d canvas if requested on the command line.
1015 settings->setAntialiased2dCanvasEnabled( 1015 settings->setAntialiased2dCanvasEnabled(
1016 !prefs.antialiased_2d_canvas_disabled); 1016 !prefs.antialiased_2d_canvas_disabled);
1017 WebRuntimeFeatures::forceDisable2dCanvasCopyOnWrite( 1017 WebRuntimeFeatures::forceDisable2dCanvasCopyOnWrite(
1018 prefs.disable_2d_canvas_copy_on_write); 1018 prefs.disable_2d_canvas_copy_on_write);
1019 1019
1020 // Enabled antialiasing of clips for 2d canvas if requested on the command 1020 // Disable antialiasing of clips for 2d canvas if requested on the command
1021 // line. 1021 // line.
1022 settings->setAntialiasedClips2dCanvasEnabled( 1022 settings->setAntialiasedClips2dCanvasEnabled(
1023 prefs.antialiased_clips_2d_canvas_enabled); 1023 prefs.antialiased_clips_2d_canvas_enabled);
1024 1024
1025 // Set MSAA sample count for 2d canvas if requested on the command line (or 1025 // Set MSAA sample count for 2d canvas if requested on the command line (or
1026 // default value if not). 1026 // default value if not).
1027 settings->setAccelerated2dCanvasMSAASampleCount( 1027 settings->setAccelerated2dCanvasMSAASampleCount(
1028 prefs.accelerated_2d_canvas_msaa_sample_count); 1028 prefs.accelerated_2d_canvas_msaa_sample_count);
1029 1029
1030 // Tabs to link is not part of the settings. WebCore calls 1030 // Tabs to link is not part of the settings. WebCore calls
(...skipping 2002 matching lines...) Expand 10 before | Expand all | Expand 10 after
3033 return render_frame->focused_pepper_plugin(); 3033 return render_frame->focused_pepper_plugin();
3034 } 3034 }
3035 frame = frame->traverseNext(false); 3035 frame = frame->traverseNext(false);
3036 } 3036 }
3037 3037
3038 return nullptr; 3038 return nullptr;
3039 } 3039 }
3040 #endif 3040 #endif
3041 3041
3042 } // namespace content 3042 } // namespace content
OLDNEW
« no previous file with comments | « content/public/common/web_preferences.cc ('k') | third_party/WebKit/LayoutTests/fast/canvas/canvas-2d-clip-anti-aliasing.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698