diff options
author | commit-bot@chromium.org <commit-bot@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2014-05-02 21:38:22 +0000 |
---|---|---|
committer | commit-bot@chromium.org <commit-bot@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2014-05-02 21:38:22 +0000 |
commit | 089a780c3355129eefc942246534bc1f126b8ccb (patch) | |
tree | 717d71a73ad4ce8d8810cf8344d67c6ddb143507 /src/gpu/GrPath.h | |
parent | 40f6e3a25c0d35b9416346b72f1b6ba07778d173 (diff) |
Split GrResource into GrCacheable/GrGpuObject
Before this change, an object needed to inherit from GrResource (and
thus be a GPU object) in order to live in the GrResourceCache. That
was a problem for caching items that weren't GPU objects themselves,
but owned GPU objects.
This change splits GrResource into two classes:
1. GrCacheable: The base class for objects that can live in the
GrResourceCache.
2. GrGpuObject, which inherits from GrCacheable: The base class for
objects that get tracked by GrGpu.
This change is purely a refactor; there is no change in functionality.
Change-Id: I3e8daeb1f123041f414aa306c1366e959ae9e39e
BUG=skia:
R=bsalomon@google.com
Author: cdalton@nvidia.com
Review URL: https://codereview.chromium.org/251013002
git-svn-id: http://skia.googlecode.com/svn/trunk@14553 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'src/gpu/GrPath.h')
-rw-r--r-- | src/gpu/GrPath.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/gpu/GrPath.h b/src/gpu/GrPath.h index f481ea4286..d324e6a745 100644 --- a/src/gpu/GrPath.h +++ b/src/gpu/GrPath.h @@ -8,13 +8,13 @@ #ifndef GrPath_DEFINED #define GrPath_DEFINED -#include "GrResource.h" +#include "GrGpuObject.h" #include "GrResourceCache.h" #include "SkPath.h" #include "SkRect.h" #include "SkStrokeRec.h" -class GrPath : public GrResource { +class GrPath : public GrGpuObject { public: SK_DECLARE_INST_COUNT(GrPath); @@ -41,7 +41,7 @@ protected: SkRect fBounds; private: - typedef GrResource INHERITED; + typedef GrGpuObject INHERITED; }; #endif |