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

Unified Diff: tools/dom/templates/html/impl/impl_WebGLRenderingContext.darttemplate

Issue 22458005: Fix texImage2D on Dartium. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 4 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 | « sdk/lib/web_gl/dartium/web_gl_dartium.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/dom/templates/html/impl/impl_WebGLRenderingContext.darttemplate
diff --git a/tools/dom/templates/html/impl/impl_WebGLRenderingContext.darttemplate b/tools/dom/templates/html/impl/impl_WebGLRenderingContext.darttemplate
index 893d9df418be255ec7a95cba46e1a8282a7d702e..3b233f34c10c2cd02aff7d7073206263c875712e 100644
--- a/tools/dom/templates/html/impl/impl_WebGLRenderingContext.darttemplate
+++ b/tools/dom/templates/html/impl/impl_WebGLRenderingContext.darttemplate
@@ -24,8 +24,19 @@ $if DART2JS
$else
void texImage2D(int targetTexture, int levelOfDetail, int internalFormat,
int format, int type, data) {
- _texImage2D(targetTexture, levelOfDetail, internalFormat,
- format, type, data);
+ if (data is ImageElement) {
+ texImage2DImage(targetTexture, levelOfDetail, internalFormat, format,
+ type, data);
+ } else if (data is ImageData) {
+ texImage2DImageData(targetTexture, levelOfDetail, internalFormat, format,
+ type, data);
+ } else if (data is CanvasElement) {
+ texImage2DCanvas(targetTexture, levelOfDetail, internalFormat, format,
+ type, data);
+ } else {
+ texImage2DVideo(targetTexture, levelOfDetail, internalFormat, format,
+ type, data);
+ }
}
$endif
« no previous file with comments | « sdk/lib/web_gl/dartium/web_gl_dartium.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698