Chromium Code Reviews| OLD | NEW |
|---|---|
| 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 AttachmentInfo* info) { | |
|
jvanverth1
2016/04/29 15:25:11
Same here.
| |
| 27 static const EGLint kEGLContextAttribsForOpenGL[] = { | 26 static const EGLint kEGLContextAttribsForOpenGL[] = { |
| 28 EGL_NONE | 27 EGL_NONE |
| 29 }; | 28 }; |
| 30 | 29 |
| 31 static const EGLint kEGLContextAttribsForOpenGLES[] = { | 30 static const EGLint kEGLContextAttribsForOpenGLES[] = { |
| 32 EGL_CONTEXT_CLIENT_VERSION, 2, | 31 EGL_CONTEXT_CLIENT_VERSION, 2, |
| 33 EGL_NONE | 32 EGL_NONE |
| 34 }; | 33 }; |
| 35 | 34 |
| 36 static const struct { | 35 static const struct { |
| (...skipping 153 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 190 | 189 |
| 191 /////////////////////////////////////////// | 190 /////////////////////////////////////////// |
| 192 /////////////// SkEvent impl ////////////// | 191 /////////////// SkEvent impl ////////////// |
| 193 /////////////////////////////////////////// | 192 /////////////////////////////////////////// |
| 194 | 193 |
| 195 void SkEvent::SignalQueueTimer(SkMSec ms) { | 194 void SkEvent::SignalQueueTimer(SkMSec ms) { |
| 196 } | 195 } |
| 197 | 196 |
| 198 void SkEvent::SignalNonEmptyQueue() { | 197 void SkEvent::SignalNonEmptyQueue() { |
| 199 } | 198 } |
| OLD | NEW |