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

Side by Side Diff: samples/android_sample/jni/graphics.h

Issue 11434046: Android rayshader sample. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years 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 | Annotate | Revision Log
OLDNEW
(Empty)
1 #ifndef GRAPHICS_H
2 #define GRAPHICS_H
3
4 #include <android_native_app_glue.h>
5 #include <EGL/egl.h>
6 #include "timer.h"
7 #include "bin/log.h"
8
9 class Graphics {
10 public:
11 Graphics(android_app* pApplication, Timer* pTimer);
12
13 const int32_t& getHeight();
14 const int32_t& getWidth();
15 int32_t start();
16 void stop();
17 int32_t update();
18
19 private:
20 android_app* mApplication;
21 Timer* mTimer;
22 int32_t mWidth, mHeight;
23 EGLDisplay mDisplay;
24 EGLSurface mSurface;
25 EGLContext mContext;
26 };
27
28 #endif
29
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698