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

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
« no previous file with comments | « samples/android_sample/jni/eventloop.cc ('k') | samples/android_sample/jni/graphics.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 "bin/log.h"
7 #include "jni/timer.h"
8
9 class Graphics {
10 public:
11 Graphics(android_app* application, Timer* timer);
12
13 const int32_t& height();
14 const int32_t& width();
15 int32_t Start();
16 void Stop();
17 int32_t Update();
18
19 private:
20 android_app* application_;
21 Timer* timer_;
22 int32_t width_, height_;
23 EGLDisplay display_;
24 EGLSurface surface_;
25 EGLContext context_;
26 };
27
28 #endif
29
OLDNEW
« no previous file with comments | « samples/android_sample/jni/eventloop.cc ('k') | samples/android_sample/jni/graphics.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698