Index: include/views/SkOSWindow_Win.h |
diff --git a/include/views/SkOSWindow_Win.h b/include/views/SkOSWindow_Win.h |
index ccab59066dd57bb3bdb58a58899d81cf8dbb39a7..b65d4c29dfb18efa3845a9cae63c5f6dd9f7f8c7 100644 |
--- a/include/views/SkOSWindow_Win.h |
+++ b/include/views/SkOSWindow_Win.h |
@@ -18,6 +18,10 @@ |
#include "EGL/egl.h" |
#endif |
+#if SK_COMMAND_BUFFER |
+class SkCommandBufferGLContext; |
+#endif |
+ |
class SkOSWindow : public SkWindow { |
public: |
struct WindowInit { |
@@ -37,6 +41,9 @@ public: |
#if SK_ANGLE |
kANGLE_BackEndType, |
#endif // SK_ANGLE |
+#if SK_COMMAND_BUFFER |
+ kCommandBuffer_BackEndType, |
+#endif // SK_COMMAND_BUFFER |
#endif // SK_SUPPORT_GPU |
}; |
@@ -96,6 +103,9 @@ private: |
EGLSurface fSurface; |
EGLConfig fConfig; |
#endif // SK_ANGLE |
+#if SK_COMMAND_BUFFER |
+ SkCommandBufferGLContext* fCommandBuffer; |
+#endif // SK_COMMAND_BUFFER |
#endif // SK_SUPPORT_GPU |
bool fFullscreen; |
@@ -125,6 +135,12 @@ private: |
void detachANGLE(); |
void presentANGLE(); |
#endif // SK_ANGLE |
+ |
+#if SK_COMMAND_BUFFER |
+ bool attachCommandBuffer(int msaaSampleCount, AttachmentInfo* info); |
+ void detachCommandBuffer(); |
+ void presentCommandBuffer(); |
+#endif // SK_COMMAND_BUFFER |
#endif // SK_SUPPORT_GPU |
typedef SkWindow INHERITED; |