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 02:20:52 -07: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 "LayersLogging.h"
|
2013-08-11 16:17:23 -07:00
|
|
|
#include <stdint.h> // for uint8_t
|
2015-07-15 18:29:26 -07:00
|
|
|
#include "ImageTypes.h" // for ImageFormat
|
2013-08-11 16:17:23 -07:00
|
|
|
#include "mozilla/gfx/Matrix.h" // for Matrix4x4, Matrix
|
2015-05-29 08:01:46 -07:00
|
|
|
#include "mozilla/gfx/Point.h" // for IntSize
|
2013-08-11 16:17:23 -07:00
|
|
|
#include "nsDebug.h" // for NS_ERROR
|
|
|
|
#include "nsPoint.h" // for nsIntPoint
|
2015-05-07 02:07:53 -07:00
|
|
|
#include "nsRect.h" // for mozilla::gfx::IntRect
|
2015-10-15 08:53:37 -07:00
|
|
|
#include "base/basictypes.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 02:20:52 -07:00
|
|
|
|
|
|
|
using namespace mozilla::gfx;
|
|
|
|
|
|
|
|
namespace mozilla {
|
|
|
|
namespace layers {
|
|
|
|
|
2014-06-19 15:36:25 -07:00
|
|
|
void
|
|
|
|
AppendToString(std::stringstream& aStream, const void* p,
|
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 02:20:52 -07:00
|
|
|
const char* pfx, const char* sfx)
|
|
|
|
{
|
2014-06-19 15:36:25 -07:00
|
|
|
aStream << pfx;
|
|
|
|
aStream << nsPrintfCString("%p", p).get();
|
|
|
|
aStream << sfx;
|
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 02:20:52 -07:00
|
|
|
}
|
|
|
|
|
2014-06-19 15:36:25 -07:00
|
|
|
void
|
|
|
|
AppendToString(std::stringstream& aStream, FrameMetrics::ViewID n,
|
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 02:20:52 -07:00
|
|
|
const char* pfx, const char* sfx)
|
|
|
|
{
|
2014-06-19 15:36:25 -07:00
|
|
|
aStream << pfx;
|
|
|
|
aStream << n;
|
|
|
|
aStream << sfx;
|
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 02:20:52 -07:00
|
|
|
}
|
|
|
|
|
2015-09-24 18:16:45 -07:00
|
|
|
void
|
|
|
|
AppendToString(std::stringstream& aStream, const Color& c,
|
|
|
|
const char* pfx, const char* sfx)
|
|
|
|
{
|
|
|
|
aStream << pfx;
|
|
|
|
aStream << nsPrintfCString(
|
|
|
|
"rgba(%d, %d, %d, %f)",
|
|
|
|
uint8_t(c.r*255.f), uint8_t(c.g*255.f), uint8_t(c.b*255.f), c.a).get();
|
|
|
|
aStream << sfx;
|
|
|
|
}
|
|
|
|
|
2014-11-06 05:05:51 -08:00
|
|
|
void
|
|
|
|
AppendToString(std::stringstream& aStream, const nsPoint& p,
|
|
|
|
const char* pfx, const char* sfx)
|
|
|
|
{
|
|
|
|
aStream << pfx;
|
|
|
|
aStream << nsPrintfCString("(x=%d, y=%d)", p.x, p.y).get();
|
|
|
|
aStream << sfx;
|
|
|
|
}
|
|
|
|
|
|
|
|
void
|
|
|
|
AppendToString(std::stringstream& aStream, const nsRect& r,
|
|
|
|
const char* pfx, const char* sfx)
|
|
|
|
{
|
|
|
|
aStream << pfx;
|
|
|
|
aStream << nsPrintfCString(
|
|
|
|
"(x=%d, y=%d, w=%d, h=%d)",
|
|
|
|
r.x, r.y, r.width, r.height).get();
|
|
|
|
aStream << sfx;
|
|
|
|
}
|
|
|
|
|
2014-06-19 15:36:25 -07:00
|
|
|
void
|
|
|
|
AppendToString(std::stringstream& aStream, const nsIntPoint& p,
|
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 02:20:52 -07:00
|
|
|
const char* pfx, const char* sfx)
|
|
|
|
{
|
2014-06-19 15:36:25 -07:00
|
|
|
aStream << pfx;
|
|
|
|
aStream << nsPrintfCString("(x=%d, y=%d)", p.x, p.y).get();
|
|
|
|
aStream << sfx;
|
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 02:20:52 -07:00
|
|
|
}
|
|
|
|
|
2014-06-19 15:36:25 -07:00
|
|
|
void
|
2015-05-07 02:07:53 -07:00
|
|
|
AppendToString(std::stringstream& aStream, const IntRect& r,
|
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 02:20:52 -07:00
|
|
|
const char* pfx, const char* sfx)
|
|
|
|
{
|
2014-06-19 15:36:25 -07:00
|
|
|
aStream << pfx;
|
|
|
|
aStream << nsPrintfCString(
|
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 02:20:52 -07:00
|
|
|
"(x=%d, y=%d, w=%d, h=%d)",
|
2014-06-19 15:36:25 -07:00
|
|
|
r.x, r.y, r.width, r.height).get();
|
|
|
|
aStream << sfx;
|
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 02:20:52 -07:00
|
|
|
}
|
|
|
|
|
2014-11-25 05:45:20 -08:00
|
|
|
void
|
|
|
|
AppendToString(std::stringstream& aStream, const nsRegion& r,
|
|
|
|
const char* pfx, const char* sfx)
|
|
|
|
{
|
|
|
|
aStream << pfx;
|
|
|
|
|
|
|
|
aStream << "< ";
|
2016-01-18 17:20:58 -08:00
|
|
|
for (auto iter = r.RectIter(); !iter.Done(); iter.Next()) {
|
|
|
|
AppendToString(aStream, iter.Get());
|
2014-11-25 05:45:20 -08:00
|
|
|
aStream << "; ";
|
|
|
|
}
|
|
|
|
aStream << ">";
|
|
|
|
|
|
|
|
aStream << sfx;
|
|
|
|
}
|
|
|
|
|
2014-06-19 15:36:25 -07:00
|
|
|
void
|
|
|
|
AppendToString(std::stringstream& aStream, const nsIntRegion& r,
|
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 02:20:52 -07:00
|
|
|
const char* pfx, const char* sfx)
|
|
|
|
{
|
2014-06-19 15:36:25 -07:00
|
|
|
aStream << pfx;
|
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 02:20:52 -07:00
|
|
|
|
2014-06-19 15:36:25 -07:00
|
|
|
aStream << "< ";
|
2016-01-18 17:20:58 -08:00
|
|
|
for (auto iter = r.RectIter(); !iter.Done(); iter.Next()) {
|
|
|
|
AppendToString(aStream, iter.Get());
|
2014-06-19 15:36:25 -07:00
|
|
|
aStream << "; ";
|
|
|
|
}
|
|
|
|
aStream << ">";
|
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 02:20:52 -07:00
|
|
|
|
2014-06-19 15:36:25 -07:00
|
|
|
aStream << sfx;
|
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 02:20:52 -07:00
|
|
|
}
|
|
|
|
|
2014-11-14 04:40:14 -08:00
|
|
|
void
|
|
|
|
AppendToString(std::stringstream& aStream, const EventRegions& e,
|
|
|
|
const char* pfx, const char* sfx)
|
|
|
|
{
|
|
|
|
aStream << pfx << "{";
|
|
|
|
if (!e.mHitRegion.IsEmpty()) {
|
|
|
|
AppendToString(aStream, e.mHitRegion, " hitregion=", "");
|
|
|
|
}
|
|
|
|
if (!e.mDispatchToContentHitRegion.IsEmpty()) {
|
|
|
|
AppendToString(aStream, e.mDispatchToContentHitRegion, " dispatchtocontentregion=", "");
|
|
|
|
}
|
2015-03-24 06:13:24 -07:00
|
|
|
if (!e.mNoActionRegion.IsEmpty()) {
|
|
|
|
AppendToString(aStream, e.mNoActionRegion, " NoActionRegion=","");
|
|
|
|
}
|
|
|
|
if (!e.mHorizontalPanRegion.IsEmpty()) {
|
|
|
|
AppendToString(aStream, e.mHorizontalPanRegion, " HorizontalPanRegion=", "");
|
|
|
|
}
|
|
|
|
if (!e.mVerticalPanRegion.IsEmpty()) {
|
|
|
|
AppendToString(aStream, e.mVerticalPanRegion, " VerticalPanRegion=", "");
|
|
|
|
}
|
2014-11-14 04:40:14 -08:00
|
|
|
aStream << "}" << sfx;
|
|
|
|
}
|
|
|
|
|
2014-06-19 15:36:25 -07:00
|
|
|
void
|
|
|
|
AppendToString(std::stringstream& aStream, const FrameMetrics& m,
|
2014-07-07 12:48:16 -07:00
|
|
|
const char* pfx, const char* sfx, bool detailed)
|
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 02:20:52 -07:00
|
|
|
{
|
2014-06-19 15:36:25 -07:00
|
|
|
aStream << pfx;
|
2015-05-07 11:44:03 -07:00
|
|
|
AppendToString(aStream, m.GetCompositionBounds(), "{ [cb=");
|
2014-12-27 09:48:27 -08:00
|
|
|
AppendToString(aStream, m.GetScrollableRect(), "] [sr=");
|
2014-12-18 13:33:10 -08:00
|
|
|
AppendToString(aStream, m.GetScrollOffset(), "] [s=");
|
2014-07-10 11:52:40 -07:00
|
|
|
if (m.GetDoSmoothScroll()) {
|
2014-12-18 13:33:10 -08:00
|
|
|
AppendToString(aStream, m.GetSmoothScrollOffset(), "] [ss=");
|
2014-07-10 11:52:40 -07:00
|
|
|
}
|
2014-12-23 07:35:58 -08:00
|
|
|
AppendToString(aStream, m.GetDisplayPort(), "] [dp=");
|
2014-12-30 11:07:57 -08:00
|
|
|
AppendToString(aStream, m.GetCriticalDisplayPort(), "] [cdp=");
|
2014-12-18 13:33:10 -08:00
|
|
|
AppendToString(aStream, m.GetBackgroundColor(), "] [color=");
|
2014-07-07 12:48:16 -07:00
|
|
|
if (!detailed) {
|
2014-12-18 13:33:10 -08:00
|
|
|
AppendToString(aStream, m.GetScrollId(), "] [scrollId=");
|
2014-08-27 19:13:39 -07:00
|
|
|
if (m.GetScrollParentId() != FrameMetrics::NULL_SCROLL_ID) {
|
2014-12-18 13:33:10 -08:00
|
|
|
AppendToString(aStream, m.GetScrollParentId(), "] [scrollParent=");
|
2014-08-27 19:13:39 -07:00
|
|
|
}
|
2015-06-24 15:45:46 -07:00
|
|
|
if (m.IsRootContent()) {
|
|
|
|
aStream << "] [rcd";
|
|
|
|
}
|
2015-05-26 12:40:24 -07:00
|
|
|
if (m.HasClipRect()) {
|
|
|
|
AppendToString(aStream, m.ClipRect(), "] [clip=");
|
|
|
|
}
|
2015-03-06 10:54:10 -08:00
|
|
|
AppendToString(aStream, m.GetZoom(), "] [z=", "] }");
|
2014-07-07 12:48:16 -07:00
|
|
|
} else {
|
2014-12-18 13:33:10 -08:00
|
|
|
AppendToString(aStream, m.GetDisplayPortMargins(), " [dpm=");
|
|
|
|
aStream << nsPrintfCString("] um=%d", m.GetUseDisplayPortMargins()).get();
|
|
|
|
AppendToString(aStream, m.GetRootCompositionSize(), "] [rcs=");
|
|
|
|
AppendToString(aStream, m.GetViewport(), "] [v=");
|
2015-03-30 15:11:12 -07:00
|
|
|
aStream << nsPrintfCString("] [z=(ld=%.3f r=%.3f",
|
|
|
|
m.GetDevPixelsPerCSSPixel().scale,
|
|
|
|
m.GetPresShellResolution()).get();
|
2015-03-06 10:54:10 -08:00
|
|
|
AppendToString(aStream, m.GetCumulativeResolution(), " cr=");
|
|
|
|
AppendToString(aStream, m.GetZoom(), " z=");
|
|
|
|
AppendToString(aStream, m.GetExtraResolution(), " er=");
|
|
|
|
aStream << nsPrintfCString(")] [u=(%d %d %lu)",
|
2014-07-10 11:52:40 -07:00
|
|
|
m.GetScrollOffsetUpdated(), m.GetDoSmoothScroll(),
|
|
|
|
m.GetScrollGeneration()).get();
|
2014-12-18 13:33:10 -08:00
|
|
|
AppendToString(aStream, m.GetScrollParentId(), "] [p=");
|
2015-06-24 15:45:46 -07:00
|
|
|
aStream << nsPrintfCString("] [i=(%ld %lld %d)] }",
|
|
|
|
m.GetPresShellId(), m.GetScrollId(), m.IsRootContent()).get();
|
2014-07-07 12:48:16 -07:00
|
|
|
}
|
2014-06-19 15:36:25 -07:00
|
|
|
aStream << sfx;
|
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 02:20:52 -07:00
|
|
|
}
|
|
|
|
|
2014-09-19 06:33:54 -07:00
|
|
|
void
|
|
|
|
AppendToString(std::stringstream& aStream, const ScrollableLayerGuid& s,
|
|
|
|
const char* pfx, const char* sfx)
|
|
|
|
{
|
|
|
|
aStream << pfx
|
2015-05-31 12:44:40 -07:00
|
|
|
<< nsPrintfCString("{ l=%" PRIu64 ", p=%u, v=%" PRIu64 " }", s.mLayersId, s.mPresShellId, s.mScrollId).get()
|
2014-09-19 06:33:54 -07:00
|
|
|
<< sfx;
|
|
|
|
}
|
|
|
|
|
2015-06-17 09:32:41 -07:00
|
|
|
void
|
|
|
|
AppendToString(std::stringstream& aStream, const ZoomConstraints& z,
|
|
|
|
const char* pfx, const char* sfx)
|
|
|
|
{
|
|
|
|
aStream << pfx
|
|
|
|
<< nsPrintfCString("{ z=%d dt=%d min=%f max=%f }", z.mAllowZoom, z.mAllowDoubleTapZoom, z.mMinZoom.scale, z.mMaxZoom.scale).get()
|
|
|
|
<< sfx;
|
|
|
|
}
|
|
|
|
|
2014-06-19 15:36:25 -07:00
|
|
|
void
|
2015-05-21 06:26:46 -07:00
|
|
|
AppendToString(std::stringstream& aStream, const Matrix& m,
|
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 02:20:52 -07:00
|
|
|
const char* pfx, const char* sfx)
|
|
|
|
{
|
2014-06-19 15:36:25 -07:00
|
|
|
aStream << pfx;
|
2015-05-21 06:26:46 -07:00
|
|
|
if (m.IsIdentity()) {
|
|
|
|
aStream << "[ I ]";
|
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 02:20:52 -07:00
|
|
|
} else {
|
2014-06-19 15:36:25 -07:00
|
|
|
aStream << nsPrintfCString(
|
2015-05-21 06:26:46 -07:00
|
|
|
"[ %g %g; %g %g; %g %g; ]",
|
|
|
|
m._11, m._12, m._21, m._22, m._31, m._32).get();
|
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 02:20:52 -07:00
|
|
|
}
|
2014-06-19 15:36:25 -07:00
|
|
|
aStream << sfx;
|
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 02:20:52 -07:00
|
|
|
}
|
|
|
|
|
2014-08-07 14:44:08 -07:00
|
|
|
void
|
|
|
|
AppendToString(std::stringstream& aStream, const Matrix5x4& m,
|
|
|
|
const char* pfx, const char* sfx)
|
|
|
|
{
|
|
|
|
aStream << pfx;
|
|
|
|
aStream << nsPrintfCString(
|
|
|
|
"[ %g %g %g %g; %g %g %g %g; %g %g %g %g; %g %g %g %g; %g %g %g %g]",
|
|
|
|
m._11, m._12, m._13, m._14,
|
|
|
|
m._21, m._22, m._23, m._24,
|
|
|
|
m._31, m._32, m._33, m._34,
|
|
|
|
m._41, m._42, m._43, m._44,
|
|
|
|
m._51, m._52, m._53, m._54).get();
|
|
|
|
aStream << sfx;
|
|
|
|
}
|
|
|
|
|
2014-06-19 15:36:25 -07:00
|
|
|
void
|
|
|
|
AppendToString(std::stringstream& aStream, const Filter filter,
|
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 02:20:52 -07:00
|
|
|
const char* pfx, const char* sfx)
|
|
|
|
{
|
2014-06-19 15:36:25 -07:00
|
|
|
aStream << pfx;
|
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 02:20:52 -07:00
|
|
|
|
|
|
|
switch (filter) {
|
2014-06-19 15:36:25 -07:00
|
|
|
case Filter::GOOD: aStream << "Filter::GOOD"; break;
|
|
|
|
case Filter::LINEAR: aStream << "Filter::LINEAR"; break;
|
|
|
|
case Filter::POINT: aStream << "Filter::POINT"; break;
|
2015-10-05 17:12:46 -07:00
|
|
|
default:
|
|
|
|
NS_ERROR("unknown filter type");
|
|
|
|
aStream << "???";
|
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 02:20:52 -07:00
|
|
|
}
|
2014-06-19 15:36:25 -07:00
|
|
|
aStream << sfx;
|
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 02:20:52 -07:00
|
|
|
}
|
|
|
|
|
2014-06-19 15:36:25 -07:00
|
|
|
void
|
|
|
|
AppendToString(std::stringstream& aStream, TextureFlags 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 02:20:52 -07:00
|
|
|
const char* pfx, const char* sfx)
|
|
|
|
{
|
2014-06-19 15:36:25 -07:00
|
|
|
aStream << pfx;
|
2014-04-25 19:34:05 -07:00
|
|
|
if (flags == TextureFlags::NO_FLAGS) {
|
2014-06-19 15:36:25 -07:00
|
|
|
aStream << "NoFlags";
|
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 02:20:52 -07:00
|
|
|
} else {
|
|
|
|
|
|
|
|
#define AppendFlag(test) \
|
|
|
|
{ \
|
2014-04-25 19:34:05 -07:00
|
|
|
if (!!(flags & test)) { \
|
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 02:20:52 -07:00
|
|
|
if (previous) { \
|
2014-06-19 15:36:25 -07:00
|
|
|
aStream << "|"; \
|
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 02:20:52 -07:00
|
|
|
} \
|
2014-06-19 15:36:25 -07:00
|
|
|
aStream << #test; \
|
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 02:20:52 -07:00
|
|
|
previous = true; \
|
|
|
|
} \
|
|
|
|
}
|
|
|
|
bool previous = false;
|
2014-04-25 19:34:05 -07:00
|
|
|
AppendFlag(TextureFlags::USE_NEAREST_FILTER);
|
2014-11-17 17:02:19 -08:00
|
|
|
AppendFlag(TextureFlags::ORIGIN_BOTTOM_LEFT);
|
2014-04-25 19:34:05 -07:00
|
|
|
AppendFlag(TextureFlags::DISALLOW_BIGIMAGE);
|
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 02:20:52 -07:00
|
|
|
|
|
|
|
#undef AppendFlag
|
|
|
|
}
|
2014-06-19 15:36:25 -07:00
|
|
|
aStream << sfx;
|
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 02:20:52 -07:00
|
|
|
}
|
|
|
|
|
2014-06-19 15:36:25 -07:00
|
|
|
void
|
|
|
|
AppendToString(std::stringstream& aStream, mozilla::gfx::SurfaceFormat format,
|
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 02:20:52 -07:00
|
|
|
const char* pfx, const char* sfx)
|
|
|
|
{
|
2014-06-19 15:36:25 -07:00
|
|
|
aStream << pfx;
|
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 02:20:52 -07:00
|
|
|
switch (format) {
|
2014-06-19 15:36:25 -07:00
|
|
|
case SurfaceFormat::B8G8R8A8: aStream << "SurfaceFormat::B8G8R8A8"; break;
|
|
|
|
case SurfaceFormat::B8G8R8X8: aStream << "SurfaceFormat::B8G8R8X8"; break;
|
|
|
|
case SurfaceFormat::R8G8B8A8: aStream << "SurfaceFormat::R8G8B8A8"; break;
|
|
|
|
case SurfaceFormat::R8G8B8X8: aStream << "SurfaceFormat::R8G8B8X8"; break;
|
2015-10-22 23:01:31 -07:00
|
|
|
case SurfaceFormat::R5G6B5_UINT16:
|
|
|
|
aStream << "SurfaceFormat::R5G6B5_UINT16"; break;
|
2014-06-19 15:36:25 -07:00
|
|
|
case SurfaceFormat::A8: aStream << "SurfaceFormat::A8"; break;
|
|
|
|
case SurfaceFormat::YUV: aStream << "SurfaceFormat::YUV"; break;
|
2015-08-03 14:57:19 -07:00
|
|
|
case SurfaceFormat::NV12: aStream << "SurfaceFormat::NV12"; break;
|
2014-06-19 15:36:25 -07:00
|
|
|
case SurfaceFormat::UNKNOWN: aStream << "SurfaceFormat::UNKNOWN"; break;
|
2015-07-15 18:29:26 -07:00
|
|
|
default:
|
|
|
|
NS_ERROR("unknown surface format");
|
|
|
|
aStream << "???";
|
|
|
|
}
|
|
|
|
|
|
|
|
aStream << sfx;
|
|
|
|
}
|
|
|
|
|
|
|
|
void
|
|
|
|
AppendToString(std::stringstream& aStream, gfx::SurfaceType aType,
|
|
|
|
const char* pfx, const char* sfx)
|
|
|
|
{
|
|
|
|
aStream << pfx;
|
|
|
|
switch(aType) {
|
|
|
|
case SurfaceType::DATA:
|
|
|
|
aStream << "SurfaceType::DATA"; break;
|
|
|
|
case SurfaceType::D2D1_BITMAP:
|
|
|
|
aStream << "SurfaceType::D2D1_BITMAP"; break;
|
|
|
|
case SurfaceType::D2D1_DRAWTARGET:
|
|
|
|
aStream << "SurfaceType::D2D1_DRAWTARGET"; break;
|
|
|
|
case SurfaceType::CAIRO:
|
|
|
|
aStream << "SurfaceType::CAIRO"; break;
|
|
|
|
case SurfaceType::CAIRO_IMAGE:
|
|
|
|
aStream << "SurfaceType::CAIRO_IMAGE"; break;
|
|
|
|
case SurfaceType::COREGRAPHICS_IMAGE:
|
|
|
|
aStream << "SurfaceType::COREGRAPHICS_IMAGE"; break;
|
|
|
|
case SurfaceType::COREGRAPHICS_CGCONTEXT:
|
|
|
|
aStream << "SurfaceType::COREGRAPHICS_CGCONTEXT"; break;
|
|
|
|
case SurfaceType::SKIA:
|
|
|
|
aStream << "SurfaceType::SKIA"; break;
|
|
|
|
case SurfaceType::DUAL_DT:
|
|
|
|
aStream << "SurfaceType::DUAL_DT"; break;
|
|
|
|
case SurfaceType::D2D1_1_IMAGE:
|
|
|
|
aStream << "SurfaceType::D2D1_1_IMAGE"; break;
|
|
|
|
case SurfaceType::RECORDING:
|
|
|
|
aStream << "SurfaceType::RECORDING"; break;
|
|
|
|
case SurfaceType::TILED:
|
|
|
|
aStream << "SurfaceType::TILED"; break;
|
|
|
|
default:
|
|
|
|
NS_ERROR("unknown surface type");
|
|
|
|
aStream << "???";
|
|
|
|
}
|
|
|
|
aStream << sfx;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
void
|
|
|
|
AppendToString(std::stringstream& aStream, ImageFormat format,
|
|
|
|
const char* pfx, const char* sfx)
|
|
|
|
{
|
|
|
|
aStream << pfx;
|
|
|
|
switch (format) {
|
|
|
|
case ImageFormat::PLANAR_YCBCR:
|
|
|
|
aStream << "ImageFormat::PLANAR_YCBCR"; break;
|
|
|
|
case ImageFormat::GRALLOC_PLANAR_YCBCR:
|
|
|
|
aStream << "ImageFormat::GRALLOC_PLANAR_YCBCR"; break;
|
|
|
|
case ImageFormat::GONK_CAMERA_IMAGE:
|
|
|
|
aStream << "ImageFormat::GONK_CAMERA_IMAGE"; break;
|
|
|
|
case ImageFormat::SHARED_RGB:
|
|
|
|
aStream << "ImageFormat::SHARED_RGB"; break;
|
|
|
|
case ImageFormat::CAIRO_SURFACE:
|
|
|
|
aStream << "ImageFormat::CAIRO_SURFACE"; break;
|
|
|
|
case ImageFormat::MAC_IOSURFACE:
|
|
|
|
aStream << "ImageFormat::MAC_IOSURFACE"; break;
|
|
|
|
case ImageFormat::SURFACE_TEXTURE:
|
|
|
|
aStream << "ImageFormat::SURFACE_TEXTURE"; break;
|
|
|
|
case ImageFormat::EGLIMAGE:
|
|
|
|
aStream << "ImageFormat::EGLIMAGE"; break;
|
|
|
|
case ImageFormat::D3D9_RGB32_TEXTURE:
|
|
|
|
aStream << "ImageFormat::D3D9_RBG32_TEXTURE"; break;
|
|
|
|
case ImageFormat::OVERLAY_IMAGE:
|
|
|
|
aStream << "ImageFormat::OVERLAY_IMAGE"; break;
|
|
|
|
case ImageFormat::D3D11_SHARE_HANDLE_TEXTURE:
|
|
|
|
aStream << "ImageFormat::D3D11_SHARE_HANDLE_TEXTURE"; break;
|
|
|
|
default:
|
|
|
|
NS_ERROR("unknown image format");
|
|
|
|
aStream << "???";
|
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 02:20:52 -07:00
|
|
|
}
|
|
|
|
|
2014-06-19 15:36:25 -07:00
|
|
|
aStream << sfx;
|
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 02:20:52 -07:00
|
|
|
}
|
|
|
|
|
2015-07-13 08:25:42 -07:00
|
|
|
} // namespace layers
|
|
|
|
} // namespace mozilla
|
2014-08-02 03:03:00 -07:00
|
|
|
|
|
|
|
void
|
|
|
|
print_stderr(std::stringstream& aStr)
|
|
|
|
{
|
|
|
|
#if defined(ANDROID)
|
|
|
|
// On Android logcat output is truncated to 1024 chars per line, and
|
|
|
|
// we usually use std::stringstream to build up giant multi-line gobs
|
|
|
|
// of output. So to avoid the truncation we find the newlines and
|
|
|
|
// print the lines individually.
|
2014-11-28 14:41:47 -08:00
|
|
|
std::string line;
|
|
|
|
while (std::getline(aStr, line)) {
|
|
|
|
printf_stderr("%s\n", line.c_str());
|
2014-08-02 03:03:00 -07:00
|
|
|
}
|
|
|
|
#else
|
|
|
|
printf_stderr("%s", aStr.str().c_str());
|
|
|
|
#endif
|
|
|
|
}
|
|
|
|
|
|
|
|
void
|
|
|
|
fprint_stderr(FILE* aFile, std::stringstream& aStr)
|
|
|
|
{
|
|
|
|
if (aFile == stderr) {
|
|
|
|
print_stderr(aStr);
|
|
|
|
} else {
|
|
|
|
fprintf_stderr(aFile, "%s", aStr.str().c_str());
|
|
|
|
}
|
|
|
|
}
|