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

Unified Diff: runtime/embedders/openglui/common/gl.dart

Issue 12340036: Android improvements: (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 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: runtime/embedders/openglui/common/gl.dart
===================================================================
--- runtime/embedders/openglui/common/gl.dart (revision 18917)
+++ runtime/embedders/openglui/common/gl.dart (working copy)
@@ -395,11 +395,15 @@
TextMetrics(this.width);
}
+void shutdown() {
+ CanvasRenderingContext2D.next_handle = 0;
+}
+
class CanvasRenderingContext2D extends CanvasRenderingContext {
// TODO(gram): We need to support multiple contexts, for cached content
// prerendered to an offscreen buffer. For this we will use handles, with
// handle 0 being the physical display.
- static int _next_handle = 0;
+ static int next_handle = 0;
int _handle = 0;
get handle => _handle;
@@ -412,7 +416,7 @@
CanvasRenderingContext2D(canvas, width, height) : super(canvas) {
_width = width;
_height = height;
- C2DCreateNativeContext(_handle = _next_handle++, width, height);
+ C2DCreateNativeContext(_handle = next_handle++, width, height);
}
double _alpha = 1.0;
« no previous file with comments | « runtime/embedders/openglui/common/extension.cc ('k') | runtime/embedders/openglui/common/graphics_handler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698