| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 "vector2d.proto"; | 7 import "vector2d.proto"; |
| 8 import "vector2df.proto"; | 8 import "vector2df.proto"; |
| 9 import "scroll_offset.proto"; |
| 9 | 10 |
| 10 option optimize_for = LITE_RUNTIME; | 11 option optimize_for = LITE_RUNTIME; |
| 11 | 12 |
| 12 package cc.proto; | 13 package cc.proto; |
| 13 | 14 |
| 14 message ScrollUpdateInfo { | 15 message ScrollUpdateInfo { |
| 15 optional int64 layer_id = 1; | 16 optional int64 layer_id = 1; |
| 16 optional Vector2d scroll_delta = 2; | 17 optional Vector2d scroll_delta = 2; |
| 18 optional ScrollOffset overscroll = 3; |
| 17 } | 19 } |
| 18 | 20 |
| 19 message ScrollAndScaleSet { | 21 message ScrollAndScaleSet { |
| 20 repeated ScrollUpdateInfo scrolls = 1; | 22 repeated ScrollUpdateInfo scrolls = 1; |
| 21 optional float page_scale_delta = 2; | 23 optional float page_scale_delta = 2; |
| 22 optional Vector2dF elastic_overscroll_delta = 3; | 24 optional Vector2dF elastic_overscroll_delta = 3; |
| 23 optional float top_controls_delta = 4; | 25 optional float top_controls_delta = 4; |
| 24 | 26 |
| 25 // TODO(khushalsagar): Do we need to send swap promises? | 27 // TODO(khushalsagar): Do we need to send swap promises? |
| 26 // See crbug/576999. | 28 // See crbug/576999. |
| (...skipping 14 matching lines...) Expand all Loading... |
| 41 optional bool on_critical_path = 5; | 43 optional bool on_critical_path = 5; |
| 42 } | 44 } |
| 43 | 45 |
| 44 message BeginMainFrameAndCommitState { | 46 message BeginMainFrameAndCommitState { |
| 45 optional int64 begin_frame_id = 1; | 47 optional int64 begin_frame_id = 1; |
| 46 optional BeginFrameArgs begin_frame_args = 2; | 48 optional BeginFrameArgs begin_frame_args = 2; |
| 47 optional ScrollAndScaleSet scroll_info = 3; | 49 optional ScrollAndScaleSet scroll_info = 3; |
| 48 optional int64 memory_allocation_limit_bytes = 4; | 50 optional int64 memory_allocation_limit_bytes = 4; |
| 49 optional bool evicted_ui_resources = 5; | 51 optional bool evicted_ui_resources = 5; |
| 50 } | 52 } |
| OLD | NEW |