| 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 option optimize_for = LITE_RUNTIME; | 7 option optimize_for = LITE_RUNTIME; |
| 8 | 8 |
| 9 import "vector2d.proto"; |
| 10 |
| 9 package cc.proto; | 11 package cc.proto; |
| 10 | 12 |
| 11 message CommitEarlyOutReason { | 13 message ScrollUpdate { |
| 12 enum Reason { | 14 optional int32 layer_id = 1; |
| 13 ABORTED_COMPOSITOR_FRAME_SINK_LOST = 1; | 15 optional Vector2d scroll_delta = 2; |
| 14 ABORTED_NOT_VISIBLE = 2; | 16 } |
| 15 ABORTED_DEFERRED_COMMIT = 3; | |
| 16 FINISHED_NO_UPDATES = 4; | |
| 17 } | |
| 18 | 17 |
| 19 optional Reason reason = 1; | 18 message ClientStateUpdate { |
| 20 } | 19 repeated ScrollUpdate scroll_updates = 1; |
| 20 optional float page_scale_delta = 2; |
| 21 } |
| OLD | NEW |