Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(85)

Unified Diff: src/gpu/vk/GrVkTextureRenderTarget.h

Issue 1723503002: Revert of Add vulkan files into skia repo. (Closed) Base URL: https://skia.googlesource.com/skia.git@merge
Patch Set: Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/gpu/vk/GrVkTexture.cpp ('k') | src/gpu/vk/GrVkTextureRenderTarget.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/gpu/vk/GrVkTextureRenderTarget.h
diff --git a/src/gpu/vk/GrVkTextureRenderTarget.h b/src/gpu/vk/GrVkTextureRenderTarget.h
deleted file mode 100644
index 6e0d89968ff1750fefb8525ee74baf8d501cc07c..0000000000000000000000000000000000000000
--- a/src/gpu/vk/GrVkTextureRenderTarget.h
+++ /dev/null
@@ -1,89 +0,0 @@
-/*
- * Copyright 2015 Google Inc.
- *
- * Use of this source code is governed by a BSD-style license that can be
- * found in the LICENSE file.
- */
-
-
-#ifndef GrVkTextureRenderTarget_DEFINED
-#define GrVkTextureRenderTarget_DEFINED
-
-#include "GrVkTexture.h"
-#include "GrVkRenderTarget.h"
-#include "GrVkGpu.h"
-
-#ifdef SK_BUILD_FOR_WIN
-// Windows gives bogus warnings about inheriting asTexture/asRenderTarget via dominance.
-#pragma warning(push)
-#pragma warning(disable: 4250)
-#endif
-
-class GrVkImageView;
-
-class GrVkTextureRenderTarget: public GrVkTexture, public GrVkRenderTarget {
-public:
- static GrVkTextureRenderTarget* CreateNewTextureRenderTarget(GrVkGpu*, const GrSurfaceDesc&,
- GrGpuResource::LifeCycle,
- const GrVkImage::ImageDesc&);
-
- static GrVkTextureRenderTarget* CreateWrappedTextureRenderTarget(GrVkGpu*,
- const GrSurfaceDesc&,
- GrGpuResource::LifeCycle,
- VkFormat,
- GrVkImage::Resource*);
-
-protected:
- void onAbandon() override {
- GrVkRenderTarget::onAbandon();
- GrVkTexture::onAbandon();
- }
-
- void onRelease() override {
- GrVkRenderTarget::onRelease();
- GrVkTexture::onRelease();
- }
-
-private:
- GrVkTextureRenderTarget(GrVkGpu* gpu,
- const GrSurfaceDesc& desc,
- GrGpuResource::LifeCycle lifeCycle,
- const GrVkImage::Resource* imageResource,
- const GrVkImageView* texView,
- const GrVkImage::Resource* msaaResource,
- const GrVkImageView* colorAttachmentView,
- const GrVkImageView* resolveAttachmentView)
- : GrSurface(gpu, lifeCycle, desc)
- , GrVkImage(imageResource)
- , GrVkTexture(gpu, desc, lifeCycle, imageResource, texView, GrVkTexture::kDerived)
- , GrVkRenderTarget(gpu, desc, lifeCycle, imageResource, msaaResource, colorAttachmentView,
- resolveAttachmentView, GrVkRenderTarget::kDerived) {
- this->registerWithCache();
- }
-
- GrVkTextureRenderTarget(GrVkGpu* gpu,
- const GrSurfaceDesc& desc,
- GrGpuResource::LifeCycle lifeCycle,
- const GrVkImage::Resource* imageResource,
- const GrVkImageView* texView,
- const GrVkImageView* colorAttachmentView)
- : GrSurface(gpu, lifeCycle, desc)
- , GrVkImage(imageResource)
- , GrVkTexture(gpu, desc, lifeCycle, imageResource, texView, GrVkTexture::kDerived)
- , GrVkRenderTarget(gpu, desc, lifeCycle, imageResource, colorAttachmentView,
- GrVkRenderTarget::kDerived) {
- this->registerWithCache();
- }
-
- static GrVkTextureRenderTarget* Create(GrVkGpu*, const GrSurfaceDesc&,
- GrGpuResource::LifeCycle,
- VkFormat format,
- const GrVkImage::Resource* imageResource);
-
- // GrGLRenderTarget accounts for the texture's memory and any MSAA renderbuffer's memory.
- size_t onGpuMemorySize() const override {
- return GrVkRenderTarget::onGpuMemorySize();
- }
-};
-
-#endif
« no previous file with comments | « src/gpu/vk/GrVkTexture.cpp ('k') | src/gpu/vk/GrVkTextureRenderTarget.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698