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

Side by Side 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: More cleanup 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 unified diff | Download patch
« no previous file with comments | « no previous file | gyp/gpu.gypi » ('j') | include/gpu/GrContext.h » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright 2015 Google Inc. 2 * Copyright 2015 Google Inc.
3 * 3 *
4 * Use of this source code is governed by a BSD-style license that can be 4 * Use of this source code is governed by a BSD-style license that can be
5 * found in the LICENSE file. 5 * found in the LICENSE file.
6 */ 6 */
7 7
8 #import "SkSampleUIView.h" 8 #import "SkSampleUIView.h"
9 9
10 //#define SKGL_CONFIG kEAGLColorFormatRGB565 10 //#define SKGL_CONFIG kEAGLColorFormatRGB565
(...skipping 29 matching lines...) Expand all
40 } 40 }
41 41
42 virtual ~SkiOSDeviceManager() { 42 virtual ~SkiOSDeviceManager() {
43 #if SK_SUPPORT_GPU 43 #if SK_SUPPORT_GPU
44 SkSafeUnref(fCurContext); 44 SkSafeUnref(fCurContext);
45 SkSafeUnref(fCurIntf); 45 SkSafeUnref(fCurIntf);
46 SkSafeUnref(fCurRenderTarget); 46 SkSafeUnref(fCurRenderTarget);
47 #endif 47 #endif
48 } 48 }
49 49
50 void setUpBackend(SampleWindow* win, int msaaSampleCount) override { 50 void setUpBackend(SampleWindow* win, int msaaSampleCount, bool tenBitColor) override {
51 SkASSERT(SkOSWindow::kNone_BackEndType == fBackend); 51 SkASSERT(SkOSWindow::kNone_BackEndType == fBackend);
52 52
53 fBackend = SkOSWindow::kNone_BackEndType; 53 fBackend = SkOSWindow::kNone_BackEndType;
54 54
55 #if SK_SUPPORT_GPU 55 #if SK_SUPPORT_GPU
56 switch (win->getDeviceType()) { 56 switch (win->getDeviceType()) {
57 case SampleWindow::kRaster_DeviceType: 57 case SampleWindow::kRaster_DeviceType:
58 break; 58 break;
59 // these guys use the native backend 59 // these guys use the native backend
60 case SampleWindow::kGPU_DeviceType: 60 case SampleWindow::kGPU_DeviceType:
(...skipping 420 matching lines...) Expand 10 before | Expand all | Expand 10 after
481 glBindRenderbuffer(GL_RENDERBUFFER, fGL.fRenderbuffer); 481 glBindRenderbuffer(GL_RENDERBUFFER, fGL.fRenderbuffer);
482 glGetRenderbufferParameteriv(GL_RENDERBUFFER, 482 glGetRenderbufferParameteriv(GL_RENDERBUFFER,
483 GL_RENDERBUFFER_STENCIL_SIZE, 483 GL_RENDERBUFFER_STENCIL_SIZE,
484 &info->fStencilBits); 484 &info->fStencilBits);
485 glGetRenderbufferParameteriv(GL_RENDERBUFFER, 485 glGetRenderbufferParameteriv(GL_RENDERBUFFER,
486 GL_RENDERBUFFER_SAMPLES_APPLE, 486 GL_RENDERBUFFER_SAMPLES_APPLE,
487 &info->fSampleCount); 487 &info->fSampleCount);
488 } 488 }
489 489
490 @end 490 @end
OLDNEW
« no previous file with comments | « no previous file | gyp/gpu.gypi » ('j') | include/gpu/GrContext.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698