Bug 825928: Land layers refactoring. r=jrmuizel,bas,nical,mattwoodrow,roc,nrc,benwa,bjacob,jgilbert,kchen CLOSED TREE
Please contact Bas Schouten <bschouten@mozilla.com>, Nicolas Silva <nsilva@mozilla.com> or Nicholas Cameron <ncameron@mozilla.com> with general questions. Below is a rough list of authors to contact with specific questions.
Authors:
gfx/layers/Compositor.* gfx/layers/Effects.h - Compositor Interface - bas,nrc,nical
gfx/layers/d3d* - D3D9/D3D10 - bas
gfx/layers/ThebesLayer* - ThebesLayers - nrc,bas
gfx/layers/composite/* - CompositeLayers - nrc,nical
gfx/layers/client/* - Client - nrc,nical,bas
gfx/layers/*Image* - nical
gfx/layers/ipc ipc - IPC - nical
gfx/layers/opengl - CompositorOGL - nrc,nical
gfx/2d - bas,nrc
gfx/gl - GLContext - bjacob
dom/* layout/* - DOM - mattwoodrow
2013-04-10 13:20:52 +04:00
|
|
|
/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*-
|
|
|
|
* vim: sw=2 ts=8 et :
|
|
|
|
*/
|
|
|
|
/* This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
|
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
|
|
|
|
|
|
|
#include "LayersLogging.h"
|
2013-08-12 03:17:23 +04:00
|
|
|
#include <stdint.h> // for uint8_t
|
2015-07-16 04:29:26 +03:00
|
|
|
#include "ImageTypes.h" // for ImageFormat
|
2013-08-12 03:17:23 +04:00
|
|
|
#include "mozilla/gfx/Matrix.h" // for Matrix4x4, Matrix
|
2015-05-29 18:01:46 +03:00
|
|
|
#include "mozilla/gfx/Point.h" // for IntSize
|
2013-08-12 03:17:23 +04:00
|
|
|
#include "nsDebug.h" // for NS_ERROR
|
|
|
|
#include "nsPoint.h" // for nsIntPoint
|
2015-05-07 12:07:53 +03:00
|
|
|
#include "nsRect.h" // for mozilla::gfx::IntRect
|
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
|
|
|
|
|
|
|
using namespace mozilla::gfx;
|
|
|
|
|
|
|
|
namespace mozilla {
|
|
|
|
namespace layers {
|
|
|
|
|
2014-06-20 02:36:25 +04: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 13:20:52 +04:00
|
|
|
const char* pfx, const char* sfx)
|
|
|
|
{
|
2014-06-20 02:36:25 +04: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 13:20:52 +04:00
|
|
|
}
|
|
|
|
|
2014-06-20 02:36:25 +04: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 13:20:52 +04:00
|
|
|
const char* pfx, const char* sfx)
|
|
|
|
{
|
2014-06-20 02:36:25 +04: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 13:20:52 +04:00
|
|
|
}
|
|
|
|
|
2015-09-25 04:16:45 +03: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 16:05:51 +03: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-20 02:36:25 +04: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 13:20:52 +04:00
|
|
|
const char* pfx, const char* sfx)
|
|
|
|
{
|
2014-06-20 02:36:25 +04: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 13:20:52 +04:00
|
|
|
}
|
|
|
|
|
2014-06-20 02:36:25 +04:00
|
|
|
void
|
2015-05-07 12:07:53 +03: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 13:20:52 +04:00
|
|
|
const char* pfx, const char* sfx)
|
|
|
|
{
|
2014-06-20 02:36:25 +04: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 13:20:52 +04:00
|
|
|
"(x=%d, y=%d, w=%d, h=%d)",
|
2014-06-20 02:36:25 +04: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 13:20:52 +04:00
|
|
|
}
|
|
|
|
|
2014-11-25 16:45:20 +03:00
|
|
|
void
|
|
|
|
AppendToString(std::stringstream& aStream, const nsRegion& r,
|
|
|
|
const char* pfx, const char* sfx)
|
|
|
|
{
|
|
|
|
aStream << pfx;
|
|
|
|
|
|
|
|
nsRegionRectIterator it(r);
|
|
|
|
aStream << "< ";
|
|
|
|
while (const nsRect* sr = it.Next()) {
|
|
|
|
AppendToString(aStream, *sr);
|
|
|
|
aStream << "; ";
|
|
|
|
}
|
|
|
|
aStream << ">";
|
|
|
|
|
|
|
|
aStream << sfx;
|
|
|
|
}
|
|
|
|
|
2014-06-20 02:36:25 +04: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 13:20:52 +04:00
|
|
|
const char* pfx, const char* sfx)
|
|
|
|
{
|
2014-06-20 02:36:25 +04: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 13:20:52 +04:00
|
|
|
|
|
|
|
nsIntRegionRectIterator it(r);
|
2014-06-20 02:36:25 +04:00
|
|
|
aStream << "< ";
|
2015-05-07 12:07:53 +03:00
|
|
|
while (const IntRect* sr = it.Next()) {
|
2014-06-20 02:36:25 +04:00
|
|
|
AppendToString(aStream, *sr);
|
|
|
|
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 13:20:52 +04:00
|
|
|
|
2014-06-20 02:36:25 +04: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 13:20:52 +04:00
|
|
|
}
|
|
|
|
|
2014-11-14 15:40:14 +03: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 16:13:24 +03: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 15:40:14 +03:00
|
|
|
aStream << "}" << sfx;
|
|
|
|
}
|
|
|
|
|
2014-06-20 02:36:25 +04:00
|
|
|
void
|
|
|
|
AppendToString(std::stringstream& aStream, const FrameMetrics& m,
|
2014-07-07 23:48:16 +04: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 13:20:52 +04:00
|
|
|
{
|
2014-06-20 02:36:25 +04:00
|
|
|
aStream << pfx;
|
2015-05-07 21:44:03 +03:00
|
|
|
AppendToString(aStream, m.GetCompositionBounds(), "{ [cb=");
|
2014-12-27 20:48:27 +03:00
|
|
|
AppendToString(aStream, m.GetScrollableRect(), "] [sr=");
|
2014-12-19 00:33:10 +03:00
|
|
|
AppendToString(aStream, m.GetScrollOffset(), "] [s=");
|
2014-07-10 22:52:40 +04:00
|
|
|
if (m.GetDoSmoothScroll()) {
|
2014-12-19 00:33:10 +03:00
|
|
|
AppendToString(aStream, m.GetSmoothScrollOffset(), "] [ss=");
|
2014-07-10 22:52:40 +04:00
|
|
|
}
|
2014-12-23 18:35:58 +03:00
|
|
|
AppendToString(aStream, m.GetDisplayPort(), "] [dp=");
|
2014-12-30 22:07:57 +03:00
|
|
|
AppendToString(aStream, m.GetCriticalDisplayPort(), "] [cdp=");
|
2014-12-19 00:33:10 +03:00
|
|
|
AppendToString(aStream, m.GetBackgroundColor(), "] [color=");
|
2014-07-07 23:48:16 +04:00
|
|
|
if (!detailed) {
|
2014-12-19 00:33:10 +03:00
|
|
|
AppendToString(aStream, m.GetScrollId(), "] [scrollId=");
|
2014-08-28 06:13:39 +04:00
|
|
|
if (m.GetScrollParentId() != FrameMetrics::NULL_SCROLL_ID) {
|
2014-12-19 00:33:10 +03:00
|
|
|
AppendToString(aStream, m.GetScrollParentId(), "] [scrollParent=");
|
2014-08-28 06:13:39 +04:00
|
|
|
}
|
2015-06-25 01:45:46 +03:00
|
|
|
if (m.IsRootContent()) {
|
|
|
|
aStream << "] [rcd";
|
|
|
|
}
|
2015-05-26 22:40:24 +03:00
|
|
|
if (m.HasClipRect()) {
|
|
|
|
AppendToString(aStream, m.ClipRect(), "] [clip=");
|
|
|
|
}
|
2015-03-06 21:54:10 +03:00
|
|
|
AppendToString(aStream, m.GetZoom(), "] [z=", "] }");
|
2014-07-07 23:48:16 +04:00
|
|
|
} else {
|
2014-12-19 00:33:10 +03: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-31 01:11:12 +03:00
|
|
|
aStream << nsPrintfCString("] [z=(ld=%.3f r=%.3f",
|
|
|
|
m.GetDevPixelsPerCSSPixel().scale,
|
|
|
|
m.GetPresShellResolution()).get();
|
2015-03-06 21:54:10 +03: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 22:52:40 +04:00
|
|
|
m.GetScrollOffsetUpdated(), m.GetDoSmoothScroll(),
|
|
|
|
m.GetScrollGeneration()).get();
|
2014-12-19 00:33:10 +03:00
|
|
|
AppendToString(aStream, m.GetScrollParentId(), "] [p=");
|
2015-06-25 01:45:46 +03:00
|
|
|
aStream << nsPrintfCString("] [i=(%ld %lld %d)] }",
|
|
|
|
m.GetPresShellId(), m.GetScrollId(), m.IsRootContent()).get();
|
2014-07-07 23:48:16 +04:00
|
|
|
}
|
2014-06-20 02:36:25 +04: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 13:20:52 +04:00
|
|
|
}
|
|
|
|
|
2014-09-19 17:33:54 +04:00
|
|
|
void
|
|
|
|
AppendToString(std::stringstream& aStream, const ScrollableLayerGuid& s,
|
|
|
|
const char* pfx, const char* sfx)
|
|
|
|
{
|
|
|
|
aStream << pfx
|
2015-05-31 22:44:40 +03:00
|
|
|
<< nsPrintfCString("{ l=%" PRIu64 ", p=%u, v=%" PRIu64 " }", s.mLayersId, s.mPresShellId, s.mScrollId).get()
|
2014-09-19 17:33:54 +04:00
|
|
|
<< sfx;
|
|
|
|
}
|
|
|
|
|
2015-06-17 19:32:41 +03: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-20 02:36:25 +04:00
|
|
|
void
|
2015-05-21 16:26:46 +03: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 13:20:52 +04:00
|
|
|
const char* pfx, const char* sfx)
|
|
|
|
{
|
2014-06-20 02:36:25 +04:00
|
|
|
aStream << pfx;
|
2015-05-21 16:26:46 +03: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 13:20:52 +04:00
|
|
|
} else {
|
2014-06-20 02:36:25 +04:00
|
|
|
aStream << nsPrintfCString(
|
2015-05-21 16:26:46 +03: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 13:20:52 +04:00
|
|
|
}
|
2014-06-20 02:36:25 +04: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 13:20:52 +04:00
|
|
|
}
|
|
|
|
|
2015-05-21 16:26:46 +03:00
|
|
|
void
|
|
|
|
AppendToString(std::stringstream& aStream, const Matrix4x4& m,
|
|
|
|
const char* pfx, const char* sfx)
|
|
|
|
{
|
|
|
|
if (m.Is2D()) {
|
|
|
|
Matrix matrix = m.As2D();
|
|
|
|
AppendToString(aStream, matrix, pfx, sfx);
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
|
|
|
|
aStream << pfx;
|
|
|
|
aStream << nsPrintfCString(
|
|
|
|
"[ %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).get();
|
|
|
|
aStream << sfx;
|
|
|
|
}
|
|
|
|
|
2014-08-08 01:44:08 +04: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-20 02:36:25 +04: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 13:20:52 +04:00
|
|
|
const char* pfx, const char* sfx)
|
|
|
|
{
|
2014-06-20 02:36:25 +04: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 13:20:52 +04:00
|
|
|
|
|
|
|
switch (filter) {
|
2014-06-20 02:36:25 +04:00
|
|
|
case Filter::GOOD: aStream << "Filter::GOOD"; break;
|
|
|
|
case Filter::LINEAR: aStream << "Filter::LINEAR"; break;
|
|
|
|
case Filter::POINT: aStream << "Filter::POINT"; break;
|
2015-10-06 03:12:46 +03: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 13:20:52 +04:00
|
|
|
}
|
2014-06-20 02:36:25 +04: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 13:20:52 +04:00
|
|
|
}
|
|
|
|
|
2014-06-20 02:36:25 +04: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 13:20:52 +04:00
|
|
|
const char* pfx, const char* sfx)
|
|
|
|
{
|
2014-06-20 02:36:25 +04:00
|
|
|
aStream << pfx;
|
2014-04-26 06:34:05 +04:00
|
|
|
if (flags == TextureFlags::NO_FLAGS) {
|
2014-06-20 02:36:25 +04: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 13:20:52 +04:00
|
|
|
} else {
|
|
|
|
|
|
|
|
#define AppendFlag(test) \
|
|
|
|
{ \
|
2014-04-26 06:34:05 +04: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 13:20:52 +04:00
|
|
|
if (previous) { \
|
2014-06-20 02:36:25 +04: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 13:20:52 +04:00
|
|
|
} \
|
2014-06-20 02:36:25 +04: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 13:20:52 +04:00
|
|
|
previous = true; \
|
|
|
|
} \
|
|
|
|
}
|
|
|
|
bool previous = false;
|
2014-04-26 06:34:05 +04:00
|
|
|
AppendFlag(TextureFlags::USE_NEAREST_FILTER);
|
2014-11-18 04:02:19 +03:00
|
|
|
AppendFlag(TextureFlags::ORIGIN_BOTTOM_LEFT);
|
2014-04-26 06:34:05 +04: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 13:20:52 +04:00
|
|
|
|
|
|
|
#undef AppendFlag
|
|
|
|
}
|
2014-06-20 02:36:25 +04: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 13:20:52 +04:00
|
|
|
}
|
|
|
|
|
2014-06-20 02:36:25 +04: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 13:20:52 +04:00
|
|
|
const char* pfx, const char* sfx)
|
|
|
|
{
|
2014-06-20 02:36:25 +04: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 13:20:52 +04:00
|
|
|
switch (format) {
|
2014-06-20 02:36:25 +04: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-23 09:01:31 +03:00
|
|
|
case SurfaceFormat::R5G6B5_UINT16:
|
|
|
|
aStream << "SurfaceFormat::R5G6B5_UINT16"; break;
|
2014-06-20 02:36:25 +04:00
|
|
|
case SurfaceFormat::A8: aStream << "SurfaceFormat::A8"; break;
|
|
|
|
case SurfaceFormat::YUV: aStream << "SurfaceFormat::YUV"; break;
|
2015-08-04 00:57:19 +03:00
|
|
|
case SurfaceFormat::NV12: aStream << "SurfaceFormat::NV12"; break;
|
2014-06-20 02:36:25 +04:00
|
|
|
case SurfaceFormat::UNKNOWN: aStream << "SurfaceFormat::UNKNOWN"; break;
|
2015-07-16 04:29:26 +03: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 13:20:52 +04:00
|
|
|
}
|
|
|
|
|
2014-06-20 02:36:25 +04: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 13:20:52 +04:00
|
|
|
}
|
|
|
|
|
2015-07-13 18:25:42 +03:00
|
|
|
} // namespace layers
|
|
|
|
} // namespace mozilla
|
2014-08-02 14:03:00 +04: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-29 01:41:47 +03:00
|
|
|
std::string line;
|
|
|
|
while (std::getline(aStr, line)) {
|
|
|
|
printf_stderr("%s\n", line.c_str());
|
2014-08-02 14:03:00 +04: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());
|
|
|
|
}
|
|
|
|
}
|