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

Unified Diff: runtime/embedders/android/graphics.h

Issue 11823034: Backport some work from sample to embedder: (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 11 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « runtime/embedders/android/android_extension.cc ('k') | runtime/embedders/android/graphics.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/embedders/android/graphics.h
===================================================================
--- runtime/embedders/android/graphics.h (revision 16869)
+++ runtime/embedders/android/graphics.h (working copy)
@@ -7,6 +7,8 @@
#include <android_native_app_glue.h>
#include <EGL/egl.h>
+#include <GLES2/gl2.h>
+#include <GLES2/gl2ext.h>
#include "embedders/android/timer.h"
@@ -18,7 +20,12 @@
const int32_t& width();
int32_t Start();
void Stop();
+ void SwapBuffers();
int32_t Update();
+ void SetViewport(int left, int top, int width, int height);
+ int BuildProgram(const char* vertexShaderSource,
+ const char* fragmentShaderSource) const;
+ int BuildShader(const char* source, GLenum shaderType) const;
private:
android_app* application_;
« no previous file with comments | « runtime/embedders/android/android_extension.cc ('k') | runtime/embedders/android/graphics.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698