aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/gpu/GrTextureProxyCacheAccess.h
diff options
context:
space:
mode:
authorGravatar Robert Phillips <robertphillips@google.com>2017-09-20 20:50:37 +0000
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2017-09-20 20:50:50 +0000
commit76d640d14ea78e1f827a2f545e7f0729cdc2896f (patch)
tree807a1db51245b15ca045f822f3e36c1f4c9e2eb0 /src/gpu/GrTextureProxyCacheAccess.h
parent0ca21466da7441baf471966be8c628d408752a72 (diff)
Revert "Add native caching of uniquely keyed GrTextureProxies"
This reverts commit d4f100dad90ed5beb1b614464d8c4fcb22c0a993. Reason for revert: ASAN Original change's description: > Add native caching of uniquely keyed GrTextureProxies > > Change-Id: I303fe025b7856b8d681a2d35b416c015bd468e1d > Reviewed-on: https://skia-review.googlesource.com/48300 > Commit-Queue: Robert Phillips <robertphillips@google.com> > Reviewed-by: Brian Salomon <bsalomon@google.com> TBR=bsalomon@google.com,robertphillips@google.com,brianosman@google.com Change-Id: I7bbf549d4855ce6d985867c3880eef80080bd3d1 No-Presubmit: true No-Tree-Checks: true No-Try: true Reviewed-on: https://skia-review.googlesource.com/49442 Reviewed-by: Robert Phillips <robertphillips@google.com> Commit-Queue: Robert Phillips <robertphillips@google.com>
Diffstat (limited to 'src/gpu/GrTextureProxyCacheAccess.h')
-rw-r--r--src/gpu/GrTextureProxyCacheAccess.h46
1 files changed, 0 insertions, 46 deletions
diff --git a/src/gpu/GrTextureProxyCacheAccess.h b/src/gpu/GrTextureProxyCacheAccess.h
deleted file mode 100644
index 79cf845987..0000000000
--- a/src/gpu/GrTextureProxyCacheAccess.h
+++ /dev/null
@@ -1,46 +0,0 @@
-/*
- * Copyright 2017 Google Inc.
- *
- * Use of this source code is governed by a BSD-style license that can be
- * found in the LICENSE file.
- */
-
-#ifndef GrTextureProxyCacheAccess_DEFINED
-#define GrTextureProxyCacheAccess_DEFINED
-
-#include "GrTextureProxy.h"
-
-/**
- * This class allows GrResourceCache increased privileged access to GrTextureProxy objects.
- */
-class GrTextureProxy::CacheAccess {
-private:
- void setUniqueKey(GrResourceCache* cache, const GrUniqueKey& key) {
- fTextureProxy->setUniqueKey(cache, key);
- }
-
- void clearUniqueKey() {
- fTextureProxy->clearUniqueKey();
- }
-
- explicit CacheAccess(GrTextureProxy* textureProxy) : fTextureProxy(textureProxy) {}
- CacheAccess(const CacheAccess&) {} // unimpl
- CacheAccess& operator=(const CacheAccess&); // unimpl
-
- // No taking addresses of this type.
- const CacheAccess* operator&() const;
- CacheAccess* operator&();
-
- GrTextureProxy* fTextureProxy;
-
- friend class GrTextureProxy; // to construct/copy this type.
- friend class GrResourceCache; // to use this type
-};
-
-inline GrTextureProxy::CacheAccess GrTextureProxy::cacheAccess() { return CacheAccess(this); }
-
-inline const GrTextureProxy::CacheAccess GrTextureProxy::cacheAccess() const {
- return CacheAccess(const_cast<GrTextureProxy*>(this));
-}
-
-#endif