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

Side by Side Diff: experimental/iOSSampleApp/SkSampleUIView.mm

Issue 1595503002: SampleApp: Remove SkWindow::setColorType (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: mac build fix Created 4 years, 11 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 | « experimental/iOSSampleApp/Shared/SkUIView.mm ('k') | include/views/SkWindow.h » ('j') | no next file with comments »
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 308 matching lines...) Expand 10 before | Expand all | Expand 10 after
319 for (int i = 0; i < argc; ++i) { 319 for (int i = 0; i < argc; ++i) {
320 NSString* arg = [arguments objectAtIndex:i]; 320 NSString* arg = [arguments objectAtIndex:i];
321 int strlen = [arg lengthOfBytesUsingEncoding:NSUTF8StringEncoding]; 321 int strlen = [arg lengthOfBytesUsingEncoding:NSUTF8StringEncoding];
322 argv[i] = new char[strlen+1]; 322 argv[i] = new char[strlen+1];
323 [arg getCString:argv[i] maxLength:strlen+1 encoding:NSUTF8StringEnco ding]; 323 [arg getCString:argv[i] maxLength:strlen+1 encoding:NSUTF8StringEnco ding];
324 } 324 }
325 325
326 fDevManager = new SkiOSDeviceManager(fGL.fFramebuffer); 326 fDevManager = new SkiOSDeviceManager(fGL.fFramebuffer);
327 fWind = new SampleWindow(self, argc, argv, fDevManager); 327 fWind = new SampleWindow(self, argc, argv, fDevManager);
328 328
329 fWind->resize(self.frame.size.width, self.frame.size.height, 329 fWind->resize(self.frame.size.width, self.frame.size.height);
330 kN32_SkColorType);
331 330
332 for (int i = 0; i < argc; ++i) { 331 for (int i = 0; i < argc; ++i) {
333 delete [] argv[i]; 332 delete [] argv[i];
334 } 333 }
335 delete [] argv; 334 delete [] argv;
336 } 335 }
337 return self; 336 return self;
338 } 337 }
339 338
340 - (void)dealloc { 339 - (void)dealloc {
(...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after
482 glBindRenderbuffer(GL_RENDERBUFFER, fGL.fRenderbuffer); 481 glBindRenderbuffer(GL_RENDERBUFFER, fGL.fRenderbuffer);
483 glGetRenderbufferParameteriv(GL_RENDERBUFFER, 482 glGetRenderbufferParameteriv(GL_RENDERBUFFER,
484 GL_RENDERBUFFER_STENCIL_SIZE, 483 GL_RENDERBUFFER_STENCIL_SIZE,
485 &info->fStencilBits); 484 &info->fStencilBits);
486 glGetRenderbufferParameteriv(GL_RENDERBUFFER, 485 glGetRenderbufferParameteriv(GL_RENDERBUFFER,
487 GL_RENDERBUFFER_SAMPLES_APPLE, 486 GL_RENDERBUFFER_SAMPLES_APPLE,
488 &info->fSampleCount); 487 &info->fSampleCount);
489 } 488 }
490 489
491 @end 490 @end
OLDNEW
« no previous file with comments | « experimental/iOSSampleApp/Shared/SkUIView.mm ('k') | include/views/SkWindow.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698