Bug 825928: Land layers refactoring. r=jrmuizel,bas,nical,mattwoodrow,roc,nrc,benwa,bjacob,jgilbert,kchen CLOSED TREE
Please contact Bas Schouten <bschouten@mozilla.com>, Nicolas Silva <nsilva@mozilla.com> or Nicholas Cameron <ncameron@mozilla.com> with general questions. Below is a rough list of authors to contact with specific questions.
Authors:
gfx/layers/Compositor.* gfx/layers/Effects.h - Compositor Interface - bas,nrc,nical
gfx/layers/d3d* - D3D9/D3D10 - bas
gfx/layers/ThebesLayer* - ThebesLayers - nrc,bas
gfx/layers/composite/* - CompositeLayers - nrc,nical
gfx/layers/client/* - Client - nrc,nical,bas
gfx/layers/*Image* - nical
gfx/layers/ipc ipc - IPC - nical
gfx/layers/opengl - CompositorOGL - nrc,nical
gfx/2d - bas,nrc
gfx/gl - GLContext - bjacob
dom/* layout/* - DOM - mattwoodrow
2013-04-10 13:20:52 +04:00
|
|
|
/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*-
|
|
|
|
* vim: sw=2 ts=8 et :
|
|
|
|
*/
|
|
|
|
/* This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
* 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/. */
|
|
|
|
|
|
|
|
include LayersSurfaces;
|
2016-03-22 21:07:08 +03:00
|
|
|
include protocol PCompositorBridge;
|
Bug 825928: Land layers refactoring. r=jrmuizel,bas,nical,mattwoodrow,roc,nrc,benwa,bjacob,jgilbert,kchen CLOSED TREE
Please contact Bas Schouten <bschouten@mozilla.com>, Nicolas Silva <nsilva@mozilla.com> or Nicholas Cameron <ncameron@mozilla.com> with general questions. Below is a rough list of authors to contact with specific questions.
Authors:
gfx/layers/Compositor.* gfx/layers/Effects.h - Compositor Interface - bas,nrc,nical
gfx/layers/d3d* - D3D9/D3D10 - bas
gfx/layers/ThebesLayer* - ThebesLayers - nrc,bas
gfx/layers/composite/* - CompositeLayers - nrc,nical
gfx/layers/client/* - Client - nrc,nical,bas
gfx/layers/*Image* - nical
gfx/layers/ipc ipc - IPC - nical
gfx/layers/opengl - CompositorOGL - nrc,nical
gfx/2d - bas,nrc
gfx/gl - GLContext - bjacob
dom/* layout/* - DOM - mattwoodrow
2013-04-10 13:20:52 +04:00
|
|
|
include protocol PRenderFrame;
|
2013-12-12 05:44:44 +04:00
|
|
|
include protocol PTexture;
|
Bug 825928: Land layers refactoring. r=jrmuizel,bas,nical,mattwoodrow,roc,nrc,benwa,bjacob,jgilbert,kchen CLOSED TREE
Please contact Bas Schouten <bschouten@mozilla.com>, Nicolas Silva <nsilva@mozilla.com> or Nicholas Cameron <ncameron@mozilla.com> with general questions. Below is a rough list of authors to contact with specific questions.
Authors:
gfx/layers/Compositor.* gfx/layers/Effects.h - Compositor Interface - bas,nrc,nical
gfx/layers/d3d* - D3D9/D3D10 - bas
gfx/layers/ThebesLayer* - ThebesLayers - nrc,bas
gfx/layers/composite/* - CompositeLayers - nrc,nical
gfx/layers/client/* - Client - nrc,nical,bas
gfx/layers/*Image* - nical
gfx/layers/ipc ipc - IPC - nical
gfx/layers/opengl - CompositorOGL - nrc,nical
gfx/2d - bas,nrc
gfx/gl - GLContext - bjacob
dom/* layout/* - DOM - mattwoodrow
2013-04-10 13:20:52 +04:00
|
|
|
|
|
|
|
include "gfxipc/ShadowLayerUtils.h";
|
2013-07-26 23:28:31 +04:00
|
|
|
include "mozilla/GfxMessageUtils.h";
|
2013-05-10 01:02:50 +04:00
|
|
|
include "ImageLayers.h";
|
Bug 825928: Land layers refactoring. r=jrmuizel,bas,nical,mattwoodrow,roc,nrc,benwa,bjacob,jgilbert,kchen CLOSED TREE
Please contact Bas Schouten <bschouten@mozilla.com>, Nicolas Silva <nsilva@mozilla.com> or Nicholas Cameron <ncameron@mozilla.com> with general questions. Below is a rough list of authors to contact with specific questions.
Authors:
gfx/layers/Compositor.* gfx/layers/Effects.h - Compositor Interface - bas,nrc,nical
gfx/layers/d3d* - D3D9/D3D10 - bas
gfx/layers/ThebesLayer* - ThebesLayers - nrc,bas
gfx/layers/composite/* - CompositeLayers - nrc,nical
gfx/layers/client/* - Client - nrc,nical,bas
gfx/layers/*Image* - nical
gfx/layers/ipc ipc - IPC - nical
gfx/layers/opengl - CompositorOGL - nrc,nical
gfx/2d - bas,nrc
gfx/gl - GLContext - bjacob
dom/* layout/* - DOM - mattwoodrow
2013-04-10 13:20:52 +04:00
|
|
|
|
2016-05-25 19:01:18 +03:00
|
|
|
using mozilla::gfx::SamplingFilter from "mozilla/gfx/2D.h";
|
2015-09-25 04:16:45 +03:00
|
|
|
using struct mozilla::gfx::Color from "mozilla/gfx/2D.h";
|
2014-08-29 22:47:30 +04:00
|
|
|
using struct mozilla::gfx::Point3D from "mozilla/gfx/Point.h";
|
2015-04-21 18:04:57 +03:00
|
|
|
using mozilla::gfx::IntPoint from "mozilla/gfx/Point.h";
|
2014-01-27 19:28:33 +04:00
|
|
|
using class mozilla::gfx::Matrix4x4 from "mozilla/gfx/Matrix.h";
|
2013-10-01 23:25:07 +04:00
|
|
|
using nscoord from "nsCoord.h";
|
|
|
|
using struct nsRect from "nsRect.h";
|
|
|
|
using struct nsPoint from "nsPoint.h";
|
|
|
|
using class mozilla::TimeDuration from "mozilla/TimeStamp.h";
|
|
|
|
using class mozilla::TimeStamp from "mozilla/TimeStamp.h";
|
|
|
|
using mozilla::ScreenRotation from "mozilla/WidgetUtils.h";
|
2016-08-10 02:28:19 +03:00
|
|
|
using nsCSSPropertyID from "nsCSSPropertyID.h";
|
2015-08-19 00:55:09 +03:00
|
|
|
using mozilla::dom::ScreenOrientationInternal from "mozilla/dom/ScreenOrientation.h";
|
2013-10-01 23:25:07 +04:00
|
|
|
using struct mozilla::layers::TextureInfo from "mozilla/layers/CompositorTypes.h";
|
|
|
|
using mozilla::LayerMargin from "Units.h";
|
|
|
|
using mozilla::LayerPoint from "Units.h";
|
2016-11-24 08:11:30 +03:00
|
|
|
using mozilla::LayerCoord from "Units.h";
|
|
|
|
using mozilla::LayerSize from "Units.h";
|
2013-10-01 23:25:07 +04:00
|
|
|
using mozilla::LayerRect from "Units.h";
|
2015-11-29 10:07:55 +03:00
|
|
|
using mozilla::LayerIntRegion from "Units.h";
|
2015-04-12 05:03:00 +03:00
|
|
|
using mozilla::ParentLayerIntRect from "Units.h";
|
2015-12-03 01:32:55 +03:00
|
|
|
using mozilla::LayoutDeviceIntRect from "Units.h";
|
2013-10-01 23:25:07 +04:00
|
|
|
using mozilla::layers::ScaleMode from "mozilla/layers/LayersTypes.h";
|
2013-12-16 14:47:06 +04:00
|
|
|
using mozilla::layers::EventRegions from "mozilla/layers/LayersTypes.h";
|
2015-02-17 05:30:02 +03:00
|
|
|
using mozilla::layers::EventRegionsOverride from "mozilla/layers/LayersTypes.h";
|
2013-10-01 23:25:07 +04:00
|
|
|
using mozilla::layers::DiagnosticTypes from "mozilla/layers/CompositorTypes.h";
|
2017-06-13 09:00:49 +03:00
|
|
|
using mozilla::layers::FocusTarget from "mozilla/layers/FocusTarget.h";
|
2016-03-29 02:14:52 +03:00
|
|
|
using struct mozilla::layers::ScrollMetadata from "FrameMetrics.h";
|
2014-04-12 03:39:21 +04:00
|
|
|
using mozilla::layers::FrameMetrics::ViewID from "FrameMetrics.h";
|
2015-10-06 09:39:00 +03:00
|
|
|
using mozilla::layers::LayersBackend from "mozilla/layers/LayersTypes.h";
|
2016-04-30 00:32:53 +03:00
|
|
|
using mozilla::layers::MaybeLayerClip from "FrameMetrics.h";
|
2016-11-24 08:11:29 +03:00
|
|
|
using mozilla::gfx::Glyph from "Layers.h";
|
2016-11-24 08:11:30 +03:00
|
|
|
using mozilla::layers::BorderColors from "mozilla/layers/LayersTypes.h";
|
|
|
|
using mozilla::layers::BorderCorners from "mozilla/layers/LayersTypes.h";
|
|
|
|
using mozilla::layers::BorderWidths from "mozilla/layers/LayersTypes.h";
|
2016-12-21 18:43:47 +03:00
|
|
|
using mozilla::layers::LayerHandle from "mozilla/layers/LayersTypes.h";
|
2017-01-18 05:47:06 +03:00
|
|
|
using mozilla::layers::CompositableHandle from "mozilla/layers/LayersTypes.h";
|
2017-01-25 03:41:18 +03:00
|
|
|
using mozilla::layers::SimpleLayerAttributes from "mozilla/layers/LayerAttributes.h";
|
2017-02-14 11:10:36 +03:00
|
|
|
using mozilla::CrossProcessSemaphoreHandle from "mozilla/ipc/CrossProcessSemaphore.h";
|
2017-06-28 03:29:06 +03:00
|
|
|
using struct mozilla::void_t from "ipc/IPCMessageUtils.h";
|
2018-03-25 02:06:01 +03:00
|
|
|
using mozilla::layers::LayersId from "mozilla/layers/LayersTypes.h";
|
Bug 825928: Land layers refactoring. r=jrmuizel,bas,nical,mattwoodrow,roc,nrc,benwa,bjacob,jgilbert,kchen CLOSED TREE
Please contact Bas Schouten <bschouten@mozilla.com>, Nicolas Silva <nsilva@mozilla.com> or Nicholas Cameron <ncameron@mozilla.com> with general questions. Below is a rough list of authors to contact with specific questions.
Authors:
gfx/layers/Compositor.* gfx/layers/Effects.h - Compositor Interface - bas,nrc,nical
gfx/layers/d3d* - D3D9/D3D10 - bas
gfx/layers/ThebesLayer* - ThebesLayers - nrc,bas
gfx/layers/composite/* - CompositeLayers - nrc,nical
gfx/layers/client/* - Client - nrc,nical,bas
gfx/layers/*Image* - nical
gfx/layers/ipc ipc - IPC - nical
gfx/layers/opengl - CompositorOGL - nrc,nical
gfx/2d - bas,nrc
gfx/gl - GLContext - bjacob
dom/* layout/* - DOM - mattwoodrow
2013-04-10 13:20:52 +04:00
|
|
|
|
|
|
|
namespace mozilla {
|
|
|
|
namespace layers {
|
|
|
|
|
|
|
|
struct TargetConfig {
|
2015-04-21 18:04:57 +03:00
|
|
|
IntRect naturalBounds;
|
Bug 825928: Land layers refactoring. r=jrmuizel,bas,nical,mattwoodrow,roc,nrc,benwa,bjacob,jgilbert,kchen CLOSED TREE
Please contact Bas Schouten <bschouten@mozilla.com>, Nicolas Silva <nsilva@mozilla.com> or Nicholas Cameron <ncameron@mozilla.com> with general questions. Below is a rough list of authors to contact with specific questions.
Authors:
gfx/layers/Compositor.* gfx/layers/Effects.h - Compositor Interface - bas,nrc,nical
gfx/layers/d3d* - D3D9/D3D10 - bas
gfx/layers/ThebesLayer* - ThebesLayers - nrc,bas
gfx/layers/composite/* - CompositeLayers - nrc,nical
gfx/layers/client/* - Client - nrc,nical,bas
gfx/layers/*Image* - nical
gfx/layers/ipc ipc - IPC - nical
gfx/layers/opengl - CompositorOGL - nrc,nical
gfx/2d - bas,nrc
gfx/gl - GLContext - bjacob
dom/* layout/* - DOM - mattwoodrow
2013-04-10 13:20:52 +04:00
|
|
|
ScreenRotation rotation;
|
2015-08-19 00:55:09 +03:00
|
|
|
ScreenOrientationInternal orientation;
|
2014-03-28 07:38:32 +04:00
|
|
|
nsIntRegion clearRegion;
|
Bug 825928: Land layers refactoring. r=jrmuizel,bas,nical,mattwoodrow,roc,nrc,benwa,bjacob,jgilbert,kchen CLOSED TREE
Please contact Bas Schouten <bschouten@mozilla.com>, Nicolas Silva <nsilva@mozilla.com> or Nicholas Cameron <ncameron@mozilla.com> with general questions. Below is a rough list of authors to contact with specific questions.
Authors:
gfx/layers/Compositor.* gfx/layers/Effects.h - Compositor Interface - bas,nrc,nical
gfx/layers/d3d* - D3D9/D3D10 - bas
gfx/layers/ThebesLayer* - ThebesLayers - nrc,bas
gfx/layers/composite/* - CompositeLayers - nrc,nical
gfx/layers/client/* - Client - nrc,nical,bas
gfx/layers/*Image* - nical
gfx/layers/ipc ipc - IPC - nical
gfx/layers/opengl - CompositorOGL - nrc,nical
gfx/2d - bas,nrc
gfx/gl - GLContext - bjacob
dom/* layout/* - DOM - mattwoodrow
2013-04-10 13:20:52 +04:00
|
|
|
};
|
|
|
|
|
|
|
|
// Create a shadow layer for |layer|
|
2016-12-21 18:43:47 +03:00
|
|
|
struct OpCreatePaintedLayer { LayerHandle layer; };
|
|
|
|
struct OpCreateContainerLayer { LayerHandle layer; };
|
|
|
|
struct OpCreateImageLayer { LayerHandle layer; };
|
|
|
|
struct OpCreateColorLayer { LayerHandle layer; };
|
|
|
|
struct OpCreateBorderLayer { LayerHandle layer; };
|
|
|
|
struct OpCreateCanvasLayer { LayerHandle layer; };
|
|
|
|
struct OpCreateRefLayer { LayerHandle layer; };
|
Bug 825928: Land layers refactoring. r=jrmuizel,bas,nical,mattwoodrow,roc,nrc,benwa,bjacob,jgilbert,kchen CLOSED TREE
Please contact Bas Schouten <bschouten@mozilla.com>, Nicolas Silva <nsilva@mozilla.com> or Nicholas Cameron <ncameron@mozilla.com> with general questions. Below is a rough list of authors to contact with specific questions.
Authors:
gfx/layers/Compositor.* gfx/layers/Effects.h - Compositor Interface - bas,nrc,nical
gfx/layers/d3d* - D3D9/D3D10 - bas
gfx/layers/ThebesLayer* - ThebesLayers - nrc,bas
gfx/layers/composite/* - CompositeLayers - nrc,nical
gfx/layers/client/* - Client - nrc,nical,bas
gfx/layers/*Image* - nical
gfx/layers/ipc ipc - IPC - nical
gfx/layers/opengl - CompositorOGL - nrc,nical
gfx/2d - bas,nrc
gfx/gl - GLContext - bjacob
dom/* layout/* - DOM - mattwoodrow
2013-04-10 13:20:52 +04:00
|
|
|
|
|
|
|
struct OpAttachCompositable {
|
2016-12-21 18:43:47 +03:00
|
|
|
LayerHandle layer;
|
2017-01-18 05:47:06 +03:00
|
|
|
CompositableHandle compositable;
|
Bug 825928: Land layers refactoring. r=jrmuizel,bas,nical,mattwoodrow,roc,nrc,benwa,bjacob,jgilbert,kchen CLOSED TREE
Please contact Bas Schouten <bschouten@mozilla.com>, Nicolas Silva <nsilva@mozilla.com> or Nicholas Cameron <ncameron@mozilla.com> with general questions. Below is a rough list of authors to contact with specific questions.
Authors:
gfx/layers/Compositor.* gfx/layers/Effects.h - Compositor Interface - bas,nrc,nical
gfx/layers/d3d* - D3D9/D3D10 - bas
gfx/layers/ThebesLayer* - ThebesLayers - nrc,bas
gfx/layers/composite/* - CompositeLayers - nrc,nical
gfx/layers/client/* - Client - nrc,nical,bas
gfx/layers/*Image* - nical
gfx/layers/ipc ipc - IPC - nical
gfx/layers/opengl - CompositorOGL - nrc,nical
gfx/2d - bas,nrc
gfx/gl - GLContext - bjacob
dom/* layout/* - DOM - mattwoodrow
2013-04-10 13:20:52 +04:00
|
|
|
};
|
|
|
|
|
|
|
|
struct OpAttachAsyncCompositable {
|
2016-12-21 18:43:47 +03:00
|
|
|
LayerHandle layer;
|
2017-01-18 05:47:06 +03:00
|
|
|
CompositableHandle compositable;
|
Bug 825928: Land layers refactoring. r=jrmuizel,bas,nical,mattwoodrow,roc,nrc,benwa,bjacob,jgilbert,kchen CLOSED TREE
Please contact Bas Schouten <bschouten@mozilla.com>, Nicolas Silva <nsilva@mozilla.com> or Nicholas Cameron <ncameron@mozilla.com> with general questions. Below is a rough list of authors to contact with specific questions.
Authors:
gfx/layers/Compositor.* gfx/layers/Effects.h - Compositor Interface - bas,nrc,nical
gfx/layers/d3d* - D3D9/D3D10 - bas
gfx/layers/ThebesLayer* - ThebesLayers - nrc,bas
gfx/layers/composite/* - CompositeLayers - nrc,nical
gfx/layers/client/* - Client - nrc,nical,bas
gfx/layers/*Image* - nical
gfx/layers/ipc ipc - IPC - nical
gfx/layers/opengl - CompositorOGL - nrc,nical
gfx/2d - bas,nrc
gfx/gl - GLContext - bjacob
dom/* layout/* - DOM - mattwoodrow
2013-04-10 13:20:52 +04:00
|
|
|
};
|
|
|
|
|
|
|
|
struct ThebesBufferData {
|
2015-04-21 18:04:57 +03:00
|
|
|
IntRect rect;
|
|
|
|
IntPoint rotation;
|
Bug 825928: Land layers refactoring. r=jrmuizel,bas,nical,mattwoodrow,roc,nrc,benwa,bjacob,jgilbert,kchen CLOSED TREE
Please contact Bas Schouten <bschouten@mozilla.com>, Nicolas Silva <nsilva@mozilla.com> or Nicholas Cameron <ncameron@mozilla.com> with general questions. Below is a rough list of authors to contact with specific questions.
Authors:
gfx/layers/Compositor.* gfx/layers/Effects.h - Compositor Interface - bas,nrc,nical
gfx/layers/d3d* - D3D9/D3D10 - bas
gfx/layers/ThebesLayer* - ThebesLayers - nrc,bas
gfx/layers/composite/* - CompositeLayers - nrc,nical
gfx/layers/client/* - Client - nrc,nical,bas
gfx/layers/*Image* - nical
gfx/layers/ipc ipc - IPC - nical
gfx/layers/opengl - CompositorOGL - nrc,nical
gfx/2d - bas,nrc
gfx/gl - GLContext - bjacob
dom/* layout/* - DOM - mattwoodrow
2013-04-10 13:20:52 +04:00
|
|
|
};
|
|
|
|
|
|
|
|
struct CubicBezierFunction {
|
|
|
|
float x1;
|
|
|
|
float y1;
|
|
|
|
float x2;
|
|
|
|
float y2;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct StepFunction {
|
|
|
|
int steps;
|
|
|
|
// 1 = nsTimingFunction::StepStart, 2 = nsTimingFunction::StepEnd
|
|
|
|
int type;
|
|
|
|
};
|
|
|
|
|
2017-02-26 10:34:02 +03:00
|
|
|
struct FramesFunction {
|
|
|
|
int frames;
|
|
|
|
};
|
|
|
|
|
Bug 825928: Land layers refactoring. r=jrmuizel,bas,nical,mattwoodrow,roc,nrc,benwa,bjacob,jgilbert,kchen CLOSED TREE
Please contact Bas Schouten <bschouten@mozilla.com>, Nicolas Silva <nsilva@mozilla.com> or Nicholas Cameron <ncameron@mozilla.com> with general questions. Below is a rough list of authors to contact with specific questions.
Authors:
gfx/layers/Compositor.* gfx/layers/Effects.h - Compositor Interface - bas,nrc,nical
gfx/layers/d3d* - D3D9/D3D10 - bas
gfx/layers/ThebesLayer* - ThebesLayers - nrc,bas
gfx/layers/composite/* - CompositeLayers - nrc,nical
gfx/layers/client/* - Client - nrc,nical,bas
gfx/layers/*Image* - nical
gfx/layers/ipc ipc - IPC - nical
gfx/layers/opengl - CompositorOGL - nrc,nical
gfx/2d - bas,nrc
gfx/gl - GLContext - bjacob
dom/* layout/* - DOM - mattwoodrow
2013-04-10 13:20:52 +04:00
|
|
|
union TimingFunction {
|
2016-01-26 23:14:00 +03:00
|
|
|
null_t;
|
Bug 825928: Land layers refactoring. r=jrmuizel,bas,nical,mattwoodrow,roc,nrc,benwa,bjacob,jgilbert,kchen CLOSED TREE
Please contact Bas Schouten <bschouten@mozilla.com>, Nicolas Silva <nsilva@mozilla.com> or Nicholas Cameron <ncameron@mozilla.com> with general questions. Below is a rough list of authors to contact with specific questions.
Authors:
gfx/layers/Compositor.* gfx/layers/Effects.h - Compositor Interface - bas,nrc,nical
gfx/layers/d3d* - D3D9/D3D10 - bas
gfx/layers/ThebesLayer* - ThebesLayers - nrc,bas
gfx/layers/composite/* - CompositeLayers - nrc,nical
gfx/layers/client/* - Client - nrc,nical,bas
gfx/layers/*Image* - nical
gfx/layers/ipc ipc - IPC - nical
gfx/layers/opengl - CompositorOGL - nrc,nical
gfx/2d - bas,nrc
gfx/gl - GLContext - bjacob
dom/* layout/* - DOM - mattwoodrow
2013-04-10 13:20:52 +04:00
|
|
|
CubicBezierFunction;
|
|
|
|
StepFunction;
|
2017-02-26 10:34:02 +03:00
|
|
|
FramesFunction;
|
Bug 825928: Land layers refactoring. r=jrmuizel,bas,nical,mattwoodrow,roc,nrc,benwa,bjacob,jgilbert,kchen CLOSED TREE
Please contact Bas Schouten <bschouten@mozilla.com>, Nicolas Silva <nsilva@mozilla.com> or Nicholas Cameron <ncameron@mozilla.com> with general questions. Below is a rough list of authors to contact with specific questions.
Authors:
gfx/layers/Compositor.* gfx/layers/Effects.h - Compositor Interface - bas,nrc,nical
gfx/layers/d3d* - D3D9/D3D10 - bas
gfx/layers/ThebesLayer* - ThebesLayers - nrc,bas
gfx/layers/composite/* - CompositeLayers - nrc,nical
gfx/layers/client/* - Client - nrc,nical,bas
gfx/layers/*Image* - nical
gfx/layers/ipc ipc - IPC - nical
gfx/layers/opengl - CompositorOGL - nrc,nical
gfx/2d - bas,nrc
gfx/gl - GLContext - bjacob
dom/* layout/* - DOM - mattwoodrow
2013-04-10 13:20:52 +04:00
|
|
|
};
|
|
|
|
|
2015-04-23 19:18:12 +03:00
|
|
|
// Send the angle with units rather than sending all angles in radians
|
|
|
|
// to avoid having floating point error introduced by unit switching.
|
|
|
|
struct CSSAngle {
|
|
|
|
float value;
|
|
|
|
int unit; // an nsCSSUnit that is valid for angles
|
|
|
|
};
|
|
|
|
|
2015-09-25 04:16:45 +03:00
|
|
|
struct LayerColor { Color value; };
|
Bug 825928: Land layers refactoring. r=jrmuizel,bas,nical,mattwoodrow,roc,nrc,benwa,bjacob,jgilbert,kchen CLOSED TREE
Please contact Bas Schouten <bschouten@mozilla.com>, Nicolas Silva <nsilva@mozilla.com> or Nicholas Cameron <ncameron@mozilla.com> with general questions. Below is a rough list of authors to contact with specific questions.
Authors:
gfx/layers/Compositor.* gfx/layers/Effects.h - Compositor Interface - bas,nrc,nical
gfx/layers/d3d* - D3D9/D3D10 - bas
gfx/layers/ThebesLayer* - ThebesLayers - nrc,bas
gfx/layers/composite/* - CompositeLayers - nrc,nical
gfx/layers/client/* - Client - nrc,nical,bas
gfx/layers/*Image* - nical
gfx/layers/ipc ipc - IPC - nical
gfx/layers/opengl - CompositorOGL - nrc,nical
gfx/2d - bas,nrc
gfx/gl - GLContext - bjacob
dom/* layout/* - DOM - mattwoodrow
2013-04-10 13:20:52 +04:00
|
|
|
struct Perspective { float value; };
|
2015-04-23 19:18:12 +03:00
|
|
|
struct RotationX { CSSAngle angle; };
|
|
|
|
struct RotationY { CSSAngle angle; };
|
|
|
|
struct RotationZ { CSSAngle angle; };
|
|
|
|
struct Rotation { CSSAngle angle; };
|
Bug 825928: Land layers refactoring. r=jrmuizel,bas,nical,mattwoodrow,roc,nrc,benwa,bjacob,jgilbert,kchen CLOSED TREE
Please contact Bas Schouten <bschouten@mozilla.com>, Nicolas Silva <nsilva@mozilla.com> or Nicholas Cameron <ncameron@mozilla.com> with general questions. Below is a rough list of authors to contact with specific questions.
Authors:
gfx/layers/Compositor.* gfx/layers/Effects.h - Compositor Interface - bas,nrc,nical
gfx/layers/d3d* - D3D9/D3D10 - bas
gfx/layers/ThebesLayer* - ThebesLayers - nrc,bas
gfx/layers/composite/* - CompositeLayers - nrc,nical
gfx/layers/client/* - Client - nrc,nical,bas
gfx/layers/*Image* - nical
gfx/layers/ipc ipc - IPC - nical
gfx/layers/opengl - CompositorOGL - nrc,nical
gfx/2d - bas,nrc
gfx/gl - GLContext - bjacob
dom/* layout/* - DOM - mattwoodrow
2013-04-10 13:20:52 +04:00
|
|
|
struct Rotation3D {
|
|
|
|
float x;
|
|
|
|
float y;
|
|
|
|
float z;
|
2015-04-23 19:18:12 +03:00
|
|
|
CSSAngle angle;
|
Bug 825928: Land layers refactoring. r=jrmuizel,bas,nical,mattwoodrow,roc,nrc,benwa,bjacob,jgilbert,kchen CLOSED TREE
Please contact Bas Schouten <bschouten@mozilla.com>, Nicolas Silva <nsilva@mozilla.com> or Nicholas Cameron <ncameron@mozilla.com> with general questions. Below is a rough list of authors to contact with specific questions.
Authors:
gfx/layers/Compositor.* gfx/layers/Effects.h - Compositor Interface - bas,nrc,nical
gfx/layers/d3d* - D3D9/D3D10 - bas
gfx/layers/ThebesLayer* - ThebesLayers - nrc,bas
gfx/layers/composite/* - CompositeLayers - nrc,nical
gfx/layers/client/* - Client - nrc,nical,bas
gfx/layers/*Image* - nical
gfx/layers/ipc ipc - IPC - nical
gfx/layers/opengl - CompositorOGL - nrc,nical
gfx/2d - bas,nrc
gfx/gl - GLContext - bjacob
dom/* layout/* - DOM - mattwoodrow
2013-04-10 13:20:52 +04:00
|
|
|
};
|
|
|
|
struct Scale {
|
|
|
|
float x;
|
|
|
|
float y;
|
|
|
|
float z;
|
|
|
|
};
|
2015-04-23 19:18:12 +03:00
|
|
|
struct Skew { CSSAngle x; CSSAngle y; };
|
|
|
|
struct SkewX { CSSAngle x; };
|
|
|
|
struct SkewY { CSSAngle y; };
|
2014-01-27 19:28:33 +04:00
|
|
|
struct TransformMatrix { Matrix4x4 value; };
|
Bug 825928: Land layers refactoring. r=jrmuizel,bas,nical,mattwoodrow,roc,nrc,benwa,bjacob,jgilbert,kchen CLOSED TREE
Please contact Bas Schouten <bschouten@mozilla.com>, Nicolas Silva <nsilva@mozilla.com> or Nicholas Cameron <ncameron@mozilla.com> with general questions. Below is a rough list of authors to contact with specific questions.
Authors:
gfx/layers/Compositor.* gfx/layers/Effects.h - Compositor Interface - bas,nrc,nical
gfx/layers/d3d* - D3D9/D3D10 - bas
gfx/layers/ThebesLayer* - ThebesLayers - nrc,bas
gfx/layers/composite/* - CompositeLayers - nrc,nical
gfx/layers/client/* - Client - nrc,nical,bas
gfx/layers/*Image* - nical
gfx/layers/ipc ipc - IPC - nical
gfx/layers/opengl - CompositorOGL - nrc,nical
gfx/2d - bas,nrc
gfx/gl - GLContext - bjacob
dom/* layout/* - DOM - mattwoodrow
2013-04-10 13:20:52 +04:00
|
|
|
struct Translation {
|
|
|
|
float x;
|
|
|
|
float y;
|
|
|
|
float z;
|
|
|
|
};
|
|
|
|
|
|
|
|
union TransformFunction {
|
|
|
|
Perspective;
|
|
|
|
RotationX;
|
|
|
|
RotationY;
|
|
|
|
RotationZ;
|
|
|
|
Rotation;
|
|
|
|
Rotation3D;
|
|
|
|
Scale;
|
2013-05-21 14:22:44 +04:00
|
|
|
Skew;
|
Bug 825928: Land layers refactoring. r=jrmuizel,bas,nical,mattwoodrow,roc,nrc,benwa,bjacob,jgilbert,kchen CLOSED TREE
Please contact Bas Schouten <bschouten@mozilla.com>, Nicolas Silva <nsilva@mozilla.com> or Nicholas Cameron <ncameron@mozilla.com> with general questions. Below is a rough list of authors to contact with specific questions.
Authors:
gfx/layers/Compositor.* gfx/layers/Effects.h - Compositor Interface - bas,nrc,nical
gfx/layers/d3d* - D3D9/D3D10 - bas
gfx/layers/ThebesLayer* - ThebesLayers - nrc,bas
gfx/layers/composite/* - CompositeLayers - nrc,nical
gfx/layers/client/* - Client - nrc,nical,bas
gfx/layers/*Image* - nical
gfx/layers/ipc ipc - IPC - nical
gfx/layers/opengl - CompositorOGL - nrc,nical
gfx/2d - bas,nrc
gfx/gl - GLContext - bjacob
dom/* layout/* - DOM - mattwoodrow
2013-04-10 13:20:52 +04:00
|
|
|
SkewX;
|
|
|
|
SkewY;
|
|
|
|
Translation;
|
|
|
|
TransformMatrix;
|
|
|
|
};
|
|
|
|
|
2017-05-02 10:49:51 +03:00
|
|
|
union MaybeTimeDuration {
|
|
|
|
null_t;
|
|
|
|
TimeDuration;
|
|
|
|
};
|
|
|
|
|
Bug 825928: Land layers refactoring. r=jrmuizel,bas,nical,mattwoodrow,roc,nrc,benwa,bjacob,jgilbert,kchen CLOSED TREE
Please contact Bas Schouten <bschouten@mozilla.com>, Nicolas Silva <nsilva@mozilla.com> or Nicholas Cameron <ncameron@mozilla.com> with general questions. Below is a rough list of authors to contact with specific questions.
Authors:
gfx/layers/Compositor.* gfx/layers/Effects.h - Compositor Interface - bas,nrc,nical
gfx/layers/d3d* - D3D9/D3D10 - bas
gfx/layers/ThebesLayer* - ThebesLayers - nrc,bas
gfx/layers/composite/* - CompositeLayers - nrc,nical
gfx/layers/client/* - Client - nrc,nical,bas
gfx/layers/*Image* - nical
gfx/layers/ipc ipc - IPC - nical
gfx/layers/opengl - CompositorOGL - nrc,nical
gfx/2d - bas,nrc
gfx/gl - GLContext - bjacob
dom/* layout/* - DOM - mattwoodrow
2013-04-10 13:20:52 +04:00
|
|
|
union Animatable {
|
2016-12-24 11:27:18 +03:00
|
|
|
null_t;
|
Bug 825928: Land layers refactoring. r=jrmuizel,bas,nical,mattwoodrow,roc,nrc,benwa,bjacob,jgilbert,kchen CLOSED TREE
Please contact Bas Schouten <bschouten@mozilla.com>, Nicolas Silva <nsilva@mozilla.com> or Nicholas Cameron <ncameron@mozilla.com> with general questions. Below is a rough list of authors to contact with specific questions.
Authors:
gfx/layers/Compositor.* gfx/layers/Effects.h - Compositor Interface - bas,nrc,nical
gfx/layers/d3d* - D3D9/D3D10 - bas
gfx/layers/ThebesLayer* - ThebesLayers - nrc,bas
gfx/layers/composite/* - CompositeLayers - nrc,nical
gfx/layers/client/* - Client - nrc,nical,bas
gfx/layers/*Image* - nical
gfx/layers/ipc ipc - IPC - nical
gfx/layers/opengl - CompositorOGL - nrc,nical
gfx/2d - bas,nrc
gfx/gl - GLContext - bjacob
dom/* layout/* - DOM - mattwoodrow
2013-04-10 13:20:52 +04:00
|
|
|
float;
|
|
|
|
TransformFunction[];
|
|
|
|
};
|
|
|
|
|
|
|
|
struct AnimationSegment {
|
|
|
|
Animatable startState;
|
|
|
|
Animatable endState;
|
|
|
|
float startPortion;
|
|
|
|
float endPortion;
|
2016-12-04 02:07:40 +03:00
|
|
|
uint8_t startComposite;
|
|
|
|
uint8_t endComposite;
|
Bug 825928: Land layers refactoring. r=jrmuizel,bas,nical,mattwoodrow,roc,nrc,benwa,bjacob,jgilbert,kchen CLOSED TREE
Please contact Bas Schouten <bschouten@mozilla.com>, Nicolas Silva <nsilva@mozilla.com> or Nicholas Cameron <ncameron@mozilla.com> with general questions. Below is a rough list of authors to contact with specific questions.
Authors:
gfx/layers/Compositor.* gfx/layers/Effects.h - Compositor Interface - bas,nrc,nical
gfx/layers/d3d* - D3D9/D3D10 - bas
gfx/layers/ThebesLayer* - ThebesLayers - nrc,bas
gfx/layers/composite/* - CompositeLayers - nrc,nical
gfx/layers/client/* - Client - nrc,nical,bas
gfx/layers/*Image* - nical
gfx/layers/ipc ipc - IPC - nical
gfx/layers/opengl - CompositorOGL - nrc,nical
gfx/2d - bas,nrc
gfx/gl - GLContext - bjacob
dom/* layout/* - DOM - mattwoodrow
2013-04-10 13:20:52 +04:00
|
|
|
TimingFunction sampleFn;
|
|
|
|
};
|
|
|
|
|
|
|
|
// Transforms need extra information to correctly convert the list of transform
|
2014-08-01 16:31:49 +04:00
|
|
|
// functions to a Matrix4x4 that can be applied directly to the layer.
|
Bug 825928: Land layers refactoring. r=jrmuizel,bas,nical,mattwoodrow,roc,nrc,benwa,bjacob,jgilbert,kchen CLOSED TREE
Please contact Bas Schouten <bschouten@mozilla.com>, Nicolas Silva <nsilva@mozilla.com> or Nicholas Cameron <ncameron@mozilla.com> with general questions. Below is a rough list of authors to contact with specific questions.
Authors:
gfx/layers/Compositor.* gfx/layers/Effects.h - Compositor Interface - bas,nrc,nical
gfx/layers/d3d* - D3D9/D3D10 - bas
gfx/layers/ThebesLayer* - ThebesLayers - nrc,bas
gfx/layers/composite/* - CompositeLayers - nrc,nical
gfx/layers/client/* - Client - nrc,nical,bas
gfx/layers/*Image* - nical
gfx/layers/ipc ipc - IPC - nical
gfx/layers/opengl - CompositorOGL - nrc,nical
gfx/2d - bas,nrc
gfx/gl - GLContext - bjacob
dom/* layout/* - DOM - mattwoodrow
2013-04-10 13:20:52 +04:00
|
|
|
struct TransformData {
|
|
|
|
// the origin of the frame being transformed in app units
|
|
|
|
nsPoint origin;
|
2015-04-23 05:37:04 +03:00
|
|
|
// the transform-origin property for the transform in device pixels
|
2014-08-29 22:47:30 +04:00
|
|
|
Point3D transformOrigin;
|
Bug 825928: Land layers refactoring. r=jrmuizel,bas,nical,mattwoodrow,roc,nrc,benwa,bjacob,jgilbert,kchen CLOSED TREE
Please contact Bas Schouten <bschouten@mozilla.com>, Nicolas Silva <nsilva@mozilla.com> or Nicholas Cameron <ncameron@mozilla.com> with general questions. Below is a rough list of authors to contact with specific questions.
Authors:
gfx/layers/Compositor.* gfx/layers/Effects.h - Compositor Interface - bas,nrc,nical
gfx/layers/d3d* - D3D9/D3D10 - bas
gfx/layers/ThebesLayer* - ThebesLayers - nrc,bas
gfx/layers/composite/* - CompositeLayers - nrc,nical
gfx/layers/client/* - Client - nrc,nical,bas
gfx/layers/*Image* - nical
gfx/layers/ipc ipc - IPC - nical
gfx/layers/opengl - CompositorOGL - nrc,nical
gfx/2d - bas,nrc
gfx/gl - GLContext - bjacob
dom/* layout/* - DOM - mattwoodrow
2013-04-10 13:20:52 +04:00
|
|
|
nsRect bounds;
|
|
|
|
int32_t appUnitsPerDevPixel;
|
2017-04-17 06:35:42 +03:00
|
|
|
// The resolution scale inherited from the parent
|
|
|
|
float inheritedXScale;
|
|
|
|
float inheritedYScale;
|
|
|
|
// True if the parent has perspective transform
|
|
|
|
bool hasPerspectiveParent;
|
Bug 825928: Land layers refactoring. r=jrmuizel,bas,nical,mattwoodrow,roc,nrc,benwa,bjacob,jgilbert,kchen CLOSED TREE
Please contact Bas Schouten <bschouten@mozilla.com>, Nicolas Silva <nsilva@mozilla.com> or Nicholas Cameron <ncameron@mozilla.com> with general questions. Below is a rough list of authors to contact with specific questions.
Authors:
gfx/layers/Compositor.* gfx/layers/Effects.h - Compositor Interface - bas,nrc,nical
gfx/layers/d3d* - D3D9/D3D10 - bas
gfx/layers/ThebesLayer* - ThebesLayers - nrc,bas
gfx/layers/composite/* - CompositeLayers - nrc,nical
gfx/layers/client/* - Client - nrc,nical,bas
gfx/layers/*Image* - nical
gfx/layers/ipc ipc - IPC - nical
gfx/layers/opengl - CompositorOGL - nrc,nical
gfx/2d - bas,nrc
gfx/gl - GLContext - bjacob
dom/* layout/* - DOM - mattwoodrow
2013-04-10 13:20:52 +04:00
|
|
|
};
|
|
|
|
|
|
|
|
union AnimationData {
|
|
|
|
null_t;
|
|
|
|
TransformData;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct Animation {
|
2017-05-02 10:49:51 +03:00
|
|
|
// The zero time of this Animation's timeline. May be null if isNotPlaying is
|
|
|
|
// true.
|
|
|
|
TimeStamp originTime;
|
|
|
|
// The start time is relative to the originTime. This allows us to represent
|
|
|
|
// start times in the distant past that cannot be expressed using a TimeStamp.
|
|
|
|
MaybeTimeDuration startTime;
|
2016-10-14 13:14:01 +03:00
|
|
|
TimeDuration delay;
|
2016-12-02 09:34:13 +03:00
|
|
|
TimeDuration endDelay;
|
|
|
|
// The value of the animation's current time at the moment it was sent to the
|
|
|
|
// compositor. This value will be used for below cases:
|
|
|
|
// 1) Animations that are play-pending. Initially these animations will have a
|
2017-05-02 10:49:51 +03:00
|
|
|
// null |startTime|. Once the animation is ready to start (i.e. painting
|
|
|
|
// has finished), we calculate an appropriate value of |startTime| such
|
|
|
|
// that playback begins from |holdTime|.
|
2016-12-02 09:34:13 +03:00
|
|
|
// 2) Not playing animations (e.g. paused and finished animations). In this
|
|
|
|
// case the |holdTime| represents the current time the animation will
|
|
|
|
// maintain.
|
|
|
|
TimeDuration holdTime;
|
Bug 825928: Land layers refactoring. r=jrmuizel,bas,nical,mattwoodrow,roc,nrc,benwa,bjacob,jgilbert,kchen CLOSED TREE
Please contact Bas Schouten <bschouten@mozilla.com>, Nicolas Silva <nsilva@mozilla.com> or Nicholas Cameron <ncameron@mozilla.com> with general questions. Below is a rough list of authors to contact with specific questions.
Authors:
gfx/layers/Compositor.* gfx/layers/Effects.h - Compositor Interface - bas,nrc,nical
gfx/layers/d3d* - D3D9/D3D10 - bas
gfx/layers/ThebesLayer* - ThebesLayers - nrc,bas
gfx/layers/composite/* - CompositeLayers - nrc,nical
gfx/layers/client/* - Client - nrc,nical,bas
gfx/layers/*Image* - nical
gfx/layers/ipc ipc - IPC - nical
gfx/layers/opengl - CompositorOGL - nrc,nical
gfx/2d - bas,nrc
gfx/gl - GLContext - bjacob
dom/* layout/* - DOM - mattwoodrow
2013-04-10 13:20:52 +04:00
|
|
|
TimeDuration duration;
|
|
|
|
// For each frame, the interpolation point is computed based on the
|
|
|
|
// startTime, the direction, the duration, and the current time.
|
|
|
|
// The segments must uniquely cover the portion from 0.0 to 1.0
|
|
|
|
AnimationSegment[] segments;
|
2014-05-28 11:51:50 +04:00
|
|
|
// Number of times to repeat the animation, including positive infinity.
|
|
|
|
// Values <= 0 mean the animation will not play (although events are still
|
|
|
|
// dispatched on the main thread).
|
2015-12-27 20:51:00 +03:00
|
|
|
float iterations;
|
2016-03-02 10:23:34 +03:00
|
|
|
float iterationStart;
|
Bug 825928: Land layers refactoring. r=jrmuizel,bas,nical,mattwoodrow,roc,nrc,benwa,bjacob,jgilbert,kchen CLOSED TREE
Please contact Bas Schouten <bschouten@mozilla.com>, Nicolas Silva <nsilva@mozilla.com> or Nicholas Cameron <ncameron@mozilla.com> with general questions. Below is a rough list of authors to contact with specific questions.
Authors:
gfx/layers/Compositor.* gfx/layers/Effects.h - Compositor Interface - bas,nrc,nical
gfx/layers/d3d* - D3D9/D3D10 - bas
gfx/layers/ThebesLayer* - ThebesLayers - nrc,bas
gfx/layers/composite/* - CompositeLayers - nrc,nical
gfx/layers/client/* - Client - nrc,nical,bas
gfx/layers/*Image* - nical
gfx/layers/ipc ipc - IPC - nical
gfx/layers/opengl - CompositorOGL - nrc,nical
gfx/2d - bas,nrc
gfx/gl - GLContext - bjacob
dom/* layout/* - DOM - mattwoodrow
2013-04-10 13:20:52 +04:00
|
|
|
// This uses the NS_STYLE_ANIMATION_DIRECTION_* constants.
|
2016-08-27 10:50:29 +03:00
|
|
|
uint8_t direction;
|
2016-10-14 13:14:11 +03:00
|
|
|
// This uses dom::FillMode.
|
|
|
|
uint8_t fillMode;
|
2016-08-10 02:28:19 +03:00
|
|
|
nsCSSPropertyID property;
|
Bug 825928: Land layers refactoring. r=jrmuizel,bas,nical,mattwoodrow,roc,nrc,benwa,bjacob,jgilbert,kchen CLOSED TREE
Please contact Bas Schouten <bschouten@mozilla.com>, Nicolas Silva <nsilva@mozilla.com> or Nicholas Cameron <ncameron@mozilla.com> with general questions. Below is a rough list of authors to contact with specific questions.
Authors:
gfx/layers/Compositor.* gfx/layers/Effects.h - Compositor Interface - bas,nrc,nical
gfx/layers/d3d* - D3D9/D3D10 - bas
gfx/layers/ThebesLayer* - ThebesLayers - nrc,bas
gfx/layers/composite/* - CompositeLayers - nrc,nical
gfx/layers/client/* - Client - nrc,nical,bas
gfx/layers/*Image* - nical
gfx/layers/ipc ipc - IPC - nical
gfx/layers/opengl - CompositorOGL - nrc,nical
gfx/2d - bas,nrc
gfx/gl - GLContext - bjacob
dom/* layout/* - DOM - mattwoodrow
2013-04-10 13:20:52 +04:00
|
|
|
AnimationData data;
|
2015-07-06 20:05:00 +03:00
|
|
|
float playbackRate;
|
2018-02-13 09:04:18 +03:00
|
|
|
// When performing an asynchronous update to the playbackRate, |playbackRate|
|
|
|
|
// above is the updated playbackRate while |previousPlaybackRate| is the
|
|
|
|
// existing playbackRate. This is used by AnimationInfo to update the
|
|
|
|
// startTime based on the 'readyTime' (timestamp at the end of painting)
|
|
|
|
// and is not used beyond that point.
|
|
|
|
//
|
|
|
|
// It is set to numeric_limits<float>::quiet_NaN() when no asynchronous update
|
|
|
|
// to the playbackRate is being performed.
|
|
|
|
float previousPlaybackRate;
|
2016-01-26 23:19:00 +03:00
|
|
|
// This is used in the transformed progress calculation.
|
|
|
|
TimingFunction easingFunction;
|
2016-09-13 05:48:44 +03:00
|
|
|
uint8_t iterationComposite;
|
2016-12-02 09:34:13 +03:00
|
|
|
// True if the animation has a fixed current time (e.g. paused and
|
|
|
|
// forward-filling animations).
|
|
|
|
bool isNotPlaying;
|
2016-12-04 02:07:40 +03:00
|
|
|
// The base style that animations should composite with. This is only set for
|
|
|
|
// animations with a composite mode of additive or accumulate, and only for
|
|
|
|
// the first animation in the set (i.e. the animation that is lowest in the
|
|
|
|
// stack). In all other cases the value is null_t.
|
2016-12-24 11:27:18 +03:00
|
|
|
Animatable baseStyle;
|
Bug 825928: Land layers refactoring. r=jrmuizel,bas,nical,mattwoodrow,roc,nrc,benwa,bjacob,jgilbert,kchen CLOSED TREE
Please contact Bas Schouten <bschouten@mozilla.com>, Nicolas Silva <nsilva@mozilla.com> or Nicholas Cameron <ncameron@mozilla.com> with general questions. Below is a rough list of authors to contact with specific questions.
Authors:
gfx/layers/Compositor.* gfx/layers/Effects.h - Compositor Interface - bas,nrc,nical
gfx/layers/d3d* - D3D9/D3D10 - bas
gfx/layers/ThebesLayer* - ThebesLayers - nrc,bas
gfx/layers/composite/* - CompositeLayers - nrc,nical
gfx/layers/client/* - Client - nrc,nical,bas
gfx/layers/*Image* - nical
gfx/layers/ipc ipc - IPC - nical
gfx/layers/opengl - CompositorOGL - nrc,nical
gfx/2d - bas,nrc
gfx/gl - GLContext - bjacob
dom/* layout/* - DOM - mattwoodrow
2013-04-10 13:20:52 +04:00
|
|
|
};
|
|
|
|
|
2017-02-08 22:31:45 +03:00
|
|
|
struct CompositorAnimations {
|
|
|
|
Animation[] animations;
|
|
|
|
// This id is used to map the layer animations between content
|
|
|
|
// and compositor side
|
|
|
|
uint64_t id;
|
|
|
|
};
|
|
|
|
|
Bug 825928: Land layers refactoring. r=jrmuizel,bas,nical,mattwoodrow,roc,nrc,benwa,bjacob,jgilbert,kchen CLOSED TREE
Please contact Bas Schouten <bschouten@mozilla.com>, Nicolas Silva <nsilva@mozilla.com> or Nicholas Cameron <ncameron@mozilla.com> with general questions. Below is a rough list of authors to contact with specific questions.
Authors:
gfx/layers/Compositor.* gfx/layers/Effects.h - Compositor Interface - bas,nrc,nical
gfx/layers/d3d* - D3D9/D3D10 - bas
gfx/layers/ThebesLayer* - ThebesLayers - nrc,bas
gfx/layers/composite/* - CompositeLayers - nrc,nical
gfx/layers/client/* - Client - nrc,nical,bas
gfx/layers/*Image* - nical
gfx/layers/ipc ipc - IPC - nical
gfx/layers/opengl - CompositorOGL - nrc,nical
gfx/2d - bas,nrc
gfx/gl - GLContext - bjacob
dom/* layout/* - DOM - mattwoodrow
2013-04-10 13:20:52 +04:00
|
|
|
// Change a layer's attributes
|
|
|
|
struct CommonLayerAttributes {
|
2015-11-29 10:07:55 +03:00
|
|
|
LayerIntRegion visibleRegion;
|
2013-12-16 14:47:06 +04:00
|
|
|
EventRegions eventRegions;
|
Bug 825928: Land layers refactoring. r=jrmuizel,bas,nical,mattwoodrow,roc,nrc,benwa,bjacob,jgilbert,kchen CLOSED TREE
Please contact Bas Schouten <bschouten@mozilla.com>, Nicolas Silva <nsilva@mozilla.com> or Nicholas Cameron <ncameron@mozilla.com> with general questions. Below is a rough list of authors to contact with specific questions.
Authors:
gfx/layers/Compositor.* gfx/layers/Effects.h - Compositor Interface - bas,nrc,nical
gfx/layers/d3d* - D3D9/D3D10 - bas
gfx/layers/ThebesLayer* - ThebesLayers - nrc,bas
gfx/layers/composite/* - CompositeLayers - nrc,nical
gfx/layers/client/* - Client - nrc,nical,bas
gfx/layers/*Image* - nical
gfx/layers/ipc ipc - IPC - nical
gfx/layers/opengl - CompositorOGL - nrc,nical
gfx/2d - bas,nrc
gfx/gl - GLContext - bjacob
dom/* layout/* - DOM - mattwoodrow
2013-04-10 13:20:52 +04:00
|
|
|
bool useClipRect;
|
2015-04-12 05:03:00 +03:00
|
|
|
ParentLayerIntRect clipRect;
|
2016-12-21 18:43:47 +03:00
|
|
|
LayerHandle maskLayer;
|
|
|
|
LayerHandle[] ancestorMaskLayers;
|
Bug 825928: Land layers refactoring. r=jrmuizel,bas,nical,mattwoodrow,roc,nrc,benwa,bjacob,jgilbert,kchen CLOSED TREE
Please contact Bas Schouten <bschouten@mozilla.com>, Nicolas Silva <nsilva@mozilla.com> or Nicholas Cameron <ncameron@mozilla.com> with general questions. Below is a rough list of authors to contact with specific questions.
Authors:
gfx/layers/Compositor.* gfx/layers/Effects.h - Compositor Interface - bas,nrc,nical
gfx/layers/d3d* - D3D9/D3D10 - bas
gfx/layers/ThebesLayer* - ThebesLayers - nrc,bas
gfx/layers/composite/* - CompositeLayers - nrc,nical
gfx/layers/client/* - Client - nrc,nical,bas
gfx/layers/*Image* - nical
gfx/layers/ipc ipc - IPC - nical
gfx/layers/opengl - CompositorOGL - nrc,nical
gfx/2d - bas,nrc
gfx/gl - GLContext - bjacob
dom/* layout/* - DOM - mattwoodrow
2013-04-10 13:20:52 +04:00
|
|
|
// Animated colors will only honored for ColorLayers.
|
2017-02-08 22:31:45 +03:00
|
|
|
CompositorAnimations compositorAnimations;
|
2013-11-21 23:25:16 +04:00
|
|
|
nsIntRegion invalidRegion;
|
2016-03-29 02:14:52 +03:00
|
|
|
ScrollMetadata[] scrollMetadata;
|
2015-08-03 09:11:00 +03:00
|
|
|
nsCString displayListLog;
|
2013-11-21 23:25:16 +04:00
|
|
|
};
|
Bug 825928: Land layers refactoring. r=jrmuizel,bas,nical,mattwoodrow,roc,nrc,benwa,bjacob,jgilbert,kchen CLOSED TREE
Please contact Bas Schouten <bschouten@mozilla.com>, Nicolas Silva <nsilva@mozilla.com> or Nicholas Cameron <ncameron@mozilla.com> with general questions. Below is a rough list of authors to contact with specific questions.
Authors:
gfx/layers/Compositor.* gfx/layers/Effects.h - Compositor Interface - bas,nrc,nical
gfx/layers/d3d* - D3D9/D3D10 - bas
gfx/layers/ThebesLayer* - ThebesLayers - nrc,bas
gfx/layers/composite/* - CompositeLayers - nrc,nical
gfx/layers/client/* - Client - nrc,nical,bas
gfx/layers/*Image* - nical
gfx/layers/ipc ipc - IPC - nical
gfx/layers/opengl - CompositorOGL - nrc,nical
gfx/2d - bas,nrc
gfx/gl - GLContext - bjacob
dom/* layout/* - DOM - mattwoodrow
2013-04-10 13:20:52 +04:00
|
|
|
|
2014-09-26 21:06:08 +04:00
|
|
|
struct PaintedLayerAttributes {
|
Bug 825928: Land layers refactoring. r=jrmuizel,bas,nical,mattwoodrow,roc,nrc,benwa,bjacob,jgilbert,kchen CLOSED TREE
Please contact Bas Schouten <bschouten@mozilla.com>, Nicolas Silva <nsilva@mozilla.com> or Nicholas Cameron <ncameron@mozilla.com> with general questions. Below is a rough list of authors to contact with specific questions.
Authors:
gfx/layers/Compositor.* gfx/layers/Effects.h - Compositor Interface - bas,nrc,nical
gfx/layers/d3d* - D3D9/D3D10 - bas
gfx/layers/ThebesLayer* - ThebesLayers - nrc,bas
gfx/layers/composite/* - CompositeLayers - nrc,nical
gfx/layers/client/* - Client - nrc,nical,bas
gfx/layers/*Image* - nical
gfx/layers/ipc ipc - IPC - nical
gfx/layers/opengl - CompositorOGL - nrc,nical
gfx/2d - bas,nrc
gfx/gl - GLContext - bjacob
dom/* layout/* - DOM - mattwoodrow
2013-04-10 13:20:52 +04:00
|
|
|
nsIntRegion validRegion;
|
|
|
|
};
|
|
|
|
struct ContainerLayerAttributes {
|
|
|
|
float preXScale;
|
|
|
|
float preYScale;
|
|
|
|
float inheritedXScale;
|
|
|
|
float inheritedYScale;
|
2015-01-03 04:06:14 +03:00
|
|
|
float presShellResolution;
|
|
|
|
bool scaleToResolution;
|
Bug 825928: Land layers refactoring. r=jrmuizel,bas,nical,mattwoodrow,roc,nrc,benwa,bjacob,jgilbert,kchen CLOSED TREE
Please contact Bas Schouten <bschouten@mozilla.com>, Nicolas Silva <nsilva@mozilla.com> or Nicholas Cameron <ncameron@mozilla.com> with general questions. Below is a rough list of authors to contact with specific questions.
Authors:
gfx/layers/Compositor.* gfx/layers/Effects.h - Compositor Interface - bas,nrc,nical
gfx/layers/d3d* - D3D9/D3D10 - bas
gfx/layers/ThebesLayer* - ThebesLayers - nrc,bas
gfx/layers/composite/* - CompositeLayers - nrc,nical
gfx/layers/client/* - Client - nrc,nical,bas
gfx/layers/*Image* - nical
gfx/layers/ipc ipc - IPC - nical
gfx/layers/opengl - CompositorOGL - nrc,nical
gfx/2d - bas,nrc
gfx/gl - GLContext - bjacob
dom/* layout/* - DOM - mattwoodrow
2013-04-10 13:20:52 +04:00
|
|
|
};
|
2016-11-24 08:11:29 +03:00
|
|
|
|
|
|
|
struct GlyphArray
|
|
|
|
{
|
|
|
|
LayerColor color;
|
|
|
|
Glyph[] glyphs;
|
|
|
|
};
|
|
|
|
|
2015-04-21 18:04:57 +03:00
|
|
|
struct ColorLayerAttributes { LayerColor color; IntRect bounds; };
|
2016-05-25 19:01:18 +03:00
|
|
|
struct CanvasLayerAttributes { SamplingFilter samplingFilter; IntRect bounds; };
|
2015-02-17 05:30:02 +03:00
|
|
|
struct RefLayerAttributes {
|
2018-03-25 02:06:01 +03:00
|
|
|
LayersId id;
|
2015-02-17 05:30:02 +03:00
|
|
|
EventRegionsOverride eventRegionsOverride;
|
|
|
|
};
|
2016-05-25 19:01:18 +03:00
|
|
|
struct ImageLayerAttributes { SamplingFilter samplingFilter; IntSize scaleToSize; ScaleMode scaleMode; };
|
2016-11-24 08:11:30 +03:00
|
|
|
struct BorderLayerAttributes {
|
|
|
|
LayerRect rect;
|
|
|
|
BorderColors colors;
|
|
|
|
BorderCorners corners;
|
|
|
|
BorderWidths widths;
|
|
|
|
};
|
Bug 825928: Land layers refactoring. r=jrmuizel,bas,nical,mattwoodrow,roc,nrc,benwa,bjacob,jgilbert,kchen CLOSED TREE
Please contact Bas Schouten <bschouten@mozilla.com>, Nicolas Silva <nsilva@mozilla.com> or Nicholas Cameron <ncameron@mozilla.com> with general questions. Below is a rough list of authors to contact with specific questions.
Authors:
gfx/layers/Compositor.* gfx/layers/Effects.h - Compositor Interface - bas,nrc,nical
gfx/layers/d3d* - D3D9/D3D10 - bas
gfx/layers/ThebesLayer* - ThebesLayers - nrc,bas
gfx/layers/composite/* - CompositeLayers - nrc,nical
gfx/layers/client/* - Client - nrc,nical,bas
gfx/layers/*Image* - nical
gfx/layers/ipc ipc - IPC - nical
gfx/layers/opengl - CompositorOGL - nrc,nical
gfx/2d - bas,nrc
gfx/gl - GLContext - bjacob
dom/* layout/* - DOM - mattwoodrow
2013-04-10 13:20:52 +04:00
|
|
|
|
|
|
|
union SpecificLayerAttributes {
|
|
|
|
null_t;
|
2014-09-26 21:06:08 +04:00
|
|
|
PaintedLayerAttributes;
|
Bug 825928: Land layers refactoring. r=jrmuizel,bas,nical,mattwoodrow,roc,nrc,benwa,bjacob,jgilbert,kchen CLOSED TREE
Please contact Bas Schouten <bschouten@mozilla.com>, Nicolas Silva <nsilva@mozilla.com> or Nicholas Cameron <ncameron@mozilla.com> with general questions. Below is a rough list of authors to contact with specific questions.
Authors:
gfx/layers/Compositor.* gfx/layers/Effects.h - Compositor Interface - bas,nrc,nical
gfx/layers/d3d* - D3D9/D3D10 - bas
gfx/layers/ThebesLayer* - ThebesLayers - nrc,bas
gfx/layers/composite/* - CompositeLayers - nrc,nical
gfx/layers/client/* - Client - nrc,nical,bas
gfx/layers/*Image* - nical
gfx/layers/ipc ipc - IPC - nical
gfx/layers/opengl - CompositorOGL - nrc,nical
gfx/2d - bas,nrc
gfx/gl - GLContext - bjacob
dom/* layout/* - DOM - mattwoodrow
2013-04-10 13:20:52 +04:00
|
|
|
ContainerLayerAttributes;
|
|
|
|
ColorLayerAttributes;
|
|
|
|
CanvasLayerAttributes;
|
|
|
|
RefLayerAttributes;
|
|
|
|
ImageLayerAttributes;
|
2016-11-24 08:11:30 +03:00
|
|
|
BorderLayerAttributes;
|
Bug 825928: Land layers refactoring. r=jrmuizel,bas,nical,mattwoodrow,roc,nrc,benwa,bjacob,jgilbert,kchen CLOSED TREE
Please contact Bas Schouten <bschouten@mozilla.com>, Nicolas Silva <nsilva@mozilla.com> or Nicholas Cameron <ncameron@mozilla.com> with general questions. Below is a rough list of authors to contact with specific questions.
Authors:
gfx/layers/Compositor.* gfx/layers/Effects.h - Compositor Interface - bas,nrc,nical
gfx/layers/d3d* - D3D9/D3D10 - bas
gfx/layers/ThebesLayer* - ThebesLayers - nrc,bas
gfx/layers/composite/* - CompositeLayers - nrc,nical
gfx/layers/client/* - Client - nrc,nical,bas
gfx/layers/*Image* - nical
gfx/layers/ipc ipc - IPC - nical
gfx/layers/opengl - CompositorOGL - nrc,nical
gfx/2d - bas,nrc
gfx/gl - GLContext - bjacob
dom/* layout/* - DOM - mattwoodrow
2013-04-10 13:20:52 +04:00
|
|
|
};
|
|
|
|
|
|
|
|
struct LayerAttributes {
|
|
|
|
CommonLayerAttributes common;
|
|
|
|
SpecificLayerAttributes specific;
|
|
|
|
};
|
|
|
|
|
2015-01-29 22:41:55 +03:00
|
|
|
// See nsIWidget Configurations
|
|
|
|
struct PluginWindowData {
|
|
|
|
uintptr_t windowId;
|
2015-12-03 01:32:55 +03:00
|
|
|
LayoutDeviceIntRect[] clip;
|
|
|
|
LayoutDeviceIntRect bounds;
|
2015-01-29 22:41:55 +03:00
|
|
|
bool visible;
|
|
|
|
};
|
|
|
|
|
2017-01-25 03:41:18 +03:00
|
|
|
struct OpSetSimpleLayerAttributes {
|
|
|
|
LayerHandle layer;
|
|
|
|
SimpleLayerAttributes attrs;
|
|
|
|
};
|
|
|
|
|
Bug 825928: Land layers refactoring. r=jrmuizel,bas,nical,mattwoodrow,roc,nrc,benwa,bjacob,jgilbert,kchen CLOSED TREE
Please contact Bas Schouten <bschouten@mozilla.com>, Nicolas Silva <nsilva@mozilla.com> or Nicholas Cameron <ncameron@mozilla.com> with general questions. Below is a rough list of authors to contact with specific questions.
Authors:
gfx/layers/Compositor.* gfx/layers/Effects.h - Compositor Interface - bas,nrc,nical
gfx/layers/d3d* - D3D9/D3D10 - bas
gfx/layers/ThebesLayer* - ThebesLayers - nrc,bas
gfx/layers/composite/* - CompositeLayers - nrc,nical
gfx/layers/client/* - Client - nrc,nical,bas
gfx/layers/*Image* - nical
gfx/layers/ipc ipc - IPC - nical
gfx/layers/opengl - CompositorOGL - nrc,nical
gfx/2d - bas,nrc
gfx/gl - GLContext - bjacob
dom/* layout/* - DOM - mattwoodrow
2013-04-10 13:20:52 +04:00
|
|
|
struct OpSetLayerAttributes {
|
2016-12-21 18:43:47 +03:00
|
|
|
LayerHandle layer;
|
Bug 825928: Land layers refactoring. r=jrmuizel,bas,nical,mattwoodrow,roc,nrc,benwa,bjacob,jgilbert,kchen CLOSED TREE
Please contact Bas Schouten <bschouten@mozilla.com>, Nicolas Silva <nsilva@mozilla.com> or Nicholas Cameron <ncameron@mozilla.com> with general questions. Below is a rough list of authors to contact with specific questions.
Authors:
gfx/layers/Compositor.* gfx/layers/Effects.h - Compositor Interface - bas,nrc,nical
gfx/layers/d3d* - D3D9/D3D10 - bas
gfx/layers/ThebesLayer* - ThebesLayers - nrc,bas
gfx/layers/composite/* - CompositeLayers - nrc,nical
gfx/layers/client/* - Client - nrc,nical,bas
gfx/layers/*Image* - nical
gfx/layers/ipc ipc - IPC - nical
gfx/layers/opengl - CompositorOGL - nrc,nical
gfx/2d - bas,nrc
gfx/gl - GLContext - bjacob
dom/* layout/* - DOM - mattwoodrow
2013-04-10 13:20:52 +04:00
|
|
|
LayerAttributes attrs;
|
|
|
|
};
|
|
|
|
|
|
|
|
// Monkey with the tree structure
|
2016-12-21 18:43:47 +03:00
|
|
|
struct OpSetRoot { LayerHandle root; };
|
|
|
|
struct OpInsertAfter { LayerHandle container; LayerHandle childLayer; LayerHandle after; };
|
|
|
|
struct OpPrependChild { LayerHandle container; LayerHandle childLayer; };
|
|
|
|
struct OpRemoveChild { LayerHandle container; LayerHandle childLayer; };
|
|
|
|
struct OpRepositionChild { LayerHandle container; LayerHandle childLayer; LayerHandle after; };
|
|
|
|
struct OpRaiseToTopChild { LayerHandle container; LayerHandle childLayer; };
|
Bug 825928: Land layers refactoring. r=jrmuizel,bas,nical,mattwoodrow,roc,nrc,benwa,bjacob,jgilbert,kchen CLOSED TREE
Please contact Bas Schouten <bschouten@mozilla.com>, Nicolas Silva <nsilva@mozilla.com> or Nicholas Cameron <ncameron@mozilla.com> with general questions. Below is a rough list of authors to contact with specific questions.
Authors:
gfx/layers/Compositor.* gfx/layers/Effects.h - Compositor Interface - bas,nrc,nical
gfx/layers/d3d* - D3D9/D3D10 - bas
gfx/layers/ThebesLayer* - ThebesLayers - nrc,bas
gfx/layers/composite/* - CompositeLayers - nrc,nical
gfx/layers/client/* - Client - nrc,nical,bas
gfx/layers/*Image* - nical
gfx/layers/ipc ipc - IPC - nical
gfx/layers/opengl - CompositorOGL - nrc,nical
gfx/2d - bas,nrc
gfx/gl - GLContext - bjacob
dom/* layout/* - DOM - mattwoodrow
2013-04-10 13:20:52 +04:00
|
|
|
|
2013-08-03 02:50:17 +04:00
|
|
|
struct OpSetDiagnosticTypes { DiagnosticTypes diagnostics; };
|
2015-10-30 13:49:07 +03:00
|
|
|
struct OpWindowOverlayChanged { };
|
Bug 825928: Land layers refactoring. r=jrmuizel,bas,nical,mattwoodrow,roc,nrc,benwa,bjacob,jgilbert,kchen CLOSED TREE
Please contact Bas Schouten <bschouten@mozilla.com>, Nicolas Silva <nsilva@mozilla.com> or Nicholas Cameron <ncameron@mozilla.com> with general questions. Below is a rough list of authors to contact with specific questions.
Authors:
gfx/layers/Compositor.* gfx/layers/Effects.h - Compositor Interface - bas,nrc,nical
gfx/layers/d3d* - D3D9/D3D10 - bas
gfx/layers/ThebesLayer* - ThebesLayers - nrc,bas
gfx/layers/composite/* - CompositeLayers - nrc,nical
gfx/layers/client/* - Client - nrc,nical,bas
gfx/layers/*Image* - nical
gfx/layers/ipc ipc - IPC - nical
gfx/layers/opengl - CompositorOGL - nrc,nical
gfx/2d - bas,nrc
gfx/gl - GLContext - bjacob
dom/* layout/* - DOM - mattwoodrow
2013-04-10 13:20:52 +04:00
|
|
|
|
2014-03-13 09:17:05 +04:00
|
|
|
struct ShmemSection {
|
|
|
|
Shmem shmem;
|
|
|
|
uint32_t offset;
|
|
|
|
size_t size;
|
|
|
|
};
|
|
|
|
|
2017-02-14 11:10:36 +03:00
|
|
|
struct CrossProcessSemaphoreDescriptor {
|
|
|
|
CrossProcessSemaphoreHandle sem;
|
|
|
|
};
|
|
|
|
|
2016-06-02 12:00:21 +03:00
|
|
|
union ReadLockDescriptor {
|
2014-03-13 09:17:05 +04:00
|
|
|
ShmemSection;
|
2017-02-14 11:10:36 +03:00
|
|
|
CrossProcessSemaphoreDescriptor;
|
2014-03-08 01:34:04 +04:00
|
|
|
uintptr_t;
|
2016-06-02 12:00:21 +03:00
|
|
|
null_t;
|
2014-03-08 01:34:04 +04:00
|
|
|
};
|
|
|
|
|
2014-07-29 09:21:02 +04:00
|
|
|
union MaybeTexture {
|
|
|
|
PTexture;
|
|
|
|
null_t;
|
|
|
|
};
|
|
|
|
|
2014-03-08 01:34:04 +04:00
|
|
|
struct TexturedTileDescriptor {
|
|
|
|
PTexture texture;
|
2014-07-29 09:21:02 +04:00
|
|
|
MaybeTexture textureOnWhite;
|
2015-05-22 14:38:13 +03:00
|
|
|
IntRect updateRect;
|
2018-03-12 16:10:13 +03:00
|
|
|
bool readLocked;
|
|
|
|
bool readLockedOnWhite;
|
2016-04-26 17:05:14 +03:00
|
|
|
bool wasPlaceholder;
|
2014-03-08 01:34:04 +04:00
|
|
|
};
|
|
|
|
|
|
|
|
struct PlaceholderTileDescriptor {
|
|
|
|
};
|
|
|
|
|
|
|
|
union TileDescriptor {
|
|
|
|
TexturedTileDescriptor;
|
|
|
|
PlaceholderTileDescriptor;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct SurfaceDescriptorTiles {
|
|
|
|
nsIntRegion validRegion;
|
|
|
|
TileDescriptor[] tiles;
|
2015-07-29 19:01:21 +03:00
|
|
|
IntPoint tileOrigin;
|
|
|
|
IntSize tileSize;
|
2015-05-22 14:38:13 +03:00
|
|
|
int firstTileX;
|
|
|
|
int firstTileY;
|
2014-03-08 01:34:04 +04:00
|
|
|
int retainedWidth;
|
|
|
|
int retainedHeight;
|
|
|
|
float resolution;
|
2015-03-06 21:54:10 +03:00
|
|
|
float frameXResolution;
|
|
|
|
float frameYResolution;
|
2015-09-04 23:21:37 +03:00
|
|
|
bool isProgressive;
|
2014-03-08 01:34:04 +04:00
|
|
|
};
|
|
|
|
|
|
|
|
struct OpUseTiledLayerBuffer {
|
2013-08-19 17:59:22 +04:00
|
|
|
SurfaceDescriptorTiles tileLayerDescriptor;
|
Bug 825928: Land layers refactoring. r=jrmuizel,bas,nical,mattwoodrow,roc,nrc,benwa,bjacob,jgilbert,kchen CLOSED TREE
Please contact Bas Schouten <bschouten@mozilla.com>, Nicolas Silva <nsilva@mozilla.com> or Nicholas Cameron <ncameron@mozilla.com> with general questions. Below is a rough list of authors to contact with specific questions.
Authors:
gfx/layers/Compositor.* gfx/layers/Effects.h - Compositor Interface - bas,nrc,nical
gfx/layers/d3d* - D3D9/D3D10 - bas
gfx/layers/ThebesLayer* - ThebesLayers - nrc,bas
gfx/layers/composite/* - CompositeLayers - nrc,nical
gfx/layers/client/* - Client - nrc,nical,bas
gfx/layers/*Image* - nical
gfx/layers/ipc ipc - IPC - nical
gfx/layers/opengl - CompositorOGL - nrc,nical
gfx/2d - bas,nrc
gfx/gl - GLContext - bjacob
dom/* layout/* - DOM - mattwoodrow
2013-04-10 13:20:52 +04:00
|
|
|
};
|
|
|
|
|
|
|
|
struct OpPaintTextureRegion {
|
|
|
|
ThebesBufferData bufferData;
|
|
|
|
nsIntRegion updatedRegion;
|
|
|
|
};
|
|
|
|
|
2014-02-11 00:52:35 +04:00
|
|
|
/**
|
|
|
|
* Tells the CompositableHost to remove the corresponding TextureHost
|
|
|
|
*/
|
|
|
|
struct OpRemoveTexture {
|
|
|
|
PTexture texture;
|
|
|
|
};
|
|
|
|
|
2015-05-04 13:59:02 +03:00
|
|
|
struct TimedTexture {
|
|
|
|
PTexture texture;
|
|
|
|
TimeStamp timeStamp;
|
|
|
|
IntRect picture;
|
2015-08-12 02:02:41 +03:00
|
|
|
uint32_t frameID;
|
|
|
|
uint32_t producerID;
|
2018-03-12 16:10:13 +03:00
|
|
|
bool readLocked;
|
2015-05-04 13:59:02 +03:00
|
|
|
};
|
|
|
|
|
2013-07-30 13:59:51 +04:00
|
|
|
/**
|
2015-05-04 13:59:02 +03:00
|
|
|
* Tells the compositor-side which textures to use (for example, as front buffer
|
|
|
|
* if there are several textures for double buffering).
|
|
|
|
* This provides a list of textures with timestamps, ordered by timestamp.
|
|
|
|
* The newest texture whose timestamp is <= the current time is rendered
|
|
|
|
* (where null is considered less than every other timestamp). If there is no
|
|
|
|
* such texture, the first texture is rendered.
|
|
|
|
* The first timestamp value can be null, but the others must not be.
|
|
|
|
* The list must not be empty.
|
2013-07-30 13:59:51 +04:00
|
|
|
*/
|
|
|
|
struct OpUseTexture {
|
2015-05-04 13:59:02 +03:00
|
|
|
TimedTexture[] textures;
|
2013-07-30 13:59:51 +04:00
|
|
|
};
|
|
|
|
|
2014-02-06 15:28:29 +04:00
|
|
|
struct OpUseComponentAlphaTextures {
|
|
|
|
PTexture textureOnBlack;
|
|
|
|
PTexture textureOnWhite;
|
2018-03-12 16:10:13 +03:00
|
|
|
bool readLockedBlack;
|
|
|
|
bool readLockedWhite;
|
2014-02-06 15:28:29 +04:00
|
|
|
};
|
|
|
|
|
2013-07-30 13:59:51 +04:00
|
|
|
union MaybeRegion {
|
|
|
|
nsIntRegion;
|
|
|
|
null_t;
|
|
|
|
};
|
|
|
|
|
2016-06-15 14:28:10 +03:00
|
|
|
struct OpNotifyNotUsed {
|
|
|
|
uint64_t TextureId;
|
|
|
|
uint64_t fwdTransactionId;
|
|
|
|
};
|
|
|
|
|
2016-03-25 11:35:16 +03:00
|
|
|
union CompositableOperationDetail {
|
Bug 825928: Land layers refactoring. r=jrmuizel,bas,nical,mattwoodrow,roc,nrc,benwa,bjacob,jgilbert,kchen CLOSED TREE
Please contact Bas Schouten <bschouten@mozilla.com>, Nicolas Silva <nsilva@mozilla.com> or Nicholas Cameron <ncameron@mozilla.com> with general questions. Below is a rough list of authors to contact with specific questions.
Authors:
gfx/layers/Compositor.* gfx/layers/Effects.h - Compositor Interface - bas,nrc,nical
gfx/layers/d3d* - D3D9/D3D10 - bas
gfx/layers/ThebesLayer* - ThebesLayers - nrc,bas
gfx/layers/composite/* - CompositeLayers - nrc,nical
gfx/layers/client/* - Client - nrc,nical,bas
gfx/layers/*Image* - nical
gfx/layers/ipc ipc - IPC - nical
gfx/layers/opengl - CompositorOGL - nrc,nical
gfx/2d - bas,nrc
gfx/gl - GLContext - bjacob
dom/* layout/* - DOM - mattwoodrow
2013-04-10 13:20:52 +04:00
|
|
|
OpPaintTextureRegion;
|
2013-04-17 01:36:06 +04:00
|
|
|
|
2014-03-08 01:34:04 +04:00
|
|
|
OpUseTiledLayerBuffer;
|
2013-07-30 13:59:51 +04:00
|
|
|
|
2014-02-11 00:52:35 +04:00
|
|
|
OpRemoveTexture;
|
|
|
|
|
2013-07-30 13:59:51 +04:00
|
|
|
OpUseTexture;
|
2014-02-06 15:28:29 +04:00
|
|
|
OpUseComponentAlphaTextures;
|
Bug 825928: Land layers refactoring. r=jrmuizel,bas,nical,mattwoodrow,roc,nrc,benwa,bjacob,jgilbert,kchen CLOSED TREE
Please contact Bas Schouten <bschouten@mozilla.com>, Nicolas Silva <nsilva@mozilla.com> or Nicholas Cameron <ncameron@mozilla.com> with general questions. Below is a rough list of authors to contact with specific questions.
Authors:
gfx/layers/Compositor.* gfx/layers/Effects.h - Compositor Interface - bas,nrc,nical
gfx/layers/d3d* - D3D9/D3D10 - bas
gfx/layers/ThebesLayer* - ThebesLayers - nrc,bas
gfx/layers/composite/* - CompositeLayers - nrc,nical
gfx/layers/client/* - Client - nrc,nical,bas
gfx/layers/*Image* - nical
gfx/layers/ipc ipc - IPC - nical
gfx/layers/opengl - CompositorOGL - nrc,nical
gfx/2d - bas,nrc
gfx/gl - GLContext - bjacob
dom/* layout/* - DOM - mattwoodrow
2013-04-10 13:20:52 +04:00
|
|
|
};
|
|
|
|
|
2016-03-25 11:35:16 +03:00
|
|
|
struct CompositableOperation {
|
2017-01-18 05:47:06 +03:00
|
|
|
CompositableHandle compositable;
|
2016-03-25 11:35:16 +03:00
|
|
|
CompositableOperationDetail detail;
|
|
|
|
};
|
|
|
|
|
Bug 825928: Land layers refactoring. r=jrmuizel,bas,nical,mattwoodrow,roc,nrc,benwa,bjacob,jgilbert,kchen CLOSED TREE
Please contact Bas Schouten <bschouten@mozilla.com>, Nicolas Silva <nsilva@mozilla.com> or Nicholas Cameron <ncameron@mozilla.com> with general questions. Below is a rough list of authors to contact with specific questions.
Authors:
gfx/layers/Compositor.* gfx/layers/Effects.h - Compositor Interface - bas,nrc,nical
gfx/layers/d3d* - D3D9/D3D10 - bas
gfx/layers/ThebesLayer* - ThebesLayers - nrc,bas
gfx/layers/composite/* - CompositeLayers - nrc,nical
gfx/layers/client/* - Client - nrc,nical,bas
gfx/layers/*Image* - nical
gfx/layers/ipc ipc - IPC - nical
gfx/layers/opengl - CompositorOGL - nrc,nical
gfx/2d - bas,nrc
gfx/gl - GLContext - bjacob
dom/* layout/* - DOM - mattwoodrow
2013-04-10 13:20:52 +04:00
|
|
|
// A unit of a changeset; a set of these comprise a changeset
|
2016-05-16 21:53:44 +03:00
|
|
|
// If adding a new edit type that requires the hit testing tree to be updated,
|
|
|
|
// set the updateHitTestingTree flag to true in RecvUpdate()
|
Bug 825928: Land layers refactoring. r=jrmuizel,bas,nical,mattwoodrow,roc,nrc,benwa,bjacob,jgilbert,kchen CLOSED TREE
Please contact Bas Schouten <bschouten@mozilla.com>, Nicolas Silva <nsilva@mozilla.com> or Nicholas Cameron <ncameron@mozilla.com> with general questions. Below is a rough list of authors to contact with specific questions.
Authors:
gfx/layers/Compositor.* gfx/layers/Effects.h - Compositor Interface - bas,nrc,nical
gfx/layers/d3d* - D3D9/D3D10 - bas
gfx/layers/ThebesLayer* - ThebesLayers - nrc,bas
gfx/layers/composite/* - CompositeLayers - nrc,nical
gfx/layers/client/* - Client - nrc,nical,bas
gfx/layers/*Image* - nical
gfx/layers/ipc ipc - IPC - nical
gfx/layers/opengl - CompositorOGL - nrc,nical
gfx/2d - bas,nrc
gfx/gl - GLContext - bjacob
dom/* layout/* - DOM - mattwoodrow
2013-04-10 13:20:52 +04:00
|
|
|
union Edit {
|
2014-09-26 21:06:08 +04:00
|
|
|
OpCreatePaintedLayer;
|
Bug 825928: Land layers refactoring. r=jrmuizel,bas,nical,mattwoodrow,roc,nrc,benwa,bjacob,jgilbert,kchen CLOSED TREE
Please contact Bas Schouten <bschouten@mozilla.com>, Nicolas Silva <nsilva@mozilla.com> or Nicholas Cameron <ncameron@mozilla.com> with general questions. Below is a rough list of authors to contact with specific questions.
Authors:
gfx/layers/Compositor.* gfx/layers/Effects.h - Compositor Interface - bas,nrc,nical
gfx/layers/d3d* - D3D9/D3D10 - bas
gfx/layers/ThebesLayer* - ThebesLayers - nrc,bas
gfx/layers/composite/* - CompositeLayers - nrc,nical
gfx/layers/client/* - Client - nrc,nical,bas
gfx/layers/*Image* - nical
gfx/layers/ipc ipc - IPC - nical
gfx/layers/opengl - CompositorOGL - nrc,nical
gfx/2d - bas,nrc
gfx/gl - GLContext - bjacob
dom/* layout/* - DOM - mattwoodrow
2013-04-10 13:20:52 +04:00
|
|
|
OpCreateContainerLayer;
|
|
|
|
OpCreateImageLayer;
|
|
|
|
OpCreateColorLayer;
|
2016-11-24 08:11:30 +03:00
|
|
|
OpCreateBorderLayer;
|
Bug 825928: Land layers refactoring. r=jrmuizel,bas,nical,mattwoodrow,roc,nrc,benwa,bjacob,jgilbert,kchen CLOSED TREE
Please contact Bas Schouten <bschouten@mozilla.com>, Nicolas Silva <nsilva@mozilla.com> or Nicholas Cameron <ncameron@mozilla.com> with general questions. Below is a rough list of authors to contact with specific questions.
Authors:
gfx/layers/Compositor.* gfx/layers/Effects.h - Compositor Interface - bas,nrc,nical
gfx/layers/d3d* - D3D9/D3D10 - bas
gfx/layers/ThebesLayer* - ThebesLayers - nrc,bas
gfx/layers/composite/* - CompositeLayers - nrc,nical
gfx/layers/client/* - Client - nrc,nical,bas
gfx/layers/*Image* - nical
gfx/layers/ipc ipc - IPC - nical
gfx/layers/opengl - CompositorOGL - nrc,nical
gfx/2d - bas,nrc
gfx/gl - GLContext - bjacob
dom/* layout/* - DOM - mattwoodrow
2013-04-10 13:20:52 +04:00
|
|
|
OpCreateCanvasLayer;
|
|
|
|
OpCreateRefLayer;
|
|
|
|
|
2013-08-03 02:50:17 +04:00
|
|
|
OpSetDiagnosticTypes;
|
2015-10-30 13:49:07 +03:00
|
|
|
OpWindowOverlayChanged;
|
Bug 825928: Land layers refactoring. r=jrmuizel,bas,nical,mattwoodrow,roc,nrc,benwa,bjacob,jgilbert,kchen CLOSED TREE
Please contact Bas Schouten <bschouten@mozilla.com>, Nicolas Silva <nsilva@mozilla.com> or Nicholas Cameron <ncameron@mozilla.com> with general questions. Below is a rough list of authors to contact with specific questions.
Authors:
gfx/layers/Compositor.* gfx/layers/Effects.h - Compositor Interface - bas,nrc,nical
gfx/layers/d3d* - D3D9/D3D10 - bas
gfx/layers/ThebesLayer* - ThebesLayers - nrc,bas
gfx/layers/composite/* - CompositeLayers - nrc,nical
gfx/layers/client/* - Client - nrc,nical,bas
gfx/layers/*Image* - nical
gfx/layers/ipc ipc - IPC - nical
gfx/layers/opengl - CompositorOGL - nrc,nical
gfx/2d - bas,nrc
gfx/gl - GLContext - bjacob
dom/* layout/* - DOM - mattwoodrow
2013-04-10 13:20:52 +04:00
|
|
|
|
|
|
|
OpSetRoot;
|
|
|
|
OpInsertAfter;
|
2014-02-24 18:41:55 +04:00
|
|
|
OpPrependChild;
|
Bug 825928: Land layers refactoring. r=jrmuizel,bas,nical,mattwoodrow,roc,nrc,benwa,bjacob,jgilbert,kchen CLOSED TREE
Please contact Bas Schouten <bschouten@mozilla.com>, Nicolas Silva <nsilva@mozilla.com> or Nicholas Cameron <ncameron@mozilla.com> with general questions. Below is a rough list of authors to contact with specific questions.
Authors:
gfx/layers/Compositor.* gfx/layers/Effects.h - Compositor Interface - bas,nrc,nical
gfx/layers/d3d* - D3D9/D3D10 - bas
gfx/layers/ThebesLayer* - ThebesLayers - nrc,bas
gfx/layers/composite/* - CompositeLayers - nrc,nical
gfx/layers/client/* - Client - nrc,nical,bas
gfx/layers/*Image* - nical
gfx/layers/ipc ipc - IPC - nical
gfx/layers/opengl - CompositorOGL - nrc,nical
gfx/2d - bas,nrc
gfx/gl - GLContext - bjacob
dom/* layout/* - DOM - mattwoodrow
2013-04-10 13:20:52 +04:00
|
|
|
OpRemoveChild;
|
|
|
|
OpRepositionChild;
|
|
|
|
OpRaiseToTopChild;
|
|
|
|
|
|
|
|
OpAttachCompositable;
|
|
|
|
OpAttachAsyncCompositable;
|
|
|
|
|
|
|
|
CompositableOperation;
|
|
|
|
};
|
|
|
|
|
2016-01-07 13:17:40 +03:00
|
|
|
// Operations related to destroying resources, always handled after the other
|
|
|
|
// operations for safety.
|
|
|
|
union OpDestroy {
|
|
|
|
PTexture;
|
2017-01-18 05:47:06 +03:00
|
|
|
CompositableHandle;
|
2016-01-07 13:17:40 +03:00
|
|
|
};
|
Bug 825928: Land layers refactoring. r=jrmuizel,bas,nical,mattwoodrow,roc,nrc,benwa,bjacob,jgilbert,kchen CLOSED TREE
Please contact Bas Schouten <bschouten@mozilla.com>, Nicolas Silva <nsilva@mozilla.com> or Nicholas Cameron <ncameron@mozilla.com> with general questions. Below is a rough list of authors to contact with specific questions.
Authors:
gfx/layers/Compositor.* gfx/layers/Effects.h - Compositor Interface - bas,nrc,nical
gfx/layers/d3d* - D3D9/D3D10 - bas
gfx/layers/ThebesLayer* - ThebesLayers - nrc,bas
gfx/layers/composite/* - CompositeLayers - nrc,nical
gfx/layers/client/* - Client - nrc,nical,bas
gfx/layers/*Image* - nical
gfx/layers/ipc ipc - IPC - nical
gfx/layers/opengl - CompositorOGL - nrc,nical
gfx/2d - bas,nrc
gfx/gl - GLContext - bjacob
dom/* layout/* - DOM - mattwoodrow
2013-04-10 13:20:52 +04:00
|
|
|
|
|
|
|
// Replies to operations
|
|
|
|
|
|
|
|
struct OpContentBufferSwap {
|
2017-01-18 05:47:06 +03:00
|
|
|
CompositableHandle compositable;
|
Bug 825928: Land layers refactoring. r=jrmuizel,bas,nical,mattwoodrow,roc,nrc,benwa,bjacob,jgilbert,kchen CLOSED TREE
Please contact Bas Schouten <bschouten@mozilla.com>, Nicolas Silva <nsilva@mozilla.com> or Nicholas Cameron <ncameron@mozilla.com> with general questions. Below is a rough list of authors to contact with specific questions.
Authors:
gfx/layers/Compositor.* gfx/layers/Effects.h - Compositor Interface - bas,nrc,nical
gfx/layers/d3d* - D3D9/D3D10 - bas
gfx/layers/ThebesLayer* - ThebesLayers - nrc,bas
gfx/layers/composite/* - CompositeLayers - nrc,nical
gfx/layers/client/* - Client - nrc,nical,bas
gfx/layers/*Image* - nical
gfx/layers/ipc ipc - IPC - nical
gfx/layers/opengl - CompositorOGL - nrc,nical
gfx/2d - bas,nrc
gfx/gl - GLContext - bjacob
dom/* layout/* - DOM - mattwoodrow
2013-04-10 13:20:52 +04:00
|
|
|
nsIntRegion frontUpdatedRegion;
|
|
|
|
};
|
|
|
|
|
2015-07-06 06:02:26 +03:00
|
|
|
/**
|
|
|
|
* An ImageCompositeNotification is sent the first time a particular
|
|
|
|
* image is composited by an ImageHost.
|
|
|
|
*/
|
|
|
|
struct ImageCompositeNotification {
|
2017-01-18 05:47:06 +03:00
|
|
|
CompositableHandle compositable;
|
2015-07-06 06:02:26 +03:00
|
|
|
TimeStamp imageTimeStamp;
|
|
|
|
TimeStamp firstCompositeTimeStamp;
|
2015-08-12 02:02:41 +03:00
|
|
|
uint32_t frameID;
|
|
|
|
uint32_t producerID;
|
2015-07-06 06:02:26 +03:00
|
|
|
};
|
|
|
|
|
2014-05-06 05:56:40 +04:00
|
|
|
union AsyncParentMessageData {
|
2016-06-15 14:28:10 +03:00
|
|
|
OpNotifyNotUsed;
|
2014-05-06 05:56:40 +04:00
|
|
|
};
|
|
|
|
|
2017-04-11 05:44:45 +03:00
|
|
|
struct PaintTiming {
|
|
|
|
float serializeMs;
|
|
|
|
float sendMs;
|
|
|
|
float dlMs;
|
2017-10-21 06:54:24 +03:00
|
|
|
float dl2Ms;
|
2017-04-11 05:44:45 +03:00
|
|
|
float flbMs;
|
|
|
|
float rasterMs;
|
|
|
|
};
|
|
|
|
|
2017-01-04 20:58:58 +03:00
|
|
|
struct TransactionInfo
|
|
|
|
{
|
|
|
|
Edit[] cset;
|
2017-01-25 03:41:18 +03:00
|
|
|
OpSetSimpleLayerAttributes[] setSimpleAttrs;
|
2017-01-25 03:41:18 +03:00
|
|
|
OpSetLayerAttributes[] setAttrs;
|
2017-01-25 03:41:17 +03:00
|
|
|
CompositableOperation[] paints;
|
2017-01-04 20:58:58 +03:00
|
|
|
OpDestroy[] toDestroy;
|
|
|
|
uint64_t fwdTransactionId;
|
|
|
|
uint64_t id;
|
|
|
|
TargetConfig targetConfig;
|
|
|
|
PluginWindowData[] plugins;
|
|
|
|
bool isFirstPaint;
|
2017-06-13 09:00:49 +03:00
|
|
|
FocusTarget focusTarget;
|
2017-01-04 20:58:58 +03:00
|
|
|
bool scheduleComposite;
|
|
|
|
uint32_t paintSequenceNumber;
|
|
|
|
bool isRepeatTransaction;
|
|
|
|
TimeStamp transactionStart;
|
2017-08-11 04:57:21 +03:00
|
|
|
TimeStamp fwdTime;
|
2017-01-04 20:58:58 +03:00
|
|
|
};
|
|
|
|
|
2017-06-28 03:29:06 +03:00
|
|
|
union MaybeTransform {
|
|
|
|
Matrix4x4;
|
|
|
|
void_t;
|
|
|
|
};
|
|
|
|
|
Bug 825928: Land layers refactoring. r=jrmuizel,bas,nical,mattwoodrow,roc,nrc,benwa,bjacob,jgilbert,kchen CLOSED TREE
Please contact Bas Schouten <bschouten@mozilla.com>, Nicolas Silva <nsilva@mozilla.com> or Nicholas Cameron <ncameron@mozilla.com> with general questions. Below is a rough list of authors to contact with specific questions.
Authors:
gfx/layers/Compositor.* gfx/layers/Effects.h - Compositor Interface - bas,nrc,nical
gfx/layers/d3d* - D3D9/D3D10 - bas
gfx/layers/ThebesLayer* - ThebesLayers - nrc,bas
gfx/layers/composite/* - CompositeLayers - nrc,nical
gfx/layers/client/* - Client - nrc,nical,bas
gfx/layers/*Image* - nical
gfx/layers/ipc ipc - IPC - nical
gfx/layers/opengl - CompositorOGL - nrc,nical
gfx/2d - bas,nrc
gfx/gl - GLContext - bjacob
dom/* layout/* - DOM - mattwoodrow
2013-04-10 13:20:52 +04:00
|
|
|
} // namespace
|
|
|
|
} // namespace
|