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

Side by Side Diff: cc/playback/display_item_list_settings.cc

Issue 1407793002: Add protobuf serialization to DisplayItemList (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@blimp_display2
Patch Set: Comments are hard Created 5 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 unified diff | Download patch
« no previous file with comments | « cc/playback/display_item_list_settings.h ('k') | cc/playback/display_item_list_unittest.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/playback/display_item_list_settings.h" 5 #include "cc/playback/display_item_list_settings.h"
6 #include "cc/proto/display_item.pb.h"
6 7
7 namespace cc { 8 namespace cc {
8 9
9 DisplayItemListSettings::DisplayItemListSettings() 10 DisplayItemListSettings::DisplayItemListSettings()
10 : use_cached_picture(false) {} 11 : use_cached_picture(false) {}
11 12
13 DisplayItemListSettings::DisplayItemListSettings(
14 const proto::DisplayItemListSettings& proto)
15 : use_cached_picture(proto.use_cached_picture()) {}
16
12 DisplayItemListSettings::~DisplayItemListSettings() { 17 DisplayItemListSettings::~DisplayItemListSettings() {
13 } 18 }
14 19
20 void DisplayItemListSettings::ToProtobuf(
21 proto::DisplayItemListSettings* proto) const {
22 proto->set_use_cached_picture(use_cached_picture);
23 }
24
15 } // namespace cc 25 } // namespace cc
OLDNEW
« no previous file with comments | « cc/playback/display_item_list_settings.h ('k') | cc/playback/display_item_list_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698