'<(skia_include_path)/gpu/GrFontScaler.h',
'<(skia_include_path)/gpu/GrGlyph.h',
'<(skia_include_path)/gpu/GrKey.h',
- '<(skia_include_path)/gpu/GrNoncopyable.h',
'<(skia_include_path)/gpu/GrPaint.h',
'<(skia_include_path)/gpu/GrPathRendererChain.h',
'<(skia_include_path)/gpu/GrPoint.h',
'gpu/GrDrawEffect.h',
'gpu/GrTextContext.h',
'gpu/GrEffect.h',
- 'gpu/GrNoncopyable.h',
'gpu/SkGrTexturePixelRef.h',
'gpu/GrTextureAccess.h',
'gpu/GrRect.h',
#include "GrTypes.h"
#include "SkTemplates.h"
#include "SkThread_platform.h"
-#include "GrNoncopyable.h"
+#include "SkTypes.h"
/** Given a GrEffect of a particular type, creates the corresponding graphics-backend-specific
effect object. Also tracks equivalence of shaders generated via a key. Each factory instance
class GrGLCaps;
class GrDrawEffect;
-class GrBackendEffectFactory : public GrNoncopyable {
+class GrBackendEffectFactory : public SkNoncopyable {
public:
typedef uint32_t EffectKey;
enum {
#ifndef GrContext_DEFINED
#define GrContext_DEFINED
-#include "GrColor.h"
#include "GrClipData.h"
-#include "SkMatrix.h"
+#include "GrColor.h"
#include "GrPaint.h"
#include "GrPathRendererChain.h"
#include "GrPoint.h"
#include "GrRenderTarget.h"
#include "GrTexture.h"
+#include "SkMatrix.h"
+#include "SkTypes.h"
class GrAARectRenderer;
class GrAutoScratchTexture;
///////////////////////////////////////////////////////////////////////////
// Helpers
- class AutoRenderTarget : public ::GrNoncopyable {
+ class AutoRenderTarget : public ::SkNoncopyable {
public:
AutoRenderTarget(GrContext* context, GrRenderTarget* target) {
fPrevTarget = context->getRenderTarget();
* paint if necessary. Hint: use SkTCopyOnFirstWrite if the AutoMatrix is conditionally
* initialized.
*/
- class AutoMatrix : GrNoncopyable {
+ class AutoMatrix : public ::SkNoncopyable {
public:
AutoMatrix() : fContext(NULL) {}
SkMatrix fMatrix;
};
- class AutoClip : GrNoncopyable {
+ class AutoClip : public ::SkNoncopyable {
public:
// This enum exists to require a caller of the constructor to acknowledge that the clip will
// initially be wide open. It also could be extended if there are other desirable initial
* Gets and locks a scratch texture from a descriptor using either exact or approximate criteria.
* Unlocks texture in the destructor.
*/
-class GrAutoScratchTexture : ::GrNoncopyable {
+class GrAutoScratchTexture : public ::SkNoncopyable {
public:
GrAutoScratchTexture()
: fContext(NULL)
* factory is destroyed (though the caller can always grab a ref on the returned
* GrContext to make it outlive the factory).
*/
-class GrContextFactory : GrNoncopyable {
+class GrContextFactory : public SkNoncopyable {
public:
/**
* Types of GL contexts supported.
#include "GrColor.h"
#include "GrEffectUnitTest.h"
-#include "GrNoncopyable.h"
#include "GrTexture.h"
#include "GrTextureAccess.h"
#include "GrTypesPriv.h"
#ifndef GrEffectUnitTest_DEFINED
#define GrEffectUnitTest_DEFINED
-#include "GrNoncopyable.h"
#include "SkRandom.h"
#include "SkTArray.h"
+#include "SkTypes.h"
class SkMatrix;
class GrDrawTargetCaps;
class GrEffectRef;
class GrTexture;
-class GrEffectTestFactory : GrNoncopyable {
+class GrEffectTestFactory : public SkNoncopyable {
public:
typedef GrEffectRef* (*CreateProc)(SkRandom*,
+++ /dev/null
-
-/*
- * Copyright 2010 Google Inc.
- *
- * Use of this source code is governed by a BSD-style license that can be
- * found in the LICENSE file.
- */
-
-#ifndef GrNoncopyable_DEFINED
-#define GrNoncopyable_DEFINED
-
-#include "GrTypes.h"
-
-/**
- * Base for classes that want to disallow copying themselves. It makes its
- * copy-constructor and assignment operators private (and unimplemented).
- */
-class SK_API GrNoncopyable {
-public:
- GrNoncopyable() {}
-
-private:
- // illegal
- GrNoncopyable(const GrNoncopyable&);
- GrNoncopyable& operator=(const GrNoncopyable&);
-};
-
-#endif
#ifndef GrTextureAccess_DEFINED
#define GrTextureAccess_DEFINED
-#include "GrNoncopyable.h"
#include "SkRefCnt.h"
#include "SkShader.h"
+#include "SkTypes.h"
class GrTexture;
* key. However, if a GrEffect uses different swizzles based on its input then it must
* consider that variation in its key-generation.
*/
-class GrTextureAccess : GrNoncopyable {
+class GrTextureAccess : public SkNoncopyable {
public:
/**
* A default GrTextureAccess must have reset() called on it in a GrEffect subclass's
uint32_t fSwizzleMask;
char fSwizzle[5];
- typedef GrNoncopyable INHERITED;
+ typedef SkNoncopyable INHERITED;
};
#endif
-
/*
* Copyright 2010 Google Inc.
*
* found in the LICENSE file.
*/
-
-
#include "GrAllocPool.h"
+#include "GrTypes.h"
+
#define GrAllocPool_MIN_BLOCK_SIZE ((size_t)128)
struct GrAllocPool::Block {
-
/*
* Copyright 2010 Google Inc.
*
* found in the LICENSE file.
*/
-
-
#ifndef GrAllocPool_DEFINED
#define GrAllocPool_DEFINED
-#include "GrNoncopyable.h"
+#include "SkTypes.h"
-class GrAllocPool : GrNoncopyable {
+class GrAllocPool : public SkNoncopyable {
public:
GrAllocPool(size_t blockSize = 0);
~GrAllocPool();
-
/*
* Copyright 2010 Google Inc.
*
* found in the LICENSE file.
*/
-
-
#ifndef GrAllocator_DEFINED
#define GrAllocator_DEFINED
-#include "GrNoncopyable.h"
#include "GrConfig.h"
+#include "GrTypes.h"
#include "SkTArray.h"
+#include "SkTypes.h"
-class GrAllocator : GrNoncopyable {
+class GrAllocator : public SkNoncopyable {
public:
~GrAllocator() {
reset();
bool fOwnFirstBlock;
int fCount;
- typedef GrNoncopyable INHERITED;
+ typedef SkNoncopyable INHERITED;
};
template <typename T>
-class GrTAllocator : GrNoncopyable {
-
+class GrTAllocator : public SkNoncopyable {
public:
virtual ~GrTAllocator() { this->reset(); };
private:
GrAllocator fAllocator;
- typedef GrNoncopyable INHERITED;
+ typedef SkNoncopyable INHERITED;
};
template <int N, typename T> class GrSTAllocator : public GrTAllocator<T> {
-
/*
* Copyright 2010 Google Inc.
*
* found in the LICENSE file.
*/
-
-
#ifndef GrBufferAllocPool_DEFINED
#define GrBufferAllocPool_DEFINED
-#include "GrNoncopyable.h"
-
#include "SkTArray.h"
#include "SkTDArray.h"
+#include "SkTypes.h"
class GrGeometryBuffer;
class GrGpu;
* a number of buffers to preallocate can be specified. These will
* be allocated at the min size and kept around until the pool is destroyed.
*/
-class GrBufferAllocPool : GrNoncopyable {
-
+class GrBufferAllocPool : public SkNoncopyable {
public:
/**
* Ensures all buffers are unlocked and have all data written to them.
#define GrClipMaskCache_DEFINED
#include "GrContext.h"
-#include "GrNoncopyable.h"
#include "SkClipStack.h"
+#include "SkTypes.h"
class GrTexture;
* The stencil buffer stores the last clip path - providing a single entry
* "cache". This class provides similar functionality for AA clip paths
*/
-class GrClipMaskCache : public GrNoncopyable {
+class GrClipMaskCache : public SkNoncopyable {
public:
GrClipMaskCache();
GrContext* fContext;
SkDeque fStack;
- typedef GrNoncopyable INHERITED;
+ typedef SkNoncopyable INHERITED;
};
#endif // GrClipMaskCache_DEFINED
-
/*
* Copyright 2012 Google Inc.
*
#ifndef GrClipMaskManager_DEFINED
#define GrClipMaskManager_DEFINED
+#include "GrClipMaskCache.h"
#include "GrContext.h"
#include "GrDrawState.h"
-#include "GrNoncopyable.h"
#include "GrReducedClip.h"
#include "GrStencil.h"
#include "GrTexture.h"
#include "SkPath.h"
#include "SkRefCnt.h"
#include "SkTLList.h"
-
-#include "GrClipMaskCache.h"
+#include "SkTypes.h"
class GrGpu;
class GrPathRenderer;
class GrPathRendererChain;
-class SkPath;
class GrTexture;
+class SkPath;
/**
* The clip mask creator handles the generation of the clip mask. If anti
* mask can be represented as a rectangle then scissoring is used. In all
* cases scissoring is used to bound the range of the clip mask.
*/
-class GrClipMaskManager : public GrNoncopyable {
+class GrClipMaskManager : public SkNoncopyable {
public:
GrClipMaskManager()
: fGpu(NULL)
StencilClipMode mode,
int stencilBitCnt);
- typedef GrNoncopyable INHERITED;
+ typedef SkNoncopyable INHERITED;
};
#endif // GrClipMaskManager_DEFINED
#include "effects/GrSimpleTextureEffect.h"
#include "SkMatrix.h"
+#include "SkTypes.h"
#include "SkXfermode.h"
class GrDrawState : public SkRefCnt {
/**
* Constructor sets the color to be 'color' which is undone by the destructor.
*/
- class AutoColorRestore : public ::GrNoncopyable {
+ class AutoColorRestore : public ::SkNoncopyable {
public:
AutoColorRestore() : fDrawState(NULL), fOldColor(0) {}
* When this object is destroyed it will remove any effects from the draw state that were added
* after its constructor.
*/
- class AutoRestoreEffects : public ::GrNoncopyable {
+ class AutoRestoreEffects : public ::SkNoncopyable {
public:
AutoRestoreEffects() : fDrawState(NULL), fColorEffectCnt(0), fCoverageEffectCnt(0) {}
* Preconcats the current view matrix and restores the previous view matrix in the destructor.
* Effect matrices are automatically adjusted to compensate and adjusted back in the destructor.
*/
- class AutoViewMatrixRestore : public ::GrNoncopyable {
+ class AutoViewMatrixRestore : public ::SkNoncopyable {
public:
AutoViewMatrixRestore() : fDrawState(NULL) {}
const GrRenderTarget* getRenderTarget() const { return fRenderTarget.get(); }
GrRenderTarget* getRenderTarget() { return fRenderTarget.get(); }
- class AutoRenderTargetRestore : public ::GrNoncopyable {
+ class AutoRenderTargetRestore : public ::SkNoncopyable {
public:
AutoRenderTargetRestore() : fDrawState(NULL), fSavedTarget(NULL) {}
AutoRenderTargetRestore(GrDrawState* ds, GrRenderTarget* newTarget) {
#include "SkPath.h"
#include "SkTArray.h"
#include "SkTLazy.h"
+#include "SkTypes.h"
#include "SkXfermode.h"
class GrClipData;
* // destructor rather than target's current
* // GrDrawState.
*/
- class AutoStateRestore : ::GrNoncopyable {
+ class AutoStateRestore : public ::SkNoncopyable {
public:
/**
* Default ASR will have no effect unless set() is subsequently called.
////////////////////////////////////////////////////////////////////////////
- class AutoReleaseGeometry : ::GrNoncopyable {
+ class AutoReleaseGeometry : public ::SkNoncopyable {
public:
AutoReleaseGeometry(GrDrawTarget* target,
int vertexCount,
////////////////////////////////////////////////////////////////////////////
- class AutoClipRestore : ::GrNoncopyable {
+ class AutoClipRestore : public ::SkNoncopyable {
public:
AutoClipRestore(GrDrawTarget* target) {
fTarget = target;
* Saves the geometry src state at construction and restores in the destructor. It also saves
* and then restores the vertex attrib state.
*/
- class AutoGeometryPush : ::GrNoncopyable {
+ class AutoGeometryPush : public ::SkNoncopyable {
public:
AutoGeometryPush(GrDrawTarget* target)
: fAttribRestore(target->drawState()) {
* Combination of AutoGeometryPush and AutoStateRestore. The vertex attribs will be in default
* state regardless of ASRInit value.
*/
- class AutoGeometryAndStatePush : ::GrNoncopyable {
+ class AutoGeometryAndStatePush : public ::SkNoncopyable {
public:
AutoGeometryAndStatePush(GrDrawTarget* target,
ASRInit init,
-
/*
* Copyright 2011 Google Inc.
*
* found in the LICENSE file.
*/
-
-
#ifndef GrInOrderDrawBuffer_DEFINED
#define GrInOrderDrawBuffer_DEFINED
#include "SkClipStack.h"
#include "SkStrokeRec.h"
#include "SkTemplates.h"
+#include "SkTypes.h"
class GrGpu;
class GrIndexBufferAllocPool;
const GrIndexBuffer* fIndexBuffer;
};
- struct StencilPath : GrNoncopyable {
+ struct StencilPath : public ::SkNoncopyable {
StencilPath();
SkAutoTUnref<const GrPath> fPath;
SkPath::FillType fFill;
};
- struct Clear : GrNoncopyable {
+ struct Clear : public ::SkNoncopyable {
Clear() : fRenderTarget(NULL) {}
~Clear() { SkSafeUnref(fRenderTarget); }
GrRenderTarget* fRenderTarget;
};
- struct CopySurface : GrNoncopyable {
+ struct CopySurface : public ::SkNoncopyable {
SkAutoTUnref<GrSurface> fDst;
SkAutoTUnref<GrSurface> fSrc;
SkIRect fSrcRect;
-
/*
* Copyright 2010 Google Inc.
*
* found in the LICENSE file.
*/
-
-
#ifndef GrPlotMgr_DEFINED
#define GrPlotMgr_DEFINED
#include "GrTypes.h"
#include "GrPoint.h"
+#include "SkTypes.h"
-class GrPlotMgr : GrNoncopyable {
+class GrPlotMgr : public SkNoncopyable {
public:
GrPlotMgr(int width, int height) {
fDim.set(width, height);
-
/*
* Copyright 2011 Google Inc.
*
* found in the LICENSE file.
*/
-
#ifndef GrRedBlackTree_DEFINED
#define GrRedBlackTree_DEFINED
-#include "GrNoncopyable.h"
+#include "SkTypes.h"
template <typename T>
class GrLess {
* will be created and used for all comparisons.
*/
template <typename T, typename C = GrLess<T> >
-class GrRedBlackTree : public GrNoncopyable {
+class GrRedBlackTree : public SkNoncopyable {
public:
/**
* Creates an empty tree.
#define GrSWMaskHelper_DEFINED
#include "GrColor.h"
-#include "SkMatrix.h"
-#include "GrNoncopyable.h"
+#include "GrDrawState.h"
#include "SkBitmap.h"
#include "SkDraw.h"
+#include "SkMatrix.h"
#include "SkRasterClip.h"
#include "SkRegion.h"
-#include "GrDrawState.h"
+#include "SkTypes.h"
class GrAutoScratchTexture;
class GrContext;
* The result of this process will be the final mask (on the GPU) in the
* upper left hand corner of the texture.
*/
-class GrSWMaskHelper : public GrNoncopyable {
+class GrSWMaskHelper : public SkNoncopyable {
public:
GrSWMaskHelper(GrContext* context)
: fContext(context) {
SkDraw fDraw;
SkRasterClip fRasterClip;
- typedef GrNoncopyable INHERITED;
+ typedef SkNoncopyable INHERITED;
};
#endif // GrSWMaskHelper_DEFINED
-
/*
* Copyright 2010 Google Inc.
*
* found in the LICENSE file.
*/
-
#ifndef GrTemplates_DEFINED
#define GrTemplates_DEFINED
-#include "GrNoncopyable.h"
+#include "SkTypes.h"
/**
* Use to cast a ptr to a different type, and maintain strict-aliasing
* ...
* } // fCount is restored
*/
-template <typename T> class GrAutoTRestore : public GrNoncopyable {
+template <typename T> class GrAutoTRestore : public SkNoncopyable {
public:
GrAutoTRestore() : fPtr(NULL), fVal() {}
-
/*
* Copyright 2012 Google Inc.
*
#ifndef GrTextureStripAtlas_DEFINED
#define GrTextureStripAtlas_DEFINED
-#include "SkBitmap.h"
+#include "GrBinHashKey.h"
#include "GrTHashCache.h"
+#include "SkBitmap.h"
#include "SkGr.h"
#include "SkTDArray.h"
-#include "GrBinHashKey.h"
+#include "SkTypes.h"
/**
* Maintains a single large texture whose rows store many textures of a small fixed height,
* The state of a single row in our cache, next/prev pointers allow these to be chained
* together to represent LRU status
*/
- struct AtlasRow : public GrNoncopyable {
+ struct AtlasRow : public SkNoncopyable {
AtlasRow() : fKey(kEmptyAtlasRowKey), fLocks(0), fNext(NULL), fPrev(NULL) { }
// GenerationID of the bitmap that is represented by this row, 0xffffffff means "empty"
uint32_t fKey;
// Hash table entry for atlases
class AtlasEntry;
typedef GrTBinHashKey<AtlasEntry, sizeof(GrTextureStripAtlas::Desc)> AtlasHashKey;
- class AtlasEntry : public ::GrNoncopyable {
+ class AtlasEntry : public ::SkNoncopyable {
public:
AtlasEntry() : fAtlas(NULL) {}
~AtlasEntry() { SkDELETE(fAtlas); }
#ifndef GrGLBufferImpl_DEFINED
#define GrGLBufferImpl_DEFINED
-#include "GrNoncopyable.h"
+#include "SkTypes.h"
#include "gl/GrGLFunctions.h"
class GrGpuGL;
* This class serves as the implementation of GrGL*Buffer classes. It was written to avoid code
* duplication in those classes.
*/
-class GrGLBufferImpl : public GrNoncopyable {
+class GrGLBufferImpl : public SkNoncopyable {
public:
struct Desc {
bool fIsWrapped;
void* fCPUData;
void* fLockPtr;
- typedef GrNoncopyable INHERITED;
+ typedef SkNoncopyable INHERITED;
};
#endif
#include "GrBackendEffectFactory.h"
#include "GrColor.h"
#include "GrEffect.h"
+#include "SkTypes.h"
#include "gl/GrGLSL.h"
#include "gl/GrGLUniformManager.h"
GrGLUniformManager::BuilderUniformArray fUniforms;
private:
- class CodeStage : GrNoncopyable {
+ class CodeStage : public SkNoncopyable {
public:
CodeStage() : fNextIndex(0), fCurrentIndex(-1), fEffect(NULL) {}
return fCurrentIndex;
}
- class AutoStageRestore : GrNoncopyable {
+ class AutoStageRestore : public SkNoncopyable {
public:
AutoStageRestore(CodeStage* codeStage, const GrEffectRef* effect) {
SkASSERT(NULL != codeStage);
#include "GrBinHashKey.h"
#include "GrDrawState.h"
-#include "GrGpu.h"
#include "GrGLContext.h"
-#include "GrGLIndexBuffer.h"
#include "GrGLIRect.h"
+#include "GrGLIndexBuffer.h"
#include "GrGLProgram.h"
#include "GrGLStencilBuffer.h"
#include "GrGLTexture.h"
#include "GrGLVertexArray.h"
#include "GrGLVertexBuffer.h"
+#include "GrGpu.h"
+#include "SkTypes.h"
#include "../GrTHashCache.h"
#ifdef SK_DEVELOPER
static bool BlendCoeffReferencesConstant(GrBlendCoeff coeff);
- class ProgramCache : public ::GrNoncopyable {
+ class ProgramCache : public ::SkNoncopyable {
public:
ProgramCache(GrGpuGL* gpu);
~ProgramCache();
-
/*
* Copyright 2012 Google Inc.
*
#ifndef GrFakeRefObj_DEFINED
#define GrFakeRefObj_DEFINED
+#include "SkTypes.h"
#include "gl/GrGLInterface.h"
-#include "GrNoncopyable.h"
////////////////////////////////////////////////////////////////////////////////
// This object is used to track the OpenGL objects. We don't use real
// are tracking in this class are actually OpenGL's references to the objects
// not "ours"
// Each object also gets a unique globally identifying ID
-class GrFakeRefObj : public GrNoncopyable {
+class GrFakeRefObj : public SkNoncopyable {
public:
GrFakeRefObj()
: fRef(0)