UiCompositorControllerMessageTypes.h (1288B)
1 /* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ 2 /* vim: set ts=8 sts=2 et sw=2 tw=80: */ 3 /* This Source Code Form is subject to the terms of the Mozilla Public 4 * License, v. 2.0. If a copy of the MPL was not distributed with this 5 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ 6 7 #ifndef include_gfx_ipc_UiCompositorControllerMessageTypes_h 8 #define include_gfx_ipc_UiCompositorControllerMessageTypes_h 9 10 namespace mozilla { 11 namespace layers { 12 13 // 14 // NOTE: These values are also defined in 15 // mobile/android/geckoview/src/main/java/org/mozilla/geckoview/GeckoSession.java 16 // and must be kept in sync. Any new message added here must also be added 17 // there. 18 // 19 20 // clang-format off 21 enum UiCompositorControllerMessageTypes { 22 FIRST_PAINT = 0, // Sent from compositor after first paint 23 LAYERS_UPDATED = 1, // Sent from the compositor when any layer has been updated 24 COMPOSITOR_CONTROLLER_OPEN = 2, // Compositor controller IPC is open 25 IS_COMPOSITOR_CONTROLLER_OPEN = 3 // Special message sent from controller to query if the compositor controller is open 26 }; 27 // clang-format on 28 29 } // namespace layers 30 } // namespace mozilla 31 32 #endif // include_gfx_ipc_UiCompositorControllerMessageTypes_h