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

Unified Diff: include/gpu/vk/GrVkBackendContext.h

Issue 1999213002: Add Xlib support to viewer (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Remove viewer hack Created 4 years, 7 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 | « gyp/viewer.gyp ('k') | include/gpu/vk/GrVkDefines.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: include/gpu/vk/GrVkBackendContext.h
diff --git a/include/gpu/vk/GrVkBackendContext.h b/include/gpu/vk/GrVkBackendContext.h
index d33466ca25e0b0f62b1bf01b99c3ae1dc2f14a14..25e73a449ba175f30aa28c96e175aa6f227c8074 100644
--- a/include/gpu/vk/GrVkBackendContext.h
+++ b/include/gpu/vk/GrVkBackendContext.h
@@ -25,7 +25,7 @@ enum GrVkExtensionFlags {
kKHR_swapchain_GrVkExtensionFlag = 0x0008,
kKHR_win32_surface_GrVkExtensionFlag = 0x0010,
kKHR_android_surface_GrVkExtensionFlag = 0x0020,
- kKHR_xlib_surface_GrVkExtensionFlag = 0x0040,
+ kKHR_xcb_surface_GrVkExtensionFlag = 0x0040,
};
enum GrVkFeatureFlags {
@@ -55,7 +55,9 @@ struct GrVkBackendContext : public SkRefCnt {
// If presentQueueIndex is non-NULL, will try to set up presentQueue as part of device
// creation. canPresent() is a device-dependent function.
static const GrVkBackendContext* Create(uint32_t* presentQueueIndex = nullptr,
- bool(*canPresent)(VkInstance, VkPhysicalDevice, uint32_t queueIndex) = nullptr);
+ bool(*canPresent)(VkInstance, VkPhysicalDevice, uint32_t queueIndex,
+ void* platformData) = nullptr,
+ void* platformData = nullptr);
~GrVkBackendContext() override;
};
« no previous file with comments | « gyp/viewer.gyp ('k') | include/gpu/vk/GrVkDefines.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698