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

Unified Diff: cc/debug/layer_tree_debug_state.cc

Issue 2493853002: cc/blimp: Proto Cleanup. (Closed)
Patch Set: Rebase 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/debug/layer_tree_debug_state.h ('k') | cc/debug/layer_tree_debug_state_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/debug/layer_tree_debug_state.cc
diff --git a/cc/debug/layer_tree_debug_state.cc b/cc/debug/layer_tree_debug_state.cc
index 527bd023204ea508dfc96afcda807076385e8f39..ea20e3f5a2432e4c1b940f9a39fd3a6e6e005b69 100644
--- a/cc/debug/layer_tree_debug_state.cc
+++ b/cc/debug/layer_tree_debug_state.cc
@@ -5,7 +5,6 @@
#include "cc/debug/layer_tree_debug_state.h"
#include "base/logging.h"
-#include "cc/proto/layer_tree_debug_state.pb.h"
namespace cc {
@@ -56,44 +55,6 @@ bool LayerTreeDebugState::ShowMemoryStats() const {
return show_fps_counter;
}
-void LayerTreeDebugState::ToProtobuf(proto::LayerTreeDebugState* proto) const {
- proto->set_show_fps_counter(show_fps_counter);
- proto->set_show_debug_borders(show_debug_borders);
- proto->set_show_paint_rects(show_paint_rects);
- proto->set_show_property_changed_rects(show_property_changed_rects);
- proto->set_show_surface_damage_rects(show_surface_damage_rects);
- proto->set_show_screen_space_rects(show_screen_space_rects);
- proto->set_show_touch_event_handler_rects(show_touch_event_handler_rects);
- proto->set_show_wheel_event_handler_rects(show_wheel_event_handler_rects);
- proto->set_show_scroll_event_handler_rects(show_scroll_event_handler_rects);
- proto->set_show_non_fast_scrollable_rects(show_non_fast_scrollable_rects);
- proto->set_show_layer_animation_bounds_rects(
- show_layer_animation_bounds_rects);
- proto->set_slow_down_raster_scale_factor(slow_down_raster_scale_factor);
- proto->set_rasterize_only_visible_content(rasterize_only_visible_content);
- proto->set_show_picture_borders(show_picture_borders);
- proto->set_record_rendering_stats(record_rendering_stats_);
-}
-
-void LayerTreeDebugState::FromProtobuf(
- const proto::LayerTreeDebugState& proto) {
- show_fps_counter = proto.show_fps_counter();
- show_debug_borders = proto.show_debug_borders();
- show_paint_rects = proto.show_paint_rects();
- show_property_changed_rects = proto.show_property_changed_rects();
- show_surface_damage_rects = proto.show_surface_damage_rects();
- show_screen_space_rects = proto.show_screen_space_rects();
- show_touch_event_handler_rects = proto.show_touch_event_handler_rects();
- show_wheel_event_handler_rects = proto.show_wheel_event_handler_rects();
- show_scroll_event_handler_rects = proto.show_scroll_event_handler_rects();
- show_non_fast_scrollable_rects = proto.show_non_fast_scrollable_rects();
- show_layer_animation_bounds_rects = proto.show_layer_animation_bounds_rects();
- slow_down_raster_scale_factor = proto.slow_down_raster_scale_factor();
- rasterize_only_visible_content = proto.rasterize_only_visible_content();
- show_picture_borders = proto.show_picture_borders();
- record_rendering_stats_ = proto.record_rendering_stats();
-}
-
bool LayerTreeDebugState::Equal(const LayerTreeDebugState& a,
const LayerTreeDebugState& b) {
return (
« no previous file with comments | « cc/debug/layer_tree_debug_state.h ('k') | cc/debug/layer_tree_debug_state_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698