1 // Copyright 2020 The Chromium Authors. All rights reserved. 2 // Use of this source code is governed by a BSD-style license that can be 3 // found in the LICENSE file. 4 5 #ifndef COMPONENTS_PAINT_PREVIEW_PLAYER_COMPOSITOR_STATUS_H_ 6 #define COMPONENTS_PAINT_PREVIEW_PLAYER_COMPOSITOR_STATUS_H_ 7 8 namespace paint_preview { 9 10 // IMPORTANT: if CompositorStatus is updated, please update the corresponding 11 // entry for TabbedPaintPreviewCompositorFailureReason in enums.xml. 12 13 // GENERATED_JAVA_ENUM_PACKAGE: ( 14 // org.chromium.components.paintpreview.player) 15 enum class CompositorStatus : int { 16 OK, 17 URL_MISMATCH, 18 COMPOSITOR_SERVICE_DISCONNECT, 19 COMPOSITOR_CLIENT_DISCONNECT, 20 PROTOBUF_DESERIALIZATION_ERROR, 21 COMPOSITOR_DESERIALIZATION_ERROR, 22 INVALID_ROOT_FRAME_SKP, 23 INVALID_REQUEST, 24 OLD_VERSION, 25 UNEXPECTED_VERSION, 26 CAPTURE_EXPIRED, 27 NO_CAPTURE, 28 TIMED_OUT, 29 STOPPED_DUE_TO_MEMORY_PRESSURE, 30 SKIPPED_DUE_TO_MEMORY_PRESSURE, 31 COUNT, 32 }; 33 34 } // namespace paint_preview 35 36 #endif // COMPONENTS_PAINT_PREVIEW_PLAYER_COMPOSITOR_STATUS_H_ 37