aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/gpu/GrPipeline.h
diff options
context:
space:
mode:
authorGravatar cdalton <cdalton@nvidia.com>2016-02-02 22:46:16 -0800
committerGravatar Commit bot <commit-bot@chromium.org>2016-02-02 22:46:16 -0800
commit4833f39a41e7689db4922fdbb5c1b47ae55f7c8d (patch)
treeb2cb8c45739d7937c0f9c8461cc2d70feb27ab55 /src/gpu/GrPipeline.h
parentafc7cce5d68663934128d76963cd501f771d71de (diff)
Templatize GrNonAtomicRef
Templatizes GrNonAtomicRef so it does not necessarily require a virtual destructor. This also gives us the flexibility to specialize how different types get deleted. BUG=skia: GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1664613002 Review URL: https://codereview.chromium.org/1664613002
Diffstat (limited to 'src/gpu/GrPipeline.h')
-rw-r--r--src/gpu/GrPipeline.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gpu/GrPipeline.h b/src/gpu/GrPipeline.h
index 10ffc865f0..4f81ae40d0 100644
--- a/src/gpu/GrPipeline.h
+++ b/src/gpu/GrPipeline.h
@@ -41,7 +41,7 @@ struct GrPipelineOptimizations {
* Class that holds an optimized version of a GrPipelineBuilder. It is meant to be an immutable
* class, and contains all data needed to set the state for a gpu draw.
*/
-class GrPipeline : public GrNonAtomicRef {
+class GrPipeline : public GrNonAtomicRef<GrPipeline> {
public:
///////////////////////////////////////////////////////////////////////////
/// @name Creation