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

Unified Diff: include/views/SkOSWindow_Win.h

Issue 1306823003: skia: add ability to load command_buffer_gles2 (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: and NULL->nullptr, just because. Created 5 years, 4 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 | « include/gpu/gl/command_buffer/SkCommandBufferGLContext.h ('k') | samplecode/SampleApp.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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;
« no previous file with comments | « include/gpu/gl/command_buffer/SkCommandBufferGLContext.h ('k') | samplecode/SampleApp.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698