3 Reviewed by NOBODY (OOPS!).
4
5 [chromium] Add a PrepareTextureCallback to the chromium canvas layer compositor to upload mixed-mode results before compositing
6 https://bugs.webkit.org/show_bug.cgi?id=43656
7
8 When compositing an accelerated canvas that is using both hardware and software drawing,
9 we need a callback before compositing the layer to make sure that we upload any software
10 drawn results to the texture. This will go away as soon as implement all draw calls
11 in hardware.
12
13 To test, run any canvas demo that runs in mixed mode and verifies that the software results
14 always show up.
15
16 * platform/graphics/chromium/CanvasLayerChromium.cpp:
17 (WebCore::CanvasLayerChromium::updateTextureContents):
18 * platform/graphics/chromium/CanvasLayerChromium.h:
19 (WebCore::CanvasLayerChromium::setPrepareTextureCallback):
20 * platform/graphics/skia/PlatformContextSkia.cpp:
21 (WebCore::PrepareTextureCallbackImpl::create):
22 (WebCore::PrepareTextureCallbackImpl::willPrepareTexture):
23 (WebCore::PrepareTextureCallbackImpl::PrepareTextureCallbackImpl):
24 (WebCore::PlatformContextSkia::setGraphicsContext3D):
25
262010-08-06 James Robinson <jamesr@chromium.org>
27