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

Side by Side Diff: platform_tools/android/apps/visualbench/src/main/jni/SkOSWindow_AndroidNative.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
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 #include "SkOSWindow_Android.h" 8 #include "SkOSWindow_Android.h"
9 9
10 #include <GLES/gl.h> 10 #include <GLES/gl.h>
11 11
12 SkOSWindow::SkOSWindow(void* hwnd) { 12 SkOSWindow::SkOSWindow(void* hwnd) {
13 fWindow.fDisplay = EGL_NO_DISPLAY; 13 fWindow.fDisplay = EGL_NO_DISPLAY;
14 fWindow.fContext = EGL_NO_CONTEXT; 14 fWindow.fContext = EGL_NO_CONTEXT;
15 fWindow.fSurface = EGL_NO_SURFACE; 15 fWindow.fSurface = EGL_NO_SURFACE;
16 fNativeWindow = (ANativeWindow*)hwnd; 16 fNativeWindow = (ANativeWindow*)hwnd;
17 fDestroyRequested = false; 17 fDestroyRequested = false;
18 } 18 }
19 19
20 SkOSWindow::~SkOSWindow() { 20 SkOSWindow::~SkOSWindow() {
21 this->release(); 21 this->release();
22 } 22 }
23 23
24 bool SkOSWindow::attach(SkBackEndTypes attachType, 24 bool SkOSWindow::attach(SkBackEndTypes attachType,
25 int /*msaaSampleCount*/, 25 int /*msaaSampleCount*/,
26 bool /*deepColor*/
26 AttachmentInfo* info) { 27 AttachmentInfo* info) {
27 static const EGLint kEGLContextAttribsForOpenGL[] = { 28 static const EGLint kEGLContextAttribsForOpenGL[] = {
28 EGL_NONE 29 EGL_NONE
29 }; 30 };
30 31
31 static const EGLint kEGLContextAttribsForOpenGLES[] = { 32 static const EGLint kEGLContextAttribsForOpenGLES[] = {
32 EGL_CONTEXT_CLIENT_VERSION, 2, 33 EGL_CONTEXT_CLIENT_VERSION, 2,
33 EGL_NONE 34 EGL_NONE
34 }; 35 };
35 36
(...skipping 154 matching lines...) Expand 10 before | Expand all | Expand 10 after
190 191
191 /////////////////////////////////////////// 192 ///////////////////////////////////////////
192 /////////////// SkEvent impl ////////////// 193 /////////////// SkEvent impl //////////////
193 /////////////////////////////////////////// 194 ///////////////////////////////////////////
194 195
195 void SkEvent::SignalQueueTimer(SkMSec ms) { 196 void SkEvent::SignalQueueTimer(SkMSec ms) {
196 } 197 }
197 198
198 void SkEvent::SignalNonEmptyQueue() { 199 void SkEvent::SignalNonEmptyQueue() {
199 } 200 }
OLDNEW
« no previous file with comments | « platform_tools/android/apps/sample_app/src/main/jni/com_skia_SkiaSampleRenderer.cpp ('k') | samplecode/SampleApp.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698