Bug 1041157 - Add link to the discussion about using the same context with multiple canvases, for the replayAnimationFrame function in canvas.js, r=past
authorVictor Porof <vporof@mozilla.com>
Tue, 22 Jul 2014 12:43:23 -0400
changeset 195533 29d9c7cb0277490b5d1d9a8f1dd4211845fc133b
parent 195532 0b862f5df15213d51c1ce7e5ffe0f80b1b18bfbe
child 195534 7a250901c59db7f13b8b55d88c824b6c472a1f90
push id27185
push userkwierso@gmail.com
push dateWed, 23 Jul 2014 01:05:43 +0000
treeherdermozilla-central@5683746bac22 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerspast
bugs1041157
milestone34.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1041157 - Add link to the discussion about using the same context with multiple canvases, for the replayAnimationFrame function in canvas.js, r=past
toolkit/devtools/server/actors/canvas.js
--- a/toolkit/devtools/server/actors/canvas.js
+++ b/toolkit/devtools/server/actors/canvas.js
@@ -559,18 +559,21 @@ let ContextUtils = {
   /**
    * Invokes a series of canvas context calls, to "replay" an animation frame
    * and generate a screenshot.
    *
    * In case of a WebGL context, an offscreen framebuffer is created for
    * the respective canvas, and the rendering will be performed into it.
    * This is necessary because some state (like shaders, textures etc.) can't
    * be shared between two different WebGL contexts.
-   * Hopefully, once SharedResources are a thing this won't be necessary:
-   * http://www.khronos.org/webgl/wiki/SharedResouces
+   *   - Hopefully, once SharedResources are a thing this won't be necessary:
+   *     http://www.khronos.org/webgl/wiki/SharedResouces
+   *   - Alternatively, we could pursue the idea of using the same context
+   *     for multiple canvases, instead of trying to share resources:
+   *     https://www.khronos.org/webgl/public-mailing-list/archives/1210/msg00058.html
    *
    * In case of a 2D context, a new canvas is created, since there's no
    * intrinsic state that can't be easily duplicated.
    *
    * @param number contexType
    *        The type of context to use. See the CallWatcherFront scope types.
    * @param HTMLCanvasElement canvas
    *        The canvas element which is the source of all context calls.