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

Unified Diff: examples/spinning_cube/spinning_cube.h

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: 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
« no previous file with comments | « examples/spinning_cube/gles2_client_impl.cc ('k') | examples/spinning_cube/spinning_cube.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: examples/spinning_cube/spinning_cube.h
diff --git a/examples/spinning_cube/spinning_cube.h b/examples/spinning_cube/spinning_cube.h
index 12f34d74b93b2207b61e2108dfa60a5c5fddc109..03529701d4609c4099f2b2a9b6e2d6432b5ac81a 100644
--- a/examples/spinning_cube/spinning_cube.h
+++ b/examples/spinning_cube/spinning_cube.h
@@ -16,13 +16,17 @@ class SpinningCube {
SpinningCube();
~SpinningCube();
- void Init(uint32_t width, uint32_t height);
+ void Init();
void set_direction(int direction) { direction_ = direction; }
void set_color(float r, float g, float b) {
color_[0] = r;
color_[1] = g;
color_[2] = b;
}
+ void set_size(uint32_t width, uint32_t height) {
+ width_ = width;
+ height_ = height;
+ }
void SetFlingMultiplier(float drag_distance, float drag_time);
void UpdateForTimeDelta(float delta_time);
void UpdateForDragDistance(float distance);
« no previous file with comments | « examples/spinning_cube/gles2_client_impl.cc ('k') | examples/spinning_cube/spinning_cube.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698