зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1393461 - Regenerate webrender_ffi_generated with cbindgen:0.1.23. r=jrmuizel
MozReview-Commit-ID: 7SX5isYVTl0 --HG-- extra : rebase_source : 2ee4ed248b7012268a596974b2e468f01cd419c9
This commit is contained in:
Родитель
93e44f9dee
Коммит
20b72b068b
|
@ -2,13 +2,13 @@
|
|||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||
|
||||
/* Generated with cbindgen:0.1.20 */
|
||||
/* Generated with cbindgen:0.1.23 */
|
||||
|
||||
/* DO NOT MODIFY THIS MANUALLY! This file was generated using cbindgen.
|
||||
* To generate this file:
|
||||
* 1. Get the latest cbindgen using `cargo install --force cbindgen`
|
||||
* a. Alternatively, you can clone `https://github.com/rlhunt/cbindgen` and use a tagged release
|
||||
* 2. Run `cbindgen toolkit/library/rust/ --crate webrender_bindings -o gfx/webrender_bindings/webrender_ffi_generated.h`
|
||||
* 2. Run `rustup run nightly cbindgen toolkit/library/rust/ --crate webrender_bindings -o gfx/webrender_bindings/webrender_ffi_generated.h`
|
||||
*/
|
||||
|
||||
#include <cstdint>
|
||||
|
@ -163,8 +163,8 @@ struct Arc_VecU8;
|
|||
|
||||
struct DocumentHandle;
|
||||
|
||||
struct LayerPixel;
|
||||
|
||||
// The renderer is responsible for submitting to the GPU the work prepared by the
|
||||
// RenderBackend.
|
||||
struct Renderer;
|
||||
|
||||
struct Vec_u8;
|
||||
|
@ -272,8 +272,14 @@ struct Epoch {
|
|||
|
||||
typedef Epoch WrEpoch;
|
||||
|
||||
// This type carries no valuable semantics for WR. However, it reflects the fact that
|
||||
// clients (Servo) may generate pipelines by different semi-independent sources.
|
||||
// These pipelines still belong to the same `IdNamespace` and the same `DocumentId`.
|
||||
// Having this extra Id field enables them to generate `PipelineId` without collision.
|
||||
typedef uint32_t PipelineSourceId;
|
||||
|
||||
// From the point of view of WR, `PipelineId` is completely opaque and generic as long as
|
||||
// it's clonable, serializable, comparable, and hashable.
|
||||
struct PipelineId {
|
||||
PipelineSourceId mNamespace;
|
||||
uint32_t mHandle;
|
||||
|
@ -300,10 +306,18 @@ typedef TypedSize2D_f32__LayerPixel LayerSize;
|
|||
|
||||
typedef LayerSize LayoutSize;
|
||||
|
||||
// Describes the memory layout of a display list.
|
||||
//
|
||||
// A display list consists of some number of display list items, followed by a number of display
|
||||
// items.
|
||||
struct BuiltDisplayListDescriptor {
|
||||
// The first IPC time stamp: before any work has been done
|
||||
uint64_t builder_start_time;
|
||||
// The second IPC time stamp: after serialization
|
||||
uint64_t builder_finish_time;
|
||||
// The third IPC time stamp: just before sending
|
||||
uint64_t send_start_time;
|
||||
// The offset where DisplayItems stop and the Glyph list starts
|
||||
size_t glyph_offset;
|
||||
|
||||
bool operator==(const BuiltDisplayListDescriptor& aOther) const {
|
||||
|
@ -374,8 +388,6 @@ struct TypedTransform3D_f32__LayoutPixel__LayoutPixel {
|
|||
}
|
||||
};
|
||||
|
||||
typedef LayerPixel LayoutPixel;
|
||||
|
||||
typedef TypedTransform3D_f32__LayoutPixel__LayoutPixel LayoutTransform;
|
||||
|
||||
struct WrTransformProperty {
|
||||
|
@ -385,6 +397,10 @@ struct WrTransformProperty {
|
|||
|
||||
typedef IdNamespace WrIdNamespace;
|
||||
|
||||
// Represents RGBA screen colors with floating point numbers.
|
||||
//
|
||||
// All components must be between 0.0 and 1.0.
|
||||
// An alpha value of 1.0 is opaque while 0.0 is fully transparent.
|
||||
struct ColorF {
|
||||
float r;
|
||||
float g;
|
||||
|
@ -409,6 +425,7 @@ struct TypedPoint2D_f32__LayerPixel {
|
|||
}
|
||||
};
|
||||
|
||||
// A 2d Rectangle optionally tagged with a unit.
|
||||
struct TypedRect_f32__LayerPixel {
|
||||
TypedPoint2D_f32__LayerPixel origin;
|
||||
TypedSize2D_f32__LayerPixel size;
|
||||
|
@ -497,20 +514,7 @@ struct GradientStop {
|
|||
}
|
||||
};
|
||||
|
||||
struct SideOffsets2D_u32 {
|
||||
uint32_t top;
|
||||
uint32_t right;
|
||||
uint32_t bottom;
|
||||
uint32_t left;
|
||||
|
||||
bool operator==(const SideOffsets2D_u32& aOther) const {
|
||||
return top == aOther.top &&
|
||||
right == aOther.right &&
|
||||
bottom == aOther.bottom &&
|
||||
left == aOther.left;
|
||||
}
|
||||
};
|
||||
|
||||
// The default side offset type with no unit.
|
||||
struct SideOffsets2D_f32 {
|
||||
float top;
|
||||
float right;
|
||||
|
@ -525,6 +529,21 @@ struct SideOffsets2D_f32 {
|
|||
}
|
||||
};
|
||||
|
||||
// The default side offset type with no unit.
|
||||
struct SideOffsets2D_u32 {
|
||||
uint32_t top;
|
||||
uint32_t right;
|
||||
uint32_t bottom;
|
||||
uint32_t left;
|
||||
|
||||
bool operator==(const SideOffsets2D_u32& aOther) const {
|
||||
return top == aOther.top &&
|
||||
right == aOther.right &&
|
||||
bottom == aOther.bottom &&
|
||||
left == aOther.left;
|
||||
}
|
||||
};
|
||||
|
||||
struct NinePatchDescriptor {
|
||||
uint32_t width;
|
||||
uint32_t height;
|
||||
|
@ -661,9 +680,21 @@ struct WrExternalImageHandler {
|
|||
* To generate this file:
|
||||
* 1. Get the latest cbindgen using `cargo install --force cbindgen`
|
||||
* a. Alternatively, you can clone `https://github.com/rlhunt/cbindgen` and use a tagged release
|
||||
* 2. Run `cbindgen toolkit/library/rust/ --crate webrender_bindings -o gfx/webrender_bindings/webrender_ffi_generated.h`
|
||||
* 2. Run `rustup run nightly cbindgen toolkit/library/rust/ --crate webrender_bindings -o gfx/webrender_bindings/webrender_ffi_generated.h`
|
||||
*/
|
||||
|
||||
extern void gfx_critical_note(const char *aMsg);
|
||||
|
||||
extern bool gfx_use_wrench();
|
||||
|
||||
extern bool is_glcontext_egl(void *aGlcontextPtr);
|
||||
|
||||
extern bool is_in_compositor_thread();
|
||||
|
||||
extern bool is_in_main_thread();
|
||||
|
||||
extern bool is_in_render_thread();
|
||||
|
||||
WR_INLINE
|
||||
const VecU8 *wr_add_ref_arc(const ArcVecU8 *aArc)
|
||||
WR_FUNC;
|
||||
|
@ -1020,6 +1051,7 @@ void wr_dp_push_text_shadow(WrState *aState,
|
|||
TextShadow aShadow)
|
||||
WR_FUNC;
|
||||
|
||||
// Push a 2 planar NV12 image.
|
||||
WR_INLINE
|
||||
void wr_dp_push_yuv_NV12_image(WrState *aState,
|
||||
LayoutRect aBounds,
|
||||
|
@ -1030,6 +1062,7 @@ void wr_dp_push_yuv_NV12_image(WrState *aState,
|
|||
ImageRendering aImageRendering)
|
||||
WR_FUNC;
|
||||
|
||||
// Push a yuv interleaved image.
|
||||
WR_INLINE
|
||||
void wr_dp_push_yuv_interleaved_image(WrState *aState,
|
||||
LayoutRect aBounds,
|
||||
|
@ -1039,6 +1072,7 @@ void wr_dp_push_yuv_interleaved_image(WrState *aState,
|
|||
ImageRendering aImageRendering)
|
||||
WR_FUNC;
|
||||
|
||||
// Push a 3 planar yuv image.
|
||||
WR_INLINE
|
||||
void wr_dp_push_yuv_planar_image(WrState *aState,
|
||||
LayoutRect aBounds,
|
||||
|
@ -1050,6 +1084,20 @@ void wr_dp_push_yuv_planar_image(WrState *aState,
|
|||
ImageRendering aImageRendering)
|
||||
WR_FUNC;
|
||||
|
||||
extern bool wr_moz2d_render_cb(ByteSlice aBlob,
|
||||
uint32_t aWidth,
|
||||
uint32_t aHeight,
|
||||
ImageFormat aFormat,
|
||||
MutByteSlice aOutput);
|
||||
|
||||
extern void wr_notifier_external_event(WrWindowId aWindowId,
|
||||
size_t aRawEvent);
|
||||
|
||||
extern void wr_notifier_new_frame_ready(WrWindowId aWindowId);
|
||||
|
||||
extern void wr_notifier_new_scroll_frame_ready(WrWindowId aWindowId,
|
||||
bool aCompositeNeeded);
|
||||
|
||||
WR_INLINE
|
||||
void wr_rendered_epochs_delete(WrRenderedEpochs *aPipelineEpochs)
|
||||
WR_DESTRUCTOR_SAFE_FUNC;
|
||||
|
@ -1154,5 +1202,5 @@ WR_FUNC;
|
|||
* To generate this file:
|
||||
* 1. Get the latest cbindgen using `cargo install --force cbindgen`
|
||||
* a. Alternatively, you can clone `https://github.com/rlhunt/cbindgen` and use a tagged release
|
||||
* 2. Run `cbindgen toolkit/library/rust/ --crate webrender_bindings -o gfx/webrender_bindings/webrender_ffi_generated.h`
|
||||
* 2. Run `rustup run nightly cbindgen toolkit/library/rust/ --crate webrender_bindings -o gfx/webrender_bindings/webrender_ffi_generated.h`
|
||||
*/
|
||||
|
|
Загрузка…
Ссылка в новой задаче