diff options
author | Greg Daniel <egdaniel@google.com> | 2018-04-06 10:00:09 -0400 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2018-04-06 16:54:45 +0000 |
commit | 9cc282370fd28cf9ebc1ea7ce1add1a56ff92c61 (patch) | |
tree | 2c017969e011f3e138a7eafdbb52a740d784df54 | |
parent | 13872ddc56c4ab128569428b3ea8c722e7494df5 (diff) |
Remove unneeded SK_SUPPORT_GPU checks in gpu only files.
Bug: skia:
Change-Id: I8f25c883f7d741866ac850c8e0ba9f439830570f
Reviewed-on: https://skia-review.googlesource.com/119008
Reviewed-by: Robert Phillips <robertphillips@google.com>
Commit-Queue: Greg Daniel <egdaniel@google.com>
-rw-r--r-- | src/gpu/GrAHardwareBufferImageGenerator.cpp | 3 | ||||
-rw-r--r-- | src/gpu/GrAHardwareBufferImageGenerator.h | 2 | ||||
-rw-r--r-- | src/gpu/GrBackendTextureImageGenerator.cpp | 3 | ||||
-rw-r--r-- | src/gpu/GrBackendTextureImageGenerator.h | 2 | ||||
-rw-r--r-- | src/gpu/SkGpuDevice.cpp | 3 |
5 files changed, 1 insertions, 12 deletions
diff --git a/src/gpu/GrAHardwareBufferImageGenerator.cpp b/src/gpu/GrAHardwareBufferImageGenerator.cpp index be6a8d099a..ea1da11ab0 100644 --- a/src/gpu/GrAHardwareBufferImageGenerator.cpp +++ b/src/gpu/GrAHardwareBufferImageGenerator.cpp @@ -95,8 +95,6 @@ void GrAHardwareBufferImageGenerator::deleteImageTexture(void* context) { /////////////////////////////////////////////////////////////////////////////////////////////////// -#if SK_SUPPORT_GPU - sk_sp<GrTextureProxy> GrAHardwareBufferImageGenerator::onGenerateTexture( GrContext* context, const SkImageInfo& info, const SkIPoint& origin, SkTransferFunctionBehavior, bool willNeedMipMaps) { @@ -144,7 +142,6 @@ sk_sp<GrTextureProxy> GrAHardwareBufferImageGenerator::onGenerateTexture( } return texProxy; } -#endif sk_sp<GrTextureProxy> GrAHardwareBufferImageGenerator::makeProxy(GrContext* context) { if (context->contextPriv().abandoned() || diff --git a/src/gpu/GrAHardwareBufferImageGenerator.h b/src/gpu/GrAHardwareBufferImageGenerator.h index 6f5170097a..b7d13d2c02 100644 --- a/src/gpu/GrAHardwareBufferImageGenerator.h +++ b/src/gpu/GrAHardwareBufferImageGenerator.h @@ -35,12 +35,10 @@ protected: bool onIsValid(GrContext*) const override; -#if SK_SUPPORT_GPU TexGenType onCanGenerateTexture() const override { return TexGenType::kCheap; } sk_sp<GrTextureProxy> onGenerateTexture(GrContext*, const SkImageInfo&, const SkIPoint&, SkTransferFunctionBehavior, bool willNeedMipMaps) override; -#endif private: GrAHardwareBufferImageGenerator(const SkImageInfo&, AHardwareBuffer*, SkAlphaType); diff --git a/src/gpu/GrBackendTextureImageGenerator.cpp b/src/gpu/GrBackendTextureImageGenerator.cpp index 90a251865a..89a6870b59 100644 --- a/src/gpu/GrBackendTextureImageGenerator.cpp +++ b/src/gpu/GrBackendTextureImageGenerator.cpp @@ -73,7 +73,6 @@ GrBackendTextureImageGenerator::~GrBackendTextureImageGenerator() { /////////////////////////////////////////////////////////////////////////////////////////////////// -#if SK_SUPPORT_GPU void GrBackendTextureImageGenerator::ReleaseRefHelper_TextureReleaseProc(void* ctx) { RefHelper* refHelper = static_cast<RefHelper*>(ctx); SkASSERT(refHelper); @@ -208,4 +207,4 @@ sk_sp<GrTextureProxy> GrBackendTextureImageGenerator::onGenerateTexture( return rtContext->asTextureProxyRef(); } } -#endif + diff --git a/src/gpu/GrBackendTextureImageGenerator.h b/src/gpu/GrBackendTextureImageGenerator.h index 5197d32273..fffb7da0d2 100644 --- a/src/gpu/GrBackendTextureImageGenerator.h +++ b/src/gpu/GrBackendTextureImageGenerator.h @@ -39,12 +39,10 @@ protected: // do that safely (we might be on another thread). So assume everything is fine. bool onIsValid(GrContext*) const override { return true; } -#if SK_SUPPORT_GPU TexGenType onCanGenerateTexture() const override { return TexGenType::kCheap; } sk_sp<GrTextureProxy> onGenerateTexture(GrContext*, const SkImageInfo&, const SkIPoint&, SkTransferFunctionBehavior, bool willNeedMipMaps) override; -#endif private: GrBackendTextureImageGenerator(const SkImageInfo& info, GrTexture*, GrSurfaceOrigin, diff --git a/src/gpu/SkGpuDevice.cpp b/src/gpu/SkGpuDevice.cpp index e7ba14e1d9..eb26ba2f9b 100644 --- a/src/gpu/SkGpuDevice.cpp +++ b/src/gpu/SkGpuDevice.cpp @@ -51,8 +51,6 @@ #include "../private/SkShadowFlags.h" #include "text/GrTextUtils.h" -#if SK_SUPPORT_GPU - #define ASSERT_SINGLE_OWNER \ SkDEBUGCODE(GrSingleOwner::AutoEnforce debug_SingleOwner(fContext->contextPriv().debugSingleOwner());) @@ -1752,4 +1750,3 @@ SkImageFilterCache* SkGpuDevice::getImageFilterCache() { return SkImageFilterCache::Create(SkImageFilterCache::kDefaultTransientSize); } -#endif |