Module webrender::prim_store [] [src]

Reexports

use api::BorderRadius;
use api::BuiltDisplayList;
use api::ClipAndScrollInfo;
use api::ClipId;
use api::ClipMode;
use api::ColorF;
use api::ColorU;
use api::DeviceIntRect;
use api::DevicePixelScale;
use api::DevicePoint;
use api::ComplexClipRegion;
use api::ExtendMode;
use api::FontRenderMode;
use api::GlyphInstance;
use api::GlyphKey;
use api::GradientStop;
use api::ImageKey;
use api::ImageRendering;
use api::ItemRange;
use api::ItemTag;
use api::LayerPoint;
use api::LayerRect;
use api::LayerSize;
use api::LayerToWorldTransform;
use api::LayerVector2D;
use api::LineOrientation;
use api::LineStyle;
use api::PipelineId;
use api::PremultipliedColorF;
use api::TileOffset;
use api::WorldToLayerTransform;
use api::YuvColorSpace;
use api::YuvFormat;
use border::BorderCornerInstance;
use clip_scroll_tree::CoordinateSystemId;
use clip_scroll_tree::ClipScrollTree;
use clip_scroll_node::ClipScrollNode;
use clip::ClipSource;
use clip::ClipSourcesHandle;
use clip::ClipStore;
use frame_builder::PrimitiveContext;
use glyph_rasterizer::FontInstance;
use glyph_rasterizer::FontTransform;
use internal_types::FastHashMap;
use gpu_cache::GpuBlockData;
use gpu_cache::GpuCache;
use gpu_cache::GpuCacheAddress;
use gpu_cache::GpuCacheHandle;
use gpu_cache::GpuDataRequest;
use gpu_cache::ToGpuBlocks;
use gpu_types::ClipChainRectIndex;
use gpu_types::ClipScrollNodeData;
use picture::PictureKind;
use picture::PicturePrimitive;
use profiler::FrameProfileCounters;
use render_task::ClipChain;
use render_task::ClipChainNode;
use render_task::ClipChainNodeIter;
use render_task::ClipWorkItem;
use render_task::RenderTask;
use render_task::RenderTaskId;
use render_task::RenderTaskTree;
use renderer::BLOCKS_PER_UV_RECT;
use renderer::MAX_VERTEX_TEXTURE_WIDTH;
use resource_cache::ImageProperties;
use resource_cache::ResourceCache;
use scene::ScenePipeline;
use scene::SceneProperties;
use segment::SegmentBuilder;
use std::mem;
use std::usize;
use std::rc::Rc;
use util::MatrixHelpers;
use util::calculate_screen_bounding_rect;
use util::pack_as_float;
use util::recycle_vec;

Structs

BorderPrimitiveCpu
BrushPrimitive
BrushSegment
BrushSegmentDescriptor
ClipCorner
ClipData
ClipRect
DeferredResolve

For external images, it's not possible to know the UV coords of the image (or the image data itself) until the render thread receives the frame and issues callbacks to the client application. For external images that are visible, a DeferredResolve is created that is stored in the frame. This allows the render thread to iterate this list and update any changed texture data and update the UV rect.

EdgeAaSegmentMask

Each bit of the edge AA mask is: 0, when the edge of the primitive needs to be considered for AA 1, when the edge of the segment needs to be considered for AA

GradientDataEntry
GradientGpuBlockBuilder
GradientPrimitiveCpu
ImageMaskData
ImagePrimitiveCpu
LinePrimitive
PrimitiveIndex
PrimitiveMetadata
PrimitiveOpacity
PrimitiveRun
PrimitiveRunLocalRect
PrimitiveStore
RadialGradientPrimitiveCpu
SpecificPrimitiveIndex
TexelRect

Stores two coordinates in texel space. The coordinates are stored in texel coordinates because the texture atlas may grow. Storing them as texel coords and normalizing the UVs in the vertex shader means nothing needs to be updated on the CPU when the texture size changes.

TextRunPrimitiveCpu
YuvImagePrimitiveCpu

Enums

BrushClipMaskKind
BrushKind
BrushMaskKind
PrimitiveContainer
PrimitiveKind

Constants

GRADIENT_DATA_FIRST_STOP
GRADIENT_DATA_LAST_STOP
GRADIENT_DATA_SIZE
GRADIENT_DATA_TABLE_BEGIN
GRADIENT_DATA_TABLE_END
GRADIENT_DATA_TABLE_SIZE
MIN_BRUSH_SPLIT_AREA

Traits

InsideTest

Functions

convert_clip_chain_to_clip_vector
get_local_clip_rect_for_nodes