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

Side by Side Diff: example/HelloWorld.cpp

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 unified diff | Download patch
« no previous file with comments | « no previous file | experimental/SkV8Example/SkV8Example.cpp » ('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 * 4 *
5 * Use of this source code is governed by a BSD-style license that can be 5 * Use of this source code is governed by a BSD-style license that can be
6 * found in the LICENSE file. 6 * found in the LICENSE file.
7 * 7 *
8 */ 8 */
9 9
10 #include "HelloWorld.h" 10 #include "HelloWorld.h"
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
55 void HelloWorldWindow::setTitle() { 55 void HelloWorldWindow::setTitle() {
56 SkString title("Hello World "); 56 SkString title("Hello World ");
57 title.appendf(fType == kRaster_DeviceType ? "raster" : "opengl"); 57 title.appendf(fType == kRaster_DeviceType ? "raster" : "opengl");
58 INHERITED::setTitle(title.c_str()); 58 INHERITED::setTitle(title.c_str());
59 } 59 }
60 60
61 bool HelloWorldWindow::setUpBackend() { 61 bool HelloWorldWindow::setUpBackend() {
62 this->setVisibleP(true); 62 this->setVisibleP(true);
63 this->setClipToBounds(false); 63 this->setClipToBounds(false);
64 64
65 bool result = attach(kNativeGL_BackEndType, 0 /*msaa*/, &fAttachmentInfo); 65 bool result = attach(kNativeGL_BackEndType, 0 /*msaa*/, false, &fAttachmentI nfo);
66 if (false == result) { 66 if (false == result) {
67 SkDebugf("Not possible to create backend.\n"); 67 SkDebugf("Not possible to create backend.\n");
68 release(); 68 release();
69 return false; 69 return false;
70 } 70 }
71 71
72 fInterface = GrGLCreateNativeInterface(); 72 fInterface = GrGLCreateNativeInterface();
73 73
74 SkASSERT(NULL != fInterface); 74 SkASSERT(NULL != fInterface);
75 75
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after
178 setUpBackend(); 178 setUpBackend();
179 this->setTitle(); 179 this->setTitle();
180 this->inval(NULL); 180 this->inval(NULL);
181 } 181 }
182 return true; 182 return true;
183 } 183 }
184 184
185 SkOSWindow* create_sk_window(void* hwnd, int , char** ) { 185 SkOSWindow* create_sk_window(void* hwnd, int , char** ) {
186 return new HelloWorldWindow(hwnd); 186 return new HelloWorldWindow(hwnd);
187 } 187 }
OLDNEW
« no previous file with comments | « no previous file | experimental/SkV8Example/SkV8Example.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698