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" |
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 |
OLD | NEW |