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

Side by Side Diff: content/renderer/gpu/render_widget_compositor.cc

Issue 2691583003: Removed fields from Selection classes (Closed)
Patch Set: Forgot to remove fields from test Created 3 years, 10 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) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 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/gpu/render_widget_compositor.h" 5 #include "content/renderer/gpu/render_widget_compositor.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 8
9 #include <cmath> 9 #include <cmath>
10 #include <limits> 10 #include <limits>
(...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after
127 cc_bound.layer_id = web_bound.layerId; 127 cc_bound.layer_id = web_bound.layerId;
128 cc_bound.edge_top = gfx::Point(web_bound.edgeTopInLayer); 128 cc_bound.edge_top = gfx::Point(web_bound.edgeTopInLayer);
129 cc_bound.edge_bottom = gfx::Point(web_bound.edgeBottomInLayer); 129 cc_bound.edge_bottom = gfx::Point(web_bound.edgeBottomInLayer);
130 return cc_bound; 130 return cc_bound;
131 } 131 }
132 132
133 cc::LayerSelection ConvertWebSelection(const WebSelection& web_selection) { 133 cc::LayerSelection ConvertWebSelection(const WebSelection& web_selection) {
134 cc::LayerSelection cc_selection; 134 cc::LayerSelection cc_selection;
135 cc_selection.start = ConvertWebSelectionBound(web_selection, true); 135 cc_selection.start = ConvertWebSelectionBound(web_selection, true);
136 cc_selection.end = ConvertWebSelectionBound(web_selection, false); 136 cc_selection.end = ConvertWebSelectionBound(web_selection, false);
137 cc_selection.is_editable = web_selection.isEditable();
138 cc_selection.is_empty_text_form_control =
139 web_selection.isEmptyTextFormControl();
140 return cc_selection; 137 return cc_selection;
141 } 138 }
142 139
143 gfx::Size CalculateDefaultTileSize(float initial_device_scale_factor, 140 gfx::Size CalculateDefaultTileSize(float initial_device_scale_factor,
144 const ScreenInfo& screen_info) { 141 const ScreenInfo& screen_info) {
145 int default_tile_size = 256; 142 int default_tile_size = 256;
146 #if defined(OS_ANDROID) 143 #if defined(OS_ANDROID)
147 const gfx::Size screen_size = gfx::ScaleToFlooredSize( 144 const gfx::Size screen_size = gfx::ScaleToFlooredSize(
148 screen_info.rect.size(), screen_info.device_scale_factor); 145 screen_info.rect.size(), screen_info.device_scale_factor);
149 int display_width = screen_size.width(); 146 int display_width = screen_size.width();
(...skipping 980 matching lines...) Expand 10 before | Expand all | Expand 10 after
1130 void RenderWidgetCompositor::SetDeviceColorSpace( 1127 void RenderWidgetCompositor::SetDeviceColorSpace(
1131 const gfx::ColorSpace& color_space) { 1128 const gfx::ColorSpace& color_space) {
1132 layer_tree_host_->SetDeviceColorSpace(color_space); 1129 layer_tree_host_->SetDeviceColorSpace(color_space);
1133 } 1130 }
1134 1131
1135 void RenderWidgetCompositor::SetIsForOopif(bool is_for_oopif) { 1132 void RenderWidgetCompositor::SetIsForOopif(bool is_for_oopif) {
1136 is_for_oopif_ = is_for_oopif; 1133 is_for_oopif_ = is_for_oopif;
1137 } 1134 }
1138 1135
1139 } // namespace content 1136 } // namespace content
OLDNEW
« no previous file with comments | « cc/trees/layer_tree_impl_unittest.cc ('k') | third_party/WebKit/Source/core/frame/FrameView.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698