Index: src/views/win/SkOSWindow_win.cpp |
diff --git a/src/views/win/SkOSWindow_win.cpp b/src/views/win/SkOSWindow_win.cpp |
index a8d05d96f73bf076186f48b28ead564603840c99..d0903ba0c93b18e42f840f500f3549e6d715354f 100644 |
--- a/src/views/win/SkOSWindow_win.cpp |
+++ b/src/views/win/SkOSWindow_win.cpp |
@@ -339,10 +339,10 @@ void SkEvent::SignalQueueTimer(SkMSec delay) |
#if SK_SUPPORT_GPU |
-bool SkOSWindow::attachGL(int msaaSampleCount, AttachmentInfo* info) { |
+bool SkOSWindow::attachGL(int msaaSampleCount, bool tenBitColor, AttachmentInfo* info) { |
HDC dc = GetDC((HWND)fHWND); |
if (NULL == fHGLRC) { |
- fHGLRC = SkCreateWGLContext(dc, msaaSampleCount, |
+ fHGLRC = SkCreateWGLContext(dc, msaaSampleCount, tenBitColor, |
kGLPreferCompatibilityProfile_SkWGLContextRequest); |
if (NULL == fHGLRC) { |
return false; |
@@ -651,7 +651,8 @@ void SkOSWindow::presentCommandBuffer() { |
#endif // SK_SUPPORT_GPU |
// return true on success |
-bool SkOSWindow::attach(SkBackEndTypes attachType, int msaaSampleCount, AttachmentInfo* info) { |
+bool SkOSWindow::attach(SkBackEndTypes attachType, int msaaSampleCount, bool tenBitColor, |
+ AttachmentInfo* info) { |
// attach doubles as "windowResize" so we need to allo |
// already bound states to pass through again |
@@ -665,7 +666,7 @@ bool SkOSWindow::attach(SkBackEndTypes attachType, int msaaSampleCount, Attachme |
break; |
#if SK_SUPPORT_GPU |
case kNativeGL_BackEndType: |
- result = attachGL(msaaSampleCount, info); |
+ result = attachGL(msaaSampleCount, tenBitColor, info); |
break; |
#if SK_ANGLE |
case kANGLE_BackEndType: |