| 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 syntax = "proto2"; | 5 syntax = "proto2"; |
| 6 | 6 |
| 7 import "display_item.proto"; | 7 import "display_item.proto"; |
| 8 import "layer.proto"; | 8 import "layer.proto"; |
| 9 import "layer_tree.proto"; | 9 import "layer_tree.proto"; |
| 10 import "layer_tree_debug_state.proto"; | |
| 11 | 10 |
| 12 package cc.proto; | 11 package cc.proto; |
| 13 | 12 |
| 14 option optimize_for = LITE_RUNTIME; | 13 option optimize_for = LITE_RUNTIME; |
| 15 | 14 |
| 16 message SkPictureData { | 15 message SkPictureData { |
| 17 optional SkPictureID id = 1; | 16 optional SkPictureID id = 1; |
| 18 optional bytes payload = 2; /* SkData */ | 17 optional bytes payload = 2; /* SkData */ |
| 19 } | 18 } |
| 20 | 19 |
| 21 message SkPictures { | 20 message SkPictures { |
| 22 repeated SkPictureData pictures = 1; | 21 repeated SkPictureData pictures = 1; |
| 23 } | 22 } |
| 24 | 23 |
| 25 message LayerTreeHost { | 24 message LayerTreeHost { |
| 26 // Not all members of LayerTreeHost are serialized, as they are not helpful | 25 // Not all members of LayerTreeHost are serialized, as they are not helpful |
| 27 // for remote usage. See implementation of | 26 // for remote usage. See implementation of |
| 28 // cc::LayerTreeHost::ToProtobufForCommit for details. | 27 // cc::LayerTreeHost::ToProtobufForCommit for details. |
| 29 optional LayerTree layer_tree = 36; | 28 optional LayerTree layer_tree = 36; |
| 30 optional LayerUpdate layer_updates = 28; | 29 optional LayerUpdate layer_updates = 28; |
| 31 optional SkPictures pictures = 38; | 30 optional SkPictures pictures = 38; |
| 32 | |
| 33 // TODO(khushalsagar): Remove these when crbug.com/648442. | |
| 34 optional int32 source_frame_number = 3; | |
| 35 optional int32 meta_information_sequence_number = 4; | |
| 36 optional LayerTreeDebugState debug_state = 8; | |
| 37 optional bool has_gpu_rasterization_trigger = 19; | |
| 38 optional bool content_is_suitable_for_gpu_rasterization = 20; | |
| 39 optional int32 id = 23; | |
| 40 optional bool next_commit_forces_redraw = 24; | |
| 41 optional uint32 surface_client_id = 31; | |
| 42 optional uint32 next_surface_sequence = 32; | |
| 43 } | 31 } |
| OLD | NEW |