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

Unified Diff: examples/sample_app/spinning_cube.cc

Issue 940293003: Add a Display and ContextProvider concept to mojom, use to recreate (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: android fixes Created 5 years, 10 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
Index: examples/sample_app/spinning_cube.cc
diff --git a/examples/sample_app/spinning_cube.cc b/examples/sample_app/spinning_cube.cc
index ae7ef970d67fcb1ddcef8e5f1d54779c58645135..86af6f3cd778ace52bf4290e8d4c4e67e8f7ec4a 100644
--- a/examples/sample_app/spinning_cube.cc
+++ b/examples/sample_app/spinning_cube.cc
@@ -439,10 +439,7 @@ SpinningCube::~SpinningCube() {
glDeleteProgram(state_->program_object_);
}
-void SpinningCube::Init(uint32_t width, uint32_t height) {
- width_ = width;
- height_ = height;
-
+void SpinningCube::Init() {
const char vertex_shader_source[] =
"uniform mat4 u_mvpMatrix; \n"
"attribute vec4 a_position; \n"
@@ -486,8 +483,6 @@ void SpinningCube::Init(uint32_t width, uint32_t height) {
void SpinningCube::OnGLContextLost() {
qsr 2015/02/23 12:32:52 If I recall correctly, we never sent this. If you
jamesr 2015/03/04 00:19:51 Oh, good catch. Added a call in GLES2ClientImpl::
initialized_ = false;
- height_ = 0;
- width_ = 0;
state_->OnGLContextLost();
}

Powered by Google App Engine
This is Rietveld 408576698