aboutsummaryrefslogtreecommitdiffhomepage
path: root/include/views
diff options
context:
space:
mode:
authorGravatar hendrikw <hendrikw@chromium.org>2015-08-27 10:38:39 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2015-08-27 10:38:39 -0700
commit885bf0925514b9dfe3365bab227d36897d866b5d (patch)
tree4a80bbcffa086e8bbdede4903a30993dd4783800 /include/views
parent33c594c9611529ba72474ec52586be65f3e2d76f (diff)
skia: add ability to load command_buffer_gles2
Diffstat (limited to 'include/views')
-rw-r--r--include/views/SkOSWindow_Win.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/include/views/SkOSWindow_Win.h b/include/views/SkOSWindow_Win.h
index ccab59066d..b65d4c29df 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;