Fix vulkan build on linux and android
BUG=skia: GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1921963003 Review-Url: https://codereview.chromium.org/1921963003
This commit is contained in:
parent
28d5bdd97e
commit
dd97b8585a
@ -73,7 +73,7 @@ public:
|
||||
void onGetMultisampleSpecs(GrRenderTarget* rt,
|
||||
const GrStencilSettings&,
|
||||
int* effectiveSampleCnt,
|
||||
SkAutoTDeleteArray<SkPoint>*);
|
||||
SkAutoTDeleteArray<SkPoint>*) override;
|
||||
|
||||
bool initCopySurfaceDstDesc(const GrSurface* src, GrSurfaceDesc* desc) const override;
|
||||
|
||||
|
@ -22,7 +22,7 @@
|
||||
#include "glsl/GrGLSLFragmentProcessor.h"
|
||||
#include "glsl/GrGLSLGeometryProcessor.h"
|
||||
#include "glsl/GrGLSLXferProcessor.h"
|
||||
#include "SkMipmap.h"
|
||||
#include "SkMipMap.h"
|
||||
|
||||
GrVkPipelineState::GrVkPipelineState(GrVkGpu* gpu,
|
||||
const GrVkPipelineState::Desc& desc,
|
||||
|
@ -104,7 +104,7 @@ sk_sp<GrVkPipelineState> GrVkResourceProvider::PipelineStateCache::refPipelineSt
|
||||
pipeline,
|
||||
*fGpu->vkCaps().glslCaps())) {
|
||||
GrCapsDebugf(fGpu->caps(), "Failed to build vk program descriptor!\n");
|
||||
return false;
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
// Get vulkan specific descriptor key
|
||||
|
@ -10,7 +10,7 @@
|
||||
#include "GrVkImageView.h"
|
||||
#include "GrTexturePriv.h"
|
||||
#include "GrVkUtil.h"
|
||||
#include "SkMipmap.h"
|
||||
#include "SkMipMap.h"
|
||||
|
||||
#include "vk/GrVkTypes.h"
|
||||
|
||||
|
@ -12,7 +12,7 @@
|
||||
#include "GrVkImageView.h"
|
||||
#include "GrVkUtil.h"
|
||||
|
||||
#include "SkMipmap.h"
|
||||
#include "SkMipMap.h"
|
||||
|
||||
#include "vk/GrVkTypes.h"
|
||||
|
||||
|
@ -32,7 +32,7 @@ VkSurfaceKHR VulkanTestContext::createVkSurface(VkInstance instance, void* platf
|
||||
surfaceCreateInfo.flags = 0;
|
||||
surfaceCreateInfo.window = androidPlatformData->fNativeWindow;
|
||||
|
||||
VkResult res = createAndroidSurfaceKHR(fBackendContext->fInstance, &surfaceCreateInfo,
|
||||
VkResult res = createAndroidSurfaceKHR(instance, &surfaceCreateInfo,
|
||||
nullptr, &surface);
|
||||
return (VK_SUCCESS == res) ? surface : VK_NULL_HANDLE;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user