Index: experimental/iOSSampleApp/SkSampleUIView.mm |
diff --git a/experimental/iOSSampleApp/SkSampleUIView.mm b/experimental/iOSSampleApp/SkSampleUIView.mm |
index bd6d533cc839a1d3d27d6a2e1468da46219ca82b..8bf7c904e13a0b1362bc306744d9661a696964eb 100644 |
--- a/experimental/iOSSampleApp/SkSampleUIView.mm |
+++ b/experimental/iOSSampleApp/SkSampleUIView.mm |
@@ -47,7 +47,7 @@ public: |
#endif |
} |
- void setUpBackend(SampleWindow* win, int msaaSampleCount) override { |
+ void setUpBackend(SampleWindow* win, int msaaSampleCount, bool deepColor) override { |
SkASSERT(SkOSWindow::kNone_BackEndType == fBackend); |
fBackend = SkOSWindow::kNone_BackEndType; |
@@ -65,7 +65,7 @@ public: |
break; |
} |
SkOSWindow::AttachmentInfo info; |
- bool result = win->attach(fBackend, msaaSampleCount, &info); |
+ bool result = win->attach(fBackend, msaaSampleCount, false, &info); |
if (!result) { |
SkDebugf("Failed to initialize GL"); |
return; |
@@ -145,7 +145,7 @@ public: |
if (NULL != fCurContext) { |
SkOSWindow::AttachmentInfo info; |
- win->attach(fBackend, fMSAASampleCount, &info); |
+ win->attach(fBackend, fMSAASampleCount, false, &info); |
glBindFramebuffer(GL_FRAMEBUFFER, fLayerFBO); |
GrBackendRenderTargetDesc desc; |
@@ -177,7 +177,11 @@ public: |
return NULL; |
#endif |
} |
- |
+ |
+ int getColorBits() override { |
+ return 24; |
+ } |
+ |
bool isUsingGL() const { return SkOSWindow::kNone_BackEndType != fBackend; } |
private: |