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

Issue 2255683005: Determine if OffscreenCanvas is paintable in different rendering contexts (Closed)

Created:
4 years, 4 months ago by xlai (Olivia)
Modified:
4 years, 4 months ago
CC:
chromium-reviews, krit, dshwang, drott+blinkwatch_chromium.org, blink-reviews-platform-graphics_chromium.org, ajuma+watch-canvas_chromium.org, blink-reviews-html_chromium.org, pdr+graphicswatchlist_chromium.org, jbroman, haraken, dglazkov+blink, Rik, f(malita), blink-reviews, danakj+watch_chromium.org, ajuma+watch_chromium.org, Stephen Chennney, rwlbuis
Base URL:
https://chromium.googlesource.com/chromium/src.git@Canvas2DTypecast
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Determine if OffscreenCanvas is paintable in different rendering contexts This CL adds isPaintable() to OffscreenCanvas which mimics HTMLCanvasElement:: isPaintable() with some adjustments. Certain common constants and utility functions shared by OffscreenCanvas and HTMLCanvasElement have been moved to platform/graphics/. This CL is to facilitate toBlob implementation. BUG=563830 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.win:win_optional_gpu_tests_rel;master.tryserver.chromium.mac:mac_optional_gpu_tests_rel Committed: https://crrev.com/aaa6eca6791478e854193a8da307449cd6af0256 Cr-Commit-Position: refs/heads/master@{#413450}

Patch Set 1 #

Total comments: 1

Patch Set 2 : Redo #

Patch Set 3 : comment #

Total comments: 8

Patch Set 4 : fix based on feedback #

Total comments: 2

Patch Set 5 : enum #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+58 lines, -24 lines) Patch
M third_party/WebKit/Source/core/html/HTMLCanvasElement.cpp View 4 chunks +3 lines, -24 lines 0 comments Download
M third_party/WebKit/Source/core/html/canvas/CanvasRenderingContext.h View 1 2 3 1 chunk +3 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/offscreencanvas/OffscreenCanvas.h View 1 1 chunk +2 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/offscreencanvas/OffscreenCanvas.cpp View 1 2 chunks +8 lines, -0 lines 1 comment Download
M third_party/WebKit/Source/modules/canvas2d/CanvasRenderingContext2D.h View 1 2 3 1 chunk +6 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/modules/imagebitmap/ImageBitmapRenderingContext.h View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/modules/offscreencanvas2d/OffscreenCanvasRenderingContext2D.h View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/modules/offscreencanvas2d/OffscreenCanvasRenderingContext2D.cpp View 1 1 chunk +4 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/modules/webgl/WebGLRenderingContextBase.h View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/platform/graphics/ImageBuffer.h View 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/platform/graphics/ImageBuffer.cpp View 1 2 3 4 1 chunk +13 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/platform/graphics/skia/SkiaUtils.h View 1 2 3 4 1 chunk +12 lines, -0 lines 0 comments Download

Messages

Total messages: 19 (5 generated)
xlai (Olivia)
PTAL. I'm a bit hesitant in putting the imagebitmaprenderer context here.
4 years, 4 months ago (2016-08-18 22:42:35 UTC) #3
Justin Novosad
https://codereview.chromium.org/2255683005/diff/1/third_party/WebKit/Source/modules/offscreencanvas/OffscreenCanvasModules.cpp File third_party/WebKit/Source/modules/offscreencanvas/OffscreenCanvasModules.cpp (right): https://codereview.chromium.org/2255683005/diff/1/third_party/WebKit/Source/modules/offscreencanvas/OffscreenCanvasModules.cpp#newcode28 third_party/WebKit/Source/modules/offscreencanvas/OffscreenCanvasModules.cpp:28: bool OffscreenCanvasModules::isPaintable(OffscreenCanvas& offscreenCanvas) There is a cleaner way to ...
4 years, 4 months ago (2016-08-19 14:55:48 UTC) #4
xlai (Olivia)
Redo to ensure encapsulation. Note that isPaintable() is public in CanvasRenderingContext so that OffscreenCanvas can ...
4 years, 4 months ago (2016-08-19 15:41:16 UTC) #5
Justin Novosad
https://codereview.chromium.org/2255683005/diff/40001/third_party/WebKit/Source/core/html/canvas/CanvasRenderingContext.h File third_party/WebKit/Source/core/html/canvas/CanvasRenderingContext.h (right): https://codereview.chromium.org/2255683005/diff/40001/third_party/WebKit/Source/core/html/canvas/CanvasRenderingContext.h#newcode85 third_party/WebKit/Source/core/html/canvas/CanvasRenderingContext.h:85: virtual bool isPaintable() const { NOTREACHED(); return false; } ...
4 years, 4 months ago (2016-08-19 16:49:39 UTC) #6
xlai (Olivia)
+kbr to review changes in WebglRenderingContextBase. Fix the parts commented by junov@. https://codereview.chromium.org/2255683005/diff/40001/third_party/WebKit/Source/core/html/canvas/CanvasRenderingContext.h File third_party/WebKit/Source/core/html/canvas/CanvasRenderingContext.h ...
4 years, 4 months ago (2016-08-19 17:11:34 UTC) #8
Justin Novosad
https://codereview.chromium.org/2255683005/diff/60001/third_party/WebKit/Source/platform/graphics/skia/SkiaUtils.h File third_party/WebKit/Source/platform/graphics/skia/SkiaUtils.h (right): https://codereview.chromium.org/2255683005/diff/60001/third_party/WebKit/Source/platform/graphics/skia/SkiaUtils.h#newcode56 third_party/WebKit/Source/platform/graphics/skia/SkiaUtils.h:56: const int PLATFORM_EXPORT MaxCanvasArea = 32768 * 8192; // ...
4 years, 4 months ago (2016-08-19 17:30:01 UTC) #9
xlai (Olivia)
https://codereview.chromium.org/2255683005/diff/60001/third_party/WebKit/Source/platform/graphics/skia/SkiaUtils.h File third_party/WebKit/Source/platform/graphics/skia/SkiaUtils.h (right): https://codereview.chromium.org/2255683005/diff/60001/third_party/WebKit/Source/platform/graphics/skia/SkiaUtils.h#newcode56 third_party/WebKit/Source/platform/graphics/skia/SkiaUtils.h:56: const int PLATFORM_EXPORT MaxCanvasArea = 32768 * 8192; // ...
4 years, 4 months ago (2016-08-19 17:42:03 UTC) #10
Ken Russell (switch to Gerrit)
LGTM in general but one comment. I assume tests will be added when follow-on CLs ...
4 years, 4 months ago (2016-08-19 20:31:01 UTC) #11
Justin Novosad
On 2016/08/19 20:31:01, Ken Russell wrote: > LGTM in general but one comment. > > ...
4 years, 4 months ago (2016-08-19 21:06:34 UTC) #12
xlai (Olivia)
On 2016/08/19 20:31:01, Ken Russell wrote: > LGTM in general but one comment. > > ...
4 years, 4 months ago (2016-08-19 22:17:54 UTC) #13
Ken Russell (switch to Gerrit)
On 2016/08/19 22:17:54, xlai (Olivia) wrote: > On 2016/08/19 20:31:01, Ken Russell wrote: > > ...
4 years, 4 months ago (2016-08-19 22:18:40 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2255683005/80001
4 years, 4 months ago (2016-08-22 14:17:22 UTC) #16
commit-bot: I haz the power
Committed patchset #5 (id:80001)
4 years, 4 months ago (2016-08-22 16:04:30 UTC) #17
commit-bot: I haz the power
4 years, 4 months ago (2016-08-22 16:05:54 UTC) #19
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/aaa6eca6791478e854193a8da307449cd6af0256
Cr-Commit-Position: refs/heads/master@{#413450}

Powered by Google App Engine
This is Rietveld 408576698