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: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
|
|
|
|
* This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
|
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
|
|
|
|
|
|
|
#ifndef GFX_LAYERSLOGGING_H
|
|
|
|
#define GFX_LAYERSLOGGING_H
|
|
|
|
|
|
|
|
#include "Layers.h"
|
|
|
|
#include "nsPoint.h"
|
|
|
|
#include "mozilla/gfx/Point.h"
|
|
|
|
#include "mozilla/gfx/Rect.h"
|
|
|
|
#include "mozilla/layers/Compositor.h"
|
|
|
|
#include "FrameMetrics.h"
|
|
|
|
#include "gfxPattern.h"
|
|
|
|
#include "gfxColor.h"
|
|
|
|
#include "gfx3DMatrix.h"
|
|
|
|
#include "nsRegion.h"
|
2013-06-10 06:05:43 -07:00
|
|
|
#include "nsPrintfCString.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
|
|
|
|
|
|
|
namespace mozilla {
|
|
|
|
namespace layers {
|
|
|
|
|
|
|
|
nsACString&
|
|
|
|
AppendToString(nsACString& s, const void* p,
|
|
|
|
const char* pfx="", const char* sfx="");
|
|
|
|
|
|
|
|
nsACString&
|
|
|
|
AppendToString(nsACString& s, const gfxPattern::GraphicsFilter& f,
|
|
|
|
const char* pfx="", const char* sfx="");
|
|
|
|
|
|
|
|
nsACString&
|
|
|
|
AppendToString(nsACString& s, FrameMetrics::ViewID n,
|
|
|
|
const char* pfx="", const char* sfx="");
|
|
|
|
|
|
|
|
nsACString&
|
|
|
|
AppendToString(nsACString& s, const gfxRGBA& c,
|
|
|
|
const char* pfx="", const char* sfx="");
|
|
|
|
|
|
|
|
nsACString&
|
|
|
|
AppendToString(nsACString& s, const gfx3DMatrix& m,
|
|
|
|
const char* pfx="", const char* sfx="");
|
|
|
|
|
|
|
|
nsACString&
|
|
|
|
AppendToString(nsACString& s, const nsIntPoint& p,
|
|
|
|
const char* pfx="", const char* sfx="");
|
|
|
|
|
2013-05-30 18:30:13 -07:00
|
|
|
template<class T>
|
Bug 825928: Land layers refactoring. r=jrmuizel,bas,nical,mattwoodrow,roc,nrc,benwa,bjacob,jgilbert,kchen CLOSED TREE
Please contact Bas Schouten <bschouten@mozilla.com>, Nicolas Silva <nsilva@mozilla.com> or Nicholas Cameron <ncameron@mozilla.com> with general questions. Below is a rough list of authors to contact with specific questions.
Authors:
gfx/layers/Compositor.* gfx/layers/Effects.h - Compositor Interface - bas,nrc,nical
gfx/layers/d3d* - D3D9/D3D10 - bas
gfx/layers/ThebesLayer* - ThebesLayers - nrc,bas
gfx/layers/composite/* - CompositeLayers - nrc,nical
gfx/layers/client/* - Client - nrc,nical,bas
gfx/layers/*Image* - nical
gfx/layers/ipc ipc - IPC - nical
gfx/layers/opengl - CompositorOGL - nrc,nical
gfx/2d - bas,nrc
gfx/gl - GLContext - bjacob
dom/* layout/* - DOM - mattwoodrow
2013-04-10 02:20:52 -07:00
|
|
|
nsACString&
|
2013-05-30 18:30:13 -07:00
|
|
|
AppendToString(nsACString& s, const mozilla::gfx::PointTyped<T>& p,
|
2013-06-10 06:05:43 -07:00
|
|
|
const char* pfx="", const char* sfx="")
|
|
|
|
{
|
|
|
|
s += pfx;
|
|
|
|
s += nsPrintfCString("(x=%f, y=%f)", p.x, p.y);
|
|
|
|
return s += 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
|
|
|
|
|
|
|
nsACString&
|
|
|
|
AppendToString(nsACString& s, const nsIntRect& r,
|
|
|
|
const char* pfx="", const char* sfx="");
|
|
|
|
|
2013-06-10 06:05:42 -07:00
|
|
|
template<class T>
|
Bug 825928: Land layers refactoring. r=jrmuizel,bas,nical,mattwoodrow,roc,nrc,benwa,bjacob,jgilbert,kchen CLOSED TREE
Please contact Bas Schouten <bschouten@mozilla.com>, Nicolas Silva <nsilva@mozilla.com> or Nicholas Cameron <ncameron@mozilla.com> with general questions. Below is a rough list of authors to contact with specific questions.
Authors:
gfx/layers/Compositor.* gfx/layers/Effects.h - Compositor Interface - bas,nrc,nical
gfx/layers/d3d* - D3D9/D3D10 - bas
gfx/layers/ThebesLayer* - ThebesLayers - nrc,bas
gfx/layers/composite/* - CompositeLayers - nrc,nical
gfx/layers/client/* - Client - nrc,nical,bas
gfx/layers/*Image* - nical
gfx/layers/ipc ipc - IPC - nical
gfx/layers/opengl - CompositorOGL - nrc,nical
gfx/2d - bas,nrc
gfx/gl - GLContext - bjacob
dom/* layout/* - DOM - mattwoodrow
2013-04-10 02:20:52 -07:00
|
|
|
nsACString&
|
2013-06-10 06:05:42 -07:00
|
|
|
AppendToString(nsACString& s, const mozilla::gfx::RectTyped<T>& r,
|
2013-06-10 06:05:43 -07:00
|
|
|
const char* pfx="", const char* sfx="")
|
|
|
|
{
|
|
|
|
s += pfx;
|
|
|
|
s.AppendPrintf(
|
|
|
|
"(x=%f, y=%f, w=%f, h=%f)",
|
|
|
|
r.x, r.y, r.width, r.height);
|
|
|
|
return s += 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
|
|
|
|
|
|
|
nsACString&
|
|
|
|
AppendToString(nsACString& s, const nsIntRegion& r,
|
|
|
|
const char* pfx="", const char* sfx="");
|
|
|
|
|
|
|
|
nsACString&
|
|
|
|
AppendToString(nsACString& s, const nsIntSize& sz,
|
|
|
|
const char* pfx="", const char* sfx="");
|
|
|
|
|
|
|
|
nsACString&
|
|
|
|
AppendToString(nsACString& s, const FrameMetrics& m,
|
|
|
|
const char* pfx="", const char* sfx="");
|
|
|
|
|
|
|
|
nsACString&
|
|
|
|
AppendToString(nsACString& s, const mozilla::gfx::IntSize& size,
|
|
|
|
const char* pfx="", const char* sfx="");
|
|
|
|
|
|
|
|
nsACString&
|
|
|
|
AppendToString(nsACString& s, const mozilla::gfx::Matrix4x4& m,
|
|
|
|
const char* pfx="", const char* sfx="");
|
|
|
|
|
|
|
|
nsACString&
|
|
|
|
AppendToString(nsACString& s, const mozilla::gfx::Filter filter,
|
|
|
|
const char* pfx="", const char* sfx="");
|
|
|
|
|
|
|
|
nsACString&
|
|
|
|
AppendToString(nsACString& s, mozilla::layers::TextureFlags flags,
|
|
|
|
const char* pfx="", const char* sfx="");
|
|
|
|
|
|
|
|
nsACString&
|
|
|
|
AppendToString(nsACString& s, mozilla::gfx::SurfaceFormat format,
|
|
|
|
const char* pfx="", const char* sfx="");
|
|
|
|
|
|
|
|
} // namespace
|
|
|
|
} // namespace
|
|
|
|
|
|
|
|
#endif /* GFX_LAYERSLOGGING_H */
|