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

Side by Side Diff: chrome/test/data/gpu/webgl_teapot/teapot_files/demo.js

Issue 8523022: Change snasphotting API to take in a bounds Rect (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Changes as requested Created 9 years, 1 month 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 /* 1 /*
2 * Copyright (c) 2009 The Chromium Authors. All rights reserved. 2 * Copyright (c) 2009 The Chromium Authors. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 368 matching lines...) Expand 10 before | Expand all | Expand 10 after
379 waitForFinish(); 379 waitForFinish();
380 } 380 }
381 }(texture, face, image, url); 381 }(texture, face, image, url);
382 image.src = url; 382 image.src = url;
383 } 383 }
384 return texture; 384 return texture;
385 } 385 }
386 386
387 function waitForFinish() { 387 function waitForFinish() {
388 if (g_pendingTextureLoads == 0) { 388 if (g_pendingTextureLoads == 0) {
389 domAutomationController.setAutomationId(1); 389 var epilogue = document.createElement("script");
390 domAutomationController.send("ok"); 390 epilogue.onload = function() {
391 domAutomationController.setAutomationId(1);
392 domAutomationController.send("ok");
393 }
394 epilogue.src = "./teapot_files/epilogue.js";
395 document.body.appendChild(epilogue);
391 } 396 }
392 } 397 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698