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: 20; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
|
|
|
|
/* 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 "TiledContentHost.h"
|
2013-08-12 03:17:23 +04:00
|
|
|
#include "ThebesLayerComposite.h" // for ThebesLayerComposite
|
|
|
|
#include "mozilla/gfx/BaseSize.h" // for BaseSize
|
|
|
|
#include "mozilla/gfx/Matrix.h" // for Matrix4x4
|
|
|
|
#include "mozilla/layers/Compositor.h" // for Compositor
|
|
|
|
#include "mozilla/layers/Effects.h" // for TexturedEffect, Effect, etc
|
2014-03-27 05:01:15 +04:00
|
|
|
#include "mozilla/layers/TextureHostOGL.h" // for TextureHostOGL
|
2013-08-12 03:17:23 +04:00
|
|
|
#include "nsAString.h"
|
|
|
|
#include "nsDebug.h" // for NS_WARNING
|
|
|
|
#include "nsPoint.h" // for nsIntPoint
|
|
|
|
#include "nsPrintfCString.h" // for nsPrintfCString
|
|
|
|
#include "nsRect.h" // for nsIntRect
|
|
|
|
#include "nsSize.h" // for nsIntSize
|
2014-03-08 01:34:04 +04:00
|
|
|
#include "mozilla/layers/TiledContentClient.h"
|
2013-08-12 03:17:23 +04:00
|
|
|
|
|
|
|
class gfxReusableSurfaceWrapper;
|
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 {
|
|
|
|
using namespace gfx;
|
|
|
|
namespace layers {
|
|
|
|
|
2013-08-12 03:17:23 +04:00
|
|
|
class Layer;
|
|
|
|
|
2014-03-08 01:34:04 +04:00
|
|
|
TiledLayerBufferComposite::TiledLayerBufferComposite()
|
|
|
|
: mFrameResolution(1.0)
|
|
|
|
, mHasDoubleBufferedTiles(false)
|
|
|
|
, mUninitialized(true)
|
|
|
|
{}
|
|
|
|
|
2014-03-27 05:01:15 +04:00
|
|
|
/* static */ void
|
|
|
|
TiledLayerBufferComposite::RecycleCallback(TextureHost* textureHost, void* aClosure)
|
|
|
|
{
|
|
|
|
textureHost->CompositorRecycle();
|
|
|
|
}
|
|
|
|
|
2014-03-08 01:34:04 +04:00
|
|
|
TiledLayerBufferComposite::TiledLayerBufferComposite(ISurfaceAllocator* aAllocator,
|
|
|
|
const SurfaceDescriptorTiles& aDescriptor,
|
|
|
|
const nsIntRegion& aOldPaintedRegion)
|
|
|
|
{
|
|
|
|
mUninitialized = false;
|
|
|
|
mHasDoubleBufferedTiles = false;
|
|
|
|
mValidRegion = aDescriptor.validRegion();
|
|
|
|
mPaintedRegion = aDescriptor.paintedRegion();
|
|
|
|
mRetainedWidth = aDescriptor.retainedWidth();
|
|
|
|
mRetainedHeight = aDescriptor.retainedHeight();
|
|
|
|
mResolution = aDescriptor.resolution();
|
2014-03-22 13:17:54 +04:00
|
|
|
mFrameResolution = CSSToParentLayerScale(aDescriptor.frameResolution());
|
2014-03-08 01:34:04 +04:00
|
|
|
|
|
|
|
// Combine any valid content that wasn't already uploaded
|
|
|
|
nsIntRegion oldPaintedRegion(aOldPaintedRegion);
|
|
|
|
oldPaintedRegion.And(oldPaintedRegion, mValidRegion);
|
|
|
|
mPaintedRegion.Or(mPaintedRegion, oldPaintedRegion);
|
|
|
|
|
|
|
|
const InfallibleTArray<TileDescriptor>& tiles = aDescriptor.tiles();
|
|
|
|
for(size_t i = 0; i < tiles.Length(); i++) {
|
|
|
|
RefPtr<TextureHost> texture;
|
|
|
|
const TileDescriptor& tileDesc = tiles[i];
|
|
|
|
switch (tileDesc.type()) {
|
|
|
|
case TileDescriptor::TTexturedTileDescriptor : {
|
|
|
|
texture = TextureHost::AsTextureHost(tileDesc.get_TexturedTileDescriptor().textureParent());
|
2014-03-27 05:01:15 +04:00
|
|
|
#if defined(MOZ_WIDGET_GONK) && ANDROID_VERSION >= 17
|
|
|
|
if (!gfxPrefs::LayersUseSimpleTiles()) {
|
|
|
|
texture->SetRecycleCallback(RecycleCallback, nullptr);
|
|
|
|
}
|
|
|
|
#endif
|
2014-03-08 01:34:04 +04:00
|
|
|
const TileLock& ipcLock = tileDesc.get_TexturedTileDescriptor().sharedLock();
|
|
|
|
nsRefPtr<gfxSharedReadLock> sharedLock;
|
2014-03-13 09:17:05 +04:00
|
|
|
if (ipcLock.type() == TileLock::TShmemSection) {
|
|
|
|
sharedLock = gfxShmSharedReadLock::Open(aAllocator, ipcLock.get_ShmemSection());
|
2014-03-08 01:34:04 +04:00
|
|
|
} else {
|
|
|
|
sharedLock = reinterpret_cast<gfxMemorySharedReadLock*>(ipcLock.get_uintptr_t());
|
2014-03-10 22:34:57 +04:00
|
|
|
if (sharedLock) {
|
|
|
|
// The corresponding AddRef is in TiledClient::GetTileDescriptor
|
|
|
|
sharedLock->Release();
|
|
|
|
}
|
2014-03-08 01:34:04 +04:00
|
|
|
}
|
2014-03-10 22:34:57 +04:00
|
|
|
|
|
|
|
mRetainedTiles.AppendElement(TileHost(sharedLock, texture));
|
2014-03-08 01:34:04 +04:00
|
|
|
break;
|
|
|
|
}
|
|
|
|
default:
|
|
|
|
NS_WARNING("Unrecognised tile descriptor type");
|
|
|
|
// Fall through
|
|
|
|
case TileDescriptor::TPlaceholderTileDescriptor :
|
|
|
|
mRetainedTiles.AppendElement(GetPlaceholderTile());
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
if (texture && !texture->HasInternalBuffer()) {
|
|
|
|
mHasDoubleBufferedTiles = true;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
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
|
|
|
void
|
2014-03-08 01:34:04 +04:00
|
|
|
TiledLayerBufferComposite::ReadUnlock()
|
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-08 01:34:04 +04:00
|
|
|
if (!IsValid()) {
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
for (size_t i = 0; i < mRetainedTiles.Length(); i++) {
|
|
|
|
mRetainedTiles[i].ReadUnlock();
|
|
|
|
}
|
|
|
|
}
|
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-08 01:34:04 +04:00
|
|
|
void
|
|
|
|
TiledLayerBufferComposite::ReleaseTextureHosts()
|
|
|
|
{
|
|
|
|
if (!IsValid()) {
|
|
|
|
return;
|
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-08 01:34:04 +04:00
|
|
|
for (size_t i = 0; i < mRetainedTiles.Length(); i++) {
|
|
|
|
mRetainedTiles[i].mTextureHost = nullptr;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
void
|
|
|
|
TiledLayerBufferComposite::Upload()
|
|
|
|
{
|
|
|
|
if(!IsValid()) {
|
|
|
|
return;
|
|
|
|
}
|
2014-04-27 11:45:08 +04:00
|
|
|
// The TextureClients were created with the TEXTURE_IMMEDIATE_UPLOAD flag,
|
2014-03-08 01:34:04 +04:00
|
|
|
// so calling Update on all the texture hosts will perform the texture upload.
|
|
|
|
Update(mValidRegion, mPaintedRegion);
|
|
|
|
ClearPaintedRegion();
|
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-08 01:34:04 +04:00
|
|
|
TileHost
|
|
|
|
TiledLayerBufferComposite::ValidateTile(TileHost aTile,
|
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
|
|
|
const nsIntPoint& aTileOrigin,
|
|
|
|
const nsIntRegion& aDirtyRect)
|
|
|
|
{
|
2014-03-08 01:34:04 +04:00
|
|
|
if (aTile.IsPlaceholderTile()) {
|
|
|
|
NS_WARNING("Placeholder tile encountered in painted region");
|
|
|
|
return aTile;
|
|
|
|
}
|
|
|
|
|
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
|
|
|
#ifdef GFX_TILEDLAYER_PREF_WARNINGS
|
|
|
|
printf_stderr("Upload tile %i, %i\n", aTileOrigin.x, aTileOrigin.y);
|
|
|
|
long start = PR_IntervalNow();
|
|
|
|
#endif
|
|
|
|
|
2014-04-27 11:45:08 +04:00
|
|
|
MOZ_ASSERT(aTile.mTextureHost->GetFlags() & TEXTURE_IMMEDIATE_UPLOAD);
|
2014-03-08 01:34:04 +04:00
|
|
|
// We possibly upload the entire texture contents here. This is a purposeful
|
|
|
|
// decision, as sub-image upload can often be slow and/or unreliable, but
|
|
|
|
// we may want to reevaluate this in the future.
|
|
|
|
// For !HasInternalBuffer() textures, this is likely a no-op.
|
|
|
|
aTile.mTextureHost->Updated(nullptr);
|
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
|
|
|
|
|
|
|
#ifdef GFX_TILEDLAYER_PREF_WARNINGS
|
|
|
|
if (PR_IntervalNow() - start > 1) {
|
|
|
|
printf_stderr("Tile Time to upload %i\n", PR_IntervalNow() - start);
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
return aTile;
|
|
|
|
}
|
|
|
|
|
2013-04-17 01:36:06 +04:00
|
|
|
void
|
2014-03-08 01:34:04 +04:00
|
|
|
TiledLayerBufferComposite::SetCompositor(Compositor* aCompositor)
|
2013-04-17 01:36:06 +04:00
|
|
|
{
|
2014-03-08 01:34:04 +04:00
|
|
|
if (!IsValid()) {
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
for (size_t i = 0; i < mRetainedTiles.Length(); i++) {
|
|
|
|
if (mRetainedTiles[i].IsPlaceholderTile()) continue;
|
|
|
|
mRetainedTiles[i].mTextureHost->SetCompositor(aCompositor);
|
|
|
|
}
|
2013-04-17 01:36:06 +04:00
|
|
|
}
|
|
|
|
|
2014-03-27 05:01:15 +04:00
|
|
|
#if defined(MOZ_WIDGET_GONK) && ANDROID_VERSION >= 17
|
|
|
|
void
|
|
|
|
TiledLayerBufferComposite::SetReleaseFence(const android::sp<android::Fence>& aReleaseFence)
|
|
|
|
{
|
|
|
|
for (size_t i = 0; i < mRetainedTiles.Length(); i++) {
|
|
|
|
if (!mRetainedTiles[i].mTextureHost) {
|
|
|
|
continue;
|
|
|
|
}
|
|
|
|
TextureHostOGL* texture = mRetainedTiles[i].mTextureHost->AsHostOGL();
|
|
|
|
if (!texture) {
|
|
|
|
continue;
|
|
|
|
}
|
|
|
|
texture->SetReleaseFence(new android::Fence(aReleaseFence->dup()));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
2014-03-08 01:34:04 +04:00
|
|
|
TiledContentHost::TiledContentHost(const TextureInfo& aTextureInfo)
|
|
|
|
: ContentHost(aTextureInfo)
|
|
|
|
, mTiledBuffer(TiledLayerBufferComposite())
|
|
|
|
, mLowPrecisionTiledBuffer(TiledLayerBufferComposite())
|
|
|
|
, mOldTiledBuffer(TiledLayerBufferComposite())
|
|
|
|
, mOldLowPrecisionTiledBuffer(TiledLayerBufferComposite())
|
|
|
|
, mPendingUpload(false)
|
|
|
|
, mPendingLowPrecisionUpload(false)
|
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-08 01:34:04 +04:00
|
|
|
MOZ_COUNT_CTOR(TiledContentHost);
|
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-08 01:34:04 +04:00
|
|
|
TiledContentHost::~TiledContentHost()
|
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-08 01:34:04 +04:00
|
|
|
MOZ_COUNT_DTOR(TiledContentHost);
|
|
|
|
|
|
|
|
// Unlock any buffers that may still be locked. If we have a pending upload,
|
|
|
|
// we will need to unlock the buffer that was about to be uploaded.
|
|
|
|
// If a buffer that was being composited had double-buffered tiles, we will
|
|
|
|
// need to unlock that buffer too.
|
|
|
|
if (mPendingUpload) {
|
|
|
|
mTiledBuffer.ReadUnlock();
|
|
|
|
if (mOldTiledBuffer.HasDoubleBufferedTiles()) {
|
|
|
|
mOldTiledBuffer.ReadUnlock();
|
|
|
|
}
|
|
|
|
} else if (mTiledBuffer.HasDoubleBufferedTiles()) {
|
|
|
|
mTiledBuffer.ReadUnlock();
|
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-08 01:34:04 +04:00
|
|
|
if (mPendingLowPrecisionUpload) {
|
|
|
|
mLowPrecisionTiledBuffer.ReadUnlock();
|
|
|
|
if (mOldLowPrecisionTiledBuffer.HasDoubleBufferedTiles()) {
|
|
|
|
mOldLowPrecisionTiledBuffer.ReadUnlock();
|
|
|
|
}
|
|
|
|
} else if (mLowPrecisionTiledBuffer.HasDoubleBufferedTiles()) {
|
|
|
|
mLowPrecisionTiledBuffer.ReadUnlock();
|
|
|
|
}
|
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
|
|
|
}
|
|
|
|
|
|
|
|
void
|
2014-03-08 01:34:04 +04:00
|
|
|
TiledContentHost::Attach(Layer* aLayer,
|
|
|
|
Compositor* aCompositor,
|
|
|
|
AttachFlags aFlags /* = NO_FLAGS */)
|
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-08 01:34:04 +04:00
|
|
|
CompositableHost::Attach(aLayer, aCompositor, aFlags);
|
|
|
|
static_cast<ThebesLayerComposite*>(aLayer)->EnsureTiled();
|
|
|
|
}
|
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-08 01:34:04 +04:00
|
|
|
void
|
|
|
|
TiledContentHost::UseTiledLayerBuffer(ISurfaceAllocator* aAllocator,
|
|
|
|
const SurfaceDescriptorTiles& aTiledDescriptor)
|
|
|
|
{
|
|
|
|
if (aTiledDescriptor.resolution() < 1) {
|
|
|
|
if (mPendingLowPrecisionUpload) {
|
|
|
|
mLowPrecisionTiledBuffer.ReadUnlock();
|
|
|
|
} else {
|
|
|
|
mPendingLowPrecisionUpload = true;
|
|
|
|
// If the old buffer has double-buffered tiles, hang onto it so we can
|
|
|
|
// unlock it after we've composited the new buffer.
|
|
|
|
// We only need to hang onto the locks, but not the textures.
|
|
|
|
// Releasing the textures here can help prevent a memory spike in the
|
|
|
|
// situation that the client starts rendering new content before we get
|
|
|
|
// to composite the new buffer.
|
|
|
|
if (mLowPrecisionTiledBuffer.HasDoubleBufferedTiles()) {
|
|
|
|
mOldLowPrecisionTiledBuffer = mLowPrecisionTiledBuffer;
|
|
|
|
mOldLowPrecisionTiledBuffer.ReleaseTextureHosts();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
mLowPrecisionTiledBuffer =
|
|
|
|
TiledLayerBufferComposite(aAllocator, aTiledDescriptor,
|
|
|
|
mLowPrecisionTiledBuffer.GetPaintedRegion());
|
|
|
|
} else {
|
|
|
|
if (mPendingUpload) {
|
|
|
|
mTiledBuffer.ReadUnlock();
|
|
|
|
} else {
|
|
|
|
mPendingUpload = true;
|
|
|
|
if (mTiledBuffer.HasDoubleBufferedTiles()) {
|
|
|
|
mOldTiledBuffer = mTiledBuffer;
|
|
|
|
mOldTiledBuffer.ReleaseTextureHosts();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
mTiledBuffer = TiledLayerBufferComposite(aAllocator, aTiledDescriptor,
|
|
|
|
mTiledBuffer.GetPaintedRegion());
|
|
|
|
}
|
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
|
|
|
}
|
|
|
|
|
|
|
|
void
|
|
|
|
TiledContentHost::Composite(EffectChain& aEffectChain,
|
|
|
|
float aOpacity,
|
|
|
|
const gfx::Matrix4x4& aTransform,
|
|
|
|
const gfx::Filter& aFilter,
|
|
|
|
const gfx::Rect& aClipRect,
|
|
|
|
const nsIntRegion* aVisibleRegion /* = nullptr */,
|
|
|
|
TiledLayerProperties* aLayerProperties /* = nullptr */)
|
|
|
|
{
|
|
|
|
MOZ_ASSERT(aLayerProperties, "aLayerProperties required for TiledContentHost");
|
|
|
|
|
2014-03-08 01:34:04 +04:00
|
|
|
if (mPendingUpload) {
|
|
|
|
mTiledBuffer.SetCompositor(mCompositor);
|
|
|
|
mTiledBuffer.Upload();
|
|
|
|
|
|
|
|
// For a single-buffered tiled buffer, Upload will upload the shared memory
|
|
|
|
// surface to texture memory and we no longer need to read from them.
|
|
|
|
if (!mTiledBuffer.HasDoubleBufferedTiles()) {
|
|
|
|
mTiledBuffer.ReadUnlock();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if (mPendingLowPrecisionUpload) {
|
|
|
|
mLowPrecisionTiledBuffer.SetCompositor(mCompositor);
|
|
|
|
mLowPrecisionTiledBuffer.Upload();
|
|
|
|
|
|
|
|
if (!mLowPrecisionTiledBuffer.HasDoubleBufferedTiles()) {
|
|
|
|
mLowPrecisionTiledBuffer.ReadUnlock();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2014-03-27 22:52:08 +04:00
|
|
|
RenderLayerBuffer(mLowPrecisionTiledBuffer, aEffectChain, aOpacity, aFilter,
|
|
|
|
aClipRect, aLayerProperties->mVisibleRegion, aTransform);
|
|
|
|
RenderLayerBuffer(mTiledBuffer, aEffectChain, aOpacity, aFilter,
|
|
|
|
aClipRect, aLayerProperties->mVisibleRegion, aTransform);
|
2014-03-08 01:34:04 +04:00
|
|
|
|
|
|
|
// Now release the old buffer if it had double-buffered tiles, as we can
|
|
|
|
// guarantee that they're no longer on the screen (and so any locks that may
|
|
|
|
// have been held have been released).
|
|
|
|
if (mPendingUpload && mOldTiledBuffer.HasDoubleBufferedTiles()) {
|
|
|
|
mOldTiledBuffer.ReadUnlock();
|
|
|
|
mOldTiledBuffer = TiledLayerBufferComposite();
|
|
|
|
}
|
|
|
|
if (mPendingLowPrecisionUpload && mOldLowPrecisionTiledBuffer.HasDoubleBufferedTiles()) {
|
|
|
|
mOldLowPrecisionTiledBuffer.ReadUnlock();
|
|
|
|
mOldLowPrecisionTiledBuffer = TiledLayerBufferComposite();
|
|
|
|
}
|
|
|
|
mPendingUpload = mPendingLowPrecisionUpload = false;
|
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
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
void
|
2014-03-08 01:34:04 +04:00
|
|
|
TiledContentHost::RenderTile(const TileHost& aTile,
|
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
|
|
|
EffectChain& aEffectChain,
|
|
|
|
float aOpacity,
|
|
|
|
const gfx::Matrix4x4& aTransform,
|
|
|
|
const gfx::Filter& aFilter,
|
|
|
|
const gfx::Rect& aClipRect,
|
|
|
|
const nsIntRegion& aScreenRegion,
|
|
|
|
const nsIntPoint& aTextureOffset,
|
|
|
|
const nsIntSize& aTextureBounds)
|
|
|
|
{
|
2014-03-08 01:34:04 +04:00
|
|
|
if (aTile.IsPlaceholderTile()) {
|
|
|
|
// This shouldn't ever happen, but let's fail semi-gracefully. No need
|
|
|
|
// to warn, the texture update would have already caught this.
|
|
|
|
return;
|
|
|
|
}
|
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-08 01:34:04 +04:00
|
|
|
nsIntRect screenBounds = aScreenRegion.GetBounds();
|
|
|
|
Rect quad(screenBounds.x, screenBounds.y, screenBounds.width, screenBounds.height);
|
2014-03-18 08:06:23 +04:00
|
|
|
quad = aTransform.TransformBounds(quad);
|
2014-03-08 01:34:04 +04:00
|
|
|
|
2014-03-12 02:19:01 +04:00
|
|
|
if (!quad.Intersects(mCompositor->ClipRectInLayersCoordinates(aClipRect))) {
|
2013-11-22 02:07:56 +04:00
|
|
|
return;
|
|
|
|
}
|
|
|
|
|
2014-03-08 01:34:04 +04:00
|
|
|
AutoLockTextureHost autoLock(aTile.mTextureHost);
|
|
|
|
if (autoLock.Failed()) {
|
|
|
|
NS_WARNING("Failed to lock tile");
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
RefPtr<NewTextureSource> source = aTile.mTextureHost->GetTextureSources();
|
|
|
|
if (!source) {
|
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
|
|
|
return;
|
|
|
|
}
|
|
|
|
|
2014-03-08 01:34:04 +04:00
|
|
|
RefPtr<TexturedEffect> effect =
|
|
|
|
CreateTexturedEffect(aTile.mTextureHost->GetFormat(), source, aFilter);
|
|
|
|
if (!effect) {
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
|
|
|
|
aEffectChain.mPrimaryEffect = effect;
|
|
|
|
|
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
|
|
|
nsIntRegionRectIterator it(aScreenRegion);
|
|
|
|
for (const nsIntRect* rect = it.Next(); rect != nullptr; rect = it.Next()) {
|
|
|
|
Rect graphicsRect(rect->x, rect->y, rect->width, rect->height);
|
|
|
|
Rect textureRect(rect->x - aTextureOffset.x, rect->y - aTextureOffset.y,
|
|
|
|
rect->width, rect->height);
|
|
|
|
|
|
|
|
effect->mTextureCoords = Rect(textureRect.x / aTextureBounds.width,
|
|
|
|
textureRect.y / aTextureBounds.height,
|
|
|
|
textureRect.width / aTextureBounds.width,
|
|
|
|
textureRect.height / aTextureBounds.height);
|
2013-11-07 13:53:08 +04:00
|
|
|
mCompositor->DrawQuad(graphicsRect, aClipRect, aEffectChain, aOpacity, aTransform);
|
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-04-27 11:45:08 +04:00
|
|
|
mCompositor->DrawDiagnostics(DIAGNOSTIC_CONTENT|DIAGNOSTIC_TILE,
|
2014-03-25 20:54:39 +04:00
|
|
|
aScreenRegion, aClipRect, aTransform, mFlashCounter);
|
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
|
|
|
}
|
|
|
|
|
|
|
|
void
|
|
|
|
TiledContentHost::RenderLayerBuffer(TiledLayerBufferComposite& aLayerBuffer,
|
|
|
|
EffectChain& aEffectChain,
|
|
|
|
float aOpacity,
|
|
|
|
const gfx::Filter& aFilter,
|
|
|
|
const gfx::Rect& aClipRect,
|
2014-03-27 22:52:08 +04:00
|
|
|
nsIntRegion aVisibleRegion,
|
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
|
|
|
gfx::Matrix4x4 aTransform)
|
|
|
|
{
|
2013-06-14 00:19:39 +04:00
|
|
|
if (!mCompositor) {
|
|
|
|
NS_WARNING("Can't render tiled content host - no compositor");
|
|
|
|
return;
|
|
|
|
}
|
2013-07-24 19:10:55 +04:00
|
|
|
float resolution = aLayerBuffer.GetResolution();
|
2013-12-13 21:31:53 +04:00
|
|
|
gfx::Size layerScale(1, 1);
|
2014-03-27 22:52:08 +04:00
|
|
|
|
|
|
|
// We assume that the current frame resolution is the one used in our high
|
|
|
|
// precision layer buffer. Compensate for a changing frame resolution when
|
|
|
|
// rendering the low precision buffer.
|
2014-03-08 01:34:04 +04:00
|
|
|
if (aLayerBuffer.GetFrameResolution() != mTiledBuffer.GetFrameResolution()) {
|
2014-03-22 13:17:54 +04:00
|
|
|
const CSSToParentLayerScale& layerResolution = aLayerBuffer.GetFrameResolution();
|
|
|
|
const CSSToParentLayerScale& localResolution = mTiledBuffer.GetFrameResolution();
|
2013-11-27 21:33:27 +04:00
|
|
|
layerScale.width = layerScale.height = layerResolution.scale / localResolution.scale;
|
2014-03-27 22:52:08 +04:00
|
|
|
aVisibleRegion.ScaleRoundOut(layerScale.width, layerScale.height);
|
|
|
|
}
|
|
|
|
|
|
|
|
// If we're drawing the low precision buffer, make sure the high precision
|
|
|
|
// buffer is masked out to avoid overdraw and rendering artifacts with
|
|
|
|
// non-opaque layers.
|
|
|
|
nsIntRegion maskRegion;
|
|
|
|
if (resolution != mTiledBuffer.GetResolution()) {
|
|
|
|
maskRegion = mTiledBuffer.GetValidRegion();
|
|
|
|
// XXX This should be ScaleRoundIn, but there is no such function on
|
|
|
|
// nsIntRegion.
|
|
|
|
maskRegion.ScaleRoundOut(layerScale.width, layerScale.height);
|
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-27 22:52:08 +04:00
|
|
|
|
|
|
|
// Make sure the resolution and difference in frame resolution are accounted
|
|
|
|
// for in the layer transform.
|
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
|
|
|
aTransform.Scale(1/(resolution * layerScale.width),
|
|
|
|
1/(resolution * layerScale.height), 1);
|
|
|
|
|
|
|
|
uint32_t rowCount = 0;
|
|
|
|
uint32_t tileX = 0;
|
2014-03-27 22:52:08 +04:00
|
|
|
nsIntRect visibleRect = aVisibleRegion.GetBounds();
|
2014-04-04 21:42:44 +04:00
|
|
|
gfx::IntSize scaledTileSize = aLayerBuffer.GetScaledTileSize();
|
2014-03-27 22:52:08 +04:00
|
|
|
for (int32_t x = visibleRect.x; x < visibleRect.x + visibleRect.width;) {
|
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
|
|
|
rowCount++;
|
2014-04-04 21:42:44 +04:00
|
|
|
int32_t tileStartX = aLayerBuffer.GetTileStart(x, scaledTileSize.width);
|
|
|
|
int32_t w = scaledTileSize.width - tileStartX;
|
2014-03-27 22:52:08 +04:00
|
|
|
if (x + w > visibleRect.x + visibleRect.width) {
|
|
|
|
w = visibleRect.x + visibleRect.width - x;
|
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
|
|
|
}
|
|
|
|
int tileY = 0;
|
2014-03-27 22:52:08 +04:00
|
|
|
for (int32_t y = visibleRect.y; y < visibleRect.y + visibleRect.height;) {
|
2014-04-04 21:42:44 +04:00
|
|
|
int32_t tileStartY = aLayerBuffer.GetTileStart(y, scaledTileSize.height);
|
|
|
|
int32_t h = scaledTileSize.height - tileStartY;
|
2014-03-27 22:52:08 +04:00
|
|
|
if (y + h > visibleRect.y + visibleRect.height) {
|
|
|
|
h = visibleRect.y + visibleRect.height - y;
|
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-08 01:34:04 +04:00
|
|
|
TileHost tileTexture = aLayerBuffer.
|
2014-04-04 21:42:44 +04:00
|
|
|
GetTile(nsIntPoint(aLayerBuffer.RoundDownToTileEdge(x, scaledTileSize.width),
|
|
|
|
aLayerBuffer.RoundDownToTileEdge(y, scaledTileSize.height)));
|
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
|
|
|
if (tileTexture != aLayerBuffer.GetPlaceholderTile()) {
|
|
|
|
nsIntRegion tileDrawRegion;
|
2014-03-27 22:52:08 +04:00
|
|
|
tileDrawRegion.And(nsIntRect(x, y, w, h), aLayerBuffer.GetValidRegion());
|
|
|
|
tileDrawRegion.And(tileDrawRegion, aVisibleRegion);
|
|
|
|
tileDrawRegion.Sub(tileDrawRegion, maskRegion);
|
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
|
|
|
|
|
|
|
if (!tileDrawRegion.IsEmpty()) {
|
2014-03-27 22:52:08 +04:00
|
|
|
tileDrawRegion.ScaleRoundOut(resolution, resolution);
|
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
|
|
|
nsIntPoint tileOffset((x - tileStartX) * resolution,
|
|
|
|
(y - tileStartY) * resolution);
|
2014-04-04 21:42:44 +04:00
|
|
|
gfx::IntSize tileSize = aLayerBuffer.GetTileSize();
|
2013-11-07 13:53:08 +04:00
|
|
|
RenderTile(tileTexture, aEffectChain, aOpacity, aTransform, aFilter, aClipRect, tileDrawRegion,
|
2014-04-04 21:42:44 +04:00
|
|
|
tileOffset, nsIntSize(tileSize.width, tileSize.height));
|
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
|
|
|
}
|
|
|
|
}
|
|
|
|
tileY++;
|
|
|
|
y += h;
|
|
|
|
}
|
|
|
|
tileX++;
|
|
|
|
x += w;
|
|
|
|
}
|
2014-03-27 22:52:08 +04:00
|
|
|
gfx::Rect rect(visibleRect.x, visibleRect.y,
|
|
|
|
visibleRect.width, visibleRect.height);
|
2014-04-27 11:45:08 +04:00
|
|
|
GetCompositor()->DrawDiagnostics(DIAGNOSTIC_CONTENT,
|
2014-03-25 20:54:39 +04:00
|
|
|
rect, aClipRect, aTransform, mFlashCounter);
|
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
|
|
|
}
|
|
|
|
|
|
|
|
void
|
|
|
|
TiledContentHost::PrintInfo(nsACString& aTo, const char* aPrefix)
|
|
|
|
{
|
|
|
|
aTo += aPrefix;
|
|
|
|
aTo += nsPrintfCString("TiledContentHost (0x%p)", this);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
2013-08-08 16:53:12 +04:00
|
|
|
#ifdef MOZ_DUMP_PAINTING
|
2013-05-26 06:44:24 +04:00
|
|
|
void
|
|
|
|
TiledContentHost::Dump(FILE* aFile,
|
|
|
|
const char* aPrefix,
|
|
|
|
bool aDumpHtml)
|
|
|
|
{
|
|
|
|
if (!aFile) {
|
|
|
|
aFile = stderr;
|
|
|
|
}
|
|
|
|
|
2014-03-08 01:34:04 +04:00
|
|
|
TiledLayerBufferComposite::Iterator it = mTiledBuffer.TilesBegin();
|
|
|
|
TiledLayerBufferComposite::Iterator stop = mTiledBuffer.TilesEnd();
|
2013-05-26 06:44:24 +04:00
|
|
|
if (aDumpHtml) {
|
2013-11-24 02:44:18 +04:00
|
|
|
fprintf_stderr(aFile, "<ul>");
|
2013-05-26 06:44:24 +04:00
|
|
|
}
|
|
|
|
for (;it != stop; ++it) {
|
2013-11-24 02:44:18 +04:00
|
|
|
fprintf_stderr(aFile, "%s", aPrefix);
|
|
|
|
fprintf_stderr(aFile, aDumpHtml ? "<li> <a href=" : "Tile ");
|
2014-03-08 01:34:04 +04:00
|
|
|
if (it->IsPlaceholderTile()) {
|
|
|
|
fprintf_stderr(aFile, "empty tile");
|
|
|
|
} else {
|
|
|
|
DumpTextureHost(aFile, it->mTextureHost);
|
|
|
|
}
|
2013-11-24 02:44:18 +04:00
|
|
|
fprintf_stderr(aFile, aDumpHtml ? " >Tile</a></li>" : " ");
|
2013-05-26 06:44:24 +04:00
|
|
|
}
|
|
|
|
if (aDumpHtml) {
|
2013-11-24 02:44:18 +04:00
|
|
|
fprintf_stderr(aFile, "</ul>");
|
2013-05-26 06:44:24 +04:00
|
|
|
}
|
|
|
|
}
|
2013-08-08 16:53:12 +04:00
|
|
|
#endif
|
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
|