Extended instance counting to all GrResource-derived classes
http://codereview.appspot.com/6489109/ git-svn-id: http://skia.googlecode.com/svn/trunk@5480 2bbb7eff-a529-9590-31e7-b0007b416f81
This commit is contained in:
parent
eb9b3e164e
commit
7fa18762e0
@ -65,6 +65,7 @@
|
||||
'<(skia_src_path)/gpu/GrDrawState.h',
|
||||
'<(skia_src_path)/gpu/GrDrawTarget.cpp',
|
||||
'<(skia_src_path)/gpu/GrDrawTarget.h',
|
||||
'<(skia_src_path)/gpu/GrGeometryBuffer.cpp',
|
||||
'<(skia_src_path)/gpu/GrGeometryBuffer.h',
|
||||
'<(skia_src_path)/gpu/GrClipMaskCache.h',
|
||||
'<(skia_src_path)/gpu/GrClipMaskCache.cpp',
|
||||
@ -81,6 +82,7 @@
|
||||
'<(skia_src_path)/gpu/GrMemory.cpp',
|
||||
'<(skia_src_path)/gpu/GrMemoryPool.cpp',
|
||||
'<(skia_src_path)/gpu/GrMemoryPool.h',
|
||||
'<(skia_src_path)/gpu/GrPath.cpp',
|
||||
'<(skia_src_path)/gpu/GrPath.h',
|
||||
'<(skia_src_path)/gpu/GrPathRendererChain.cpp',
|
||||
'<(skia_src_path)/gpu/GrPathRendererChain.h',
|
||||
|
10
src/gpu/GrGeometryBuffer.cpp
Normal file
10
src/gpu/GrGeometryBuffer.cpp
Normal file
@ -0,0 +1,10 @@
|
||||
/*
|
||||
* Copyright 2012 Google Inc.
|
||||
*
|
||||
* Use of this source code is governed by a BSD-style license that can be
|
||||
* found in the LICENSE file.
|
||||
*/
|
||||
|
||||
#include "GrGeometryBuffer.h"
|
||||
|
||||
SK_DEFINE_INST_COUNT(GrGeometryBuffer)
|
@ -19,6 +19,7 @@ class GrGpu;
|
||||
*/
|
||||
class GrGeometryBuffer : public GrResource {
|
||||
public:
|
||||
SK_DECLARE_INST_COUNT(GrGeometryBuffer);
|
||||
|
||||
/**
|
||||
*Retrieves whether the buffer was created with the dynamic flag
|
||||
|
10
src/gpu/GrPath.cpp
Normal file
10
src/gpu/GrPath.cpp
Normal file
@ -0,0 +1,10 @@
|
||||
/*
|
||||
* Copyright 2012 Google Inc.
|
||||
*
|
||||
* Use of this source code is governed by a BSD-style license that can be
|
||||
* found in the LICENSE file.
|
||||
*/
|
||||
|
||||
#include "GrPath.h"
|
||||
|
||||
SK_DEFINE_INST_COUNT(GrPath)
|
@ -14,6 +14,8 @@
|
||||
|
||||
class GrPath : public GrResource {
|
||||
public:
|
||||
SK_DECLARE_INST_COUNT(GrPath);
|
||||
|
||||
GrPath(GrGpu* gpu) : INHERITED(gpu) {}
|
||||
|
||||
const GrRect& getBounds() const { return fBounds; }
|
||||
|
@ -12,6 +12,7 @@
|
||||
#include "GrGpu.h"
|
||||
#include "GrResourceCache.h"
|
||||
|
||||
SK_DEFINE_INST_COUNT(GrStencilBuffer)
|
||||
GR_DEFINE_RESOURCE_CACHE_TYPE(GrStencilBuffer)
|
||||
|
||||
void GrStencilBuffer::transferToCache() {
|
||||
|
@ -20,6 +20,7 @@ class GrResourceKey;
|
||||
|
||||
class GrStencilBuffer : public GrResource {
|
||||
public:
|
||||
SK_DECLARE_INST_COUNT(GrStencilBuffer);
|
||||
GR_DECLARE_RESOURCE_CACHE_TYPE()
|
||||
|
||||
virtual ~GrStencilBuffer() {
|
||||
|
Loading…
Reference in New Issue
Block a user