OLD | NEW |
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" | |
7 | 6 |
8 namespace cc { | 7 namespace cc { |
9 | 8 |
10 DisplayItemListSettings::DisplayItemListSettings() | 9 DisplayItemListSettings::DisplayItemListSettings() |
11 : use_cached_picture(false) {} | 10 : use_cached_picture(false) {} |
12 | 11 |
13 DisplayItemListSettings::DisplayItemListSettings( | |
14 const proto::DisplayItemListSettings& proto) | |
15 : use_cached_picture(proto.use_cached_picture()) {} | |
16 | |
17 DisplayItemListSettings::~DisplayItemListSettings() { | 12 DisplayItemListSettings::~DisplayItemListSettings() { |
18 } | 13 } |
19 | 14 |
20 void DisplayItemListSettings::ToProtobuf( | |
21 proto::DisplayItemListSettings* proto) const { | |
22 proto->set_use_cached_picture(use_cached_picture); | |
23 } | |
24 | |
25 } // namespace cc | 15 } // namespace cc |
OLD | NEW |