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

Unified Diff: experimental/iOSSampleApp/SkSampleUIView.mm

Issue 1919993002: Added --deepColor option to SampleApp, triggers creation of a ten-bit/channel buffer on Windows. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Rebase Created 4 years, 7 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 | « experimental/SkV8Example/SkV8Example.cpp ('k') | gyp/gpu.gypi » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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:
« no previous file with comments | « experimental/SkV8Example/SkV8Example.cpp ('k') | gyp/gpu.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698