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

Unified Diff: cc/layers/solid_color_scrollbar_layer.cc

Issue 2493523003: cc: Remove unused proto conversion code. (Closed)
Patch Set: test Created 4 years, 1 month 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « cc/layers/solid_color_scrollbar_layer.h ('k') | cc/playback/recording_source.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/layers/solid_color_scrollbar_layer.cc
diff --git a/cc/layers/solid_color_scrollbar_layer.cc b/cc/layers/solid_color_scrollbar_layer.cc
index 2e29b97340fcc1686e3abc713edfe4aa7ab23954..5c276b37ea4ddf0c318719df0a7422867d3a2723 100644
--- a/cc/layers/solid_color_scrollbar_layer.cc
+++ b/cc/layers/solid_color_scrollbar_layer.cc
@@ -86,25 +86,6 @@ void SolidColorScrollbarLayer::ToLayerNodeProto(proto::LayerNode* proto) const {
solid_color_scrollbar_layer_inputs_.orientation));
}
-void SolidColorScrollbarLayer::FromLayerNodeProto(
- const proto::LayerNode& proto,
- const LayerIdMap& layer_map,
- LayerTreeHost* layer_tree_host) {
- Layer::FromLayerNodeProto(proto, layer_map, layer_tree_host);
-
- const proto::SolidColorScrollbarLayerProperties& scrollbar =
- proto.solid_scrollbar();
- solid_color_scrollbar_layer_inputs_.scroll_layer_id =
- scrollbar.scroll_layer_id();
- solid_color_scrollbar_layer_inputs_.thumb_thickness =
- scrollbar.thumb_thickness();
- solid_color_scrollbar_layer_inputs_.track_start = scrollbar.track_start();
- solid_color_scrollbar_layer_inputs_.is_left_side_vertical_scrollbar =
- scrollbar.is_left_side_vertical_scrollbar();
- solid_color_scrollbar_layer_inputs_.orientation =
- ScrollbarOrientationFromProto(scrollbar.orientation());
-}
-
void SolidColorScrollbarLayer::SetOpacity(float opacity) {
// The opacity of a solid color scrollbar layer is always 0 on main thread.
DCHECK_EQ(opacity, 0.f);
« no previous file with comments | « cc/layers/solid_color_scrollbar_layer.h ('k') | cc/playback/recording_source.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698