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

Side by Side Diff: cc/trees/proxy_common.cc

Issue 1946403003: Add fixed raster scale use counter histograms. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase+fix Created 4 years, 7 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 | « cc/trees/proxy_common.h ('k') | cc/trees/proxy_impl.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 "cc/trees/proxy_common.h" 5 #include "cc/trees/proxy_common.h"
6 6
7 #include "cc/proto/begin_main_frame_and_commit_state.pb.h" 7 #include "cc/proto/begin_main_frame_and_commit_state.pb.h"
8 #include "cc/trees/layer_tree_host.h" 8 #include "cc/trees/layer_tree_host.h"
9 9
10 namespace cc { 10 namespace cc {
11 11
12 BeginMainFrameAndCommitState::BeginMainFrameAndCommitState() 12 BeginMainFrameAndCommitState::BeginMainFrameAndCommitState() {}
13 : memory_allocation_limit_bytes(0), evicted_ui_resources(false) {}
14 13
15 BeginMainFrameAndCommitState::~BeginMainFrameAndCommitState() {} 14 BeginMainFrameAndCommitState::~BeginMainFrameAndCommitState() {}
16 15
17 void BeginMainFrameAndCommitState::ToProtobuf( 16 void BeginMainFrameAndCommitState::ToProtobuf(
18 proto::BeginMainFrameAndCommitState* proto) const { 17 proto::BeginMainFrameAndCommitState* proto) const {
19 proto->set_begin_frame_id(begin_frame_id); 18 proto->set_begin_frame_id(begin_frame_id);
20 begin_frame_args.ToProtobuf(proto->mutable_begin_frame_args()); 19 begin_frame_args.ToProtobuf(proto->mutable_begin_frame_args());
21 scroll_info->ToProtobuf(proto->mutable_scroll_info()); 20 scroll_info->ToProtobuf(proto->mutable_scroll_info());
22 proto->set_memory_allocation_limit_bytes(memory_allocation_limit_bytes); 21 proto->set_memory_allocation_limit_bytes(memory_allocation_limit_bytes);
23 proto->set_evicted_ui_resources(evicted_ui_resources); 22 proto->set_evicted_ui_resources(evicted_ui_resources);
23 proto->set_has_fixed_raster_scale_blurry_content(
24 has_fixed_raster_scale_blurry_content);
25 proto->set_has_fixed_raster_scale_potential_performance_regression(
26 has_fixed_raster_scale_potential_performance_regression);
24 } 27 }
25 28
26 void BeginMainFrameAndCommitState::FromProtobuf( 29 void BeginMainFrameAndCommitState::FromProtobuf(
27 const proto::BeginMainFrameAndCommitState& proto) { 30 const proto::BeginMainFrameAndCommitState& proto) {
28 begin_frame_id = proto.begin_frame_id(); 31 begin_frame_id = proto.begin_frame_id();
29 begin_frame_args.FromProtobuf(proto.begin_frame_args()); 32 begin_frame_args.FromProtobuf(proto.begin_frame_args());
30 scroll_info.reset(new ScrollAndScaleSet()); 33 scroll_info.reset(new ScrollAndScaleSet());
31 scroll_info->FromProtobuf(proto.scroll_info()); 34 scroll_info->FromProtobuf(proto.scroll_info());
32 memory_allocation_limit_bytes = proto.memory_allocation_limit_bytes(); 35 memory_allocation_limit_bytes = proto.memory_allocation_limit_bytes();
33 evicted_ui_resources = proto.evicted_ui_resources(); 36 evicted_ui_resources = proto.evicted_ui_resources();
37 has_fixed_raster_scale_blurry_content =
38 proto.has_fixed_raster_scale_blurry_content();
39 has_fixed_raster_scale_potential_performance_regression =
40 proto.has_fixed_raster_scale_potential_performance_regression();
34 } 41 }
35 42
36 } // namespace cc 43 } // namespace cc
OLDNEW
« no previous file with comments | « cc/trees/proxy_common.h ('k') | cc/trees/proxy_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698