Tobias Schneider
252b05ee07
Bug 1195968 - Check how CanvasFilterChainObserver accesses the CanvasRenderingContext2D. r=mstange
2016-04-09 15:43:14 -04:00
Andreas Pehrson
e43a311400
Bug 1208371 - Change HTMLMediaElement video sinks to check principal for video only tracks. r=mt
...
MozReview-Commit-ID: KGbyJDgpBOn
2016-01-26 15:36:52 +08:00
Peter Chang
594728e638
Bug 1260960 - Check skiaGL is enabled before calling skiaGLTex(), r=snorp
...
MozReview-Commit-ID: 8xaDtiPX563
2016-03-31 12:48:02 +08:00
Lee Salzman
21ed672404
Bug 1256515 - bail out in CanvasRenderingContext2D::DrawWindow if snapshotting draw target fails. r=bas.schouten
2016-03-21 10:48:35 -04:00
Xidorn Quan
ba620a636b
Bug 1257121 part 4 - Use return value rather than out param to return font metrics. r=jfkthame
...
MozReview-Commit-ID: 6xrHYbgHGVd
2016-03-17 13:55:48 +08:00
Xidorn Quan
03d5b80bc0
Bug 1257121 part 1 - Use struct for passing some params of font metrics. r=jfkthame
...
MozReview-Commit-ID: FTJlYS3bbTa
2016-03-21 11:59:36 +08:00
Ethan Lin
6932dc016b
Bug 910138 - Part 1. Add support for new canvas ellipse method. r=roc, r=smaug
2016-03-15 00:53:00 +01:00
peter chang
6c587b27bb
Bug 1254447 - Don't always check UseAcceleratedCanvas when calling GetSkiaGLGlue, r=jrmuizel
...
MozReview-Commit-ID: 95GY5aGJGK1
2016-03-16 12:09:17 +08:00
Boris Zbarsky
8ce960e7b9
Bug 1255172. Fix unsafe reference gc hazards people snuck into DOM code. r=bkelly
2016-03-10 18:07:28 -05:00
Xidorn Quan
b4c925b144
Bug 1251995 part 1 - Add helper functions to simplify code. r=jfkthame
...
MozReview-Commit-ID: 6UBvmEpo12f
2016-03-08 15:56:18 +08:00
Carsten "Tomcat" Book
335b84b15e
Backed out changeset d88221aad093 (bug 1251995) for reftest failures
2016-03-07 12:18:40 +01:00
Xidorn Quan
4e488c536b
Bug 1251995 part 1 - Add helper functions to simplify code. r=jfkthame
...
MozReview-Commit-ID: 6UBvmEpo12f
2016-03-04 19:20:43 +08:00
Phil Ringnalda
712fd4e2ee
Back out 9 changesets (bug 801176) for frequent crashes in test_offscreencanvas_dynamic_fallback.html
...
Backed out changeset 82320c900699 (bug 801176)
Backed out changeset 624fb8512ba5 (bug 801176)
Backed out changeset a2a7b1c4dc5b (bug 801176)
Backed out changeset e210473d793c (bug 801176)
Backed out changeset 0fb279e041e1 (bug 801176)
Backed out changeset c090dc98c670 (bug 801176)
Backed out changeset fc509e59a0cd (bug 801176)
Backed out changeset 134a8c56335a (bug 801176)
Backed out changeset 2022afa9aef2 (bug 801176)
2016-03-05 07:20:47 -08:00
vincentliu
26c1035700
Bug 801176 - part8-v1: Fix memory leak in OffscreenCanvas. r=roc
...
---
dom/canvas/CanvasRenderingContext2D.cpp | 2 ++
dom/canvas/OffscreenCanvas.cpp | 12 +++++++-----
2 files changed, 9 insertions(+), 5 deletions(-)
2016-03-04 15:24:50 +08:00
vincentliu
e5802e9840
Bug 801176 - part6-v1: Modify BufferProvider operations to fix assertions. r=roc
...
---
dom/canvas/CanvasRenderingContext2D.cpp | 12 +++--
dom/canvas/OffscreenCanvas.cpp | 2 -
gfx/layers/AsyncCanvasRenderer.cpp | 85 +++++++++++++++++++++++++--------
gfx/layers/AsyncCanvasRenderer.h | 1 +
4 files changed, 73 insertions(+), 27 deletions(-)
2016-03-04 15:24:00 +08:00
vincentliu
a8c155bf79
Bug 801176 - part5-v2: Fix Assertions in debug build. r=roc
...
---
dom/canvas/CanvasRenderingContext2D.cpp | 47 ++++++++++++++++++++-------------
1 file changed, 29 insertions(+), 18 deletions(-)
2016-03-04 15:23:40 +08:00
vincentliu
1bc14e3692
Bug 801176 - part3-v6: Keep CSSParser operations as threading safe. r=heycam
...
---
dom/canvas/CanvasRenderingContext2D.cpp | 13 +++++---
layout/style/ErrorReporter.cpp | 9 +++++-
layout/style/nsCSSParser.cpp | 55 ++++++++++++++++++++-------------
3 files changed, 51 insertions(+), 26 deletions(-)
2016-03-04 15:22:58 +08:00
vincentliu
fd0afbeb0e
Bug 801176 - part2-v5: Let Canvas 2d context works on Workers. r=roc
...
---
dom/canvas/CanvasRenderingContext2D.cpp | 53 ++++++++++++-----------
dom/canvas/OffscreenCanvas.cpp | 46 +++++++++++---------
dom/html/HTMLCanvasElement.cpp | 1 +
gfx/layers/AsyncCanvasRenderer.cpp | 17 ++++++++
gfx/layers/AsyncCanvasRenderer.h | 16 +++++++
gfx/layers/Effects.cpp | 6 +++
gfx/layers/GLImages.cpp | 5 +--
gfx/layers/client/CanvasClient.cpp | 74 +++++++++++++++++++++++++--------
gfx/layers/client/CanvasClient.h | 10 ++++-
9 files changed, 162 insertions(+), 66 deletions(-)
2016-03-04 15:22:39 +08:00
vincentliu
a57559d183
Bug 801176 - part1-v8: Modify webidl for 2d canvas. r=smaug, roc
...
---
dom/canvas/CanvasRenderingContext2D.cpp | 38 +++++++++++++++
dom/canvas/CanvasRenderingContext2D.h | 6 +++
dom/webidl/CanvasRenderingContext2D.webidl | 76 ++++++++++++++++++------------
dom/webidl/HTMLCanvasElement.webidl | 2 +
dom/webidl/WebGLRenderingContext.webidl | 2 +-
dom/workers/WorkerPrefs.h | 1 +
6 files changed, 95 insertions(+), 30 deletions(-)
2016-03-04 15:22:16 +08:00
Milan Sreckovic
81d7f35dc0
Bug 1249640: Part 2 gfxPlatform simplification when it comes to accelerated canvas, using the new blocking. r=gw280
2016-02-22 14:23:00 +01:00
Sebastian Hengst
34b2891e04
Backed out changeset 303b759e886e (bug 1249640)
2016-02-24 19:02:00 +01:00
Milan Sreckovic
4d4acd093b
Bug 1249640: Part 2 gfxPlatform simplification when it comes to accelerated canvas, using the new blocking. r=gw280
2016-02-22 14:23:00 +01:00
Cameron McCormack
8a879b8032
Bug 1244068 - Part 4: Use StyleSetHandle instead of concrete style set class in most places. r=dholbert
2016-02-24 18:01:11 +11:00
Lee Salzman
a3a3477fc2
Bug 1246775 - fix Canvas2D drawWindow to reacquire its DT after rendering. r=bas
2016-02-10 13:17:56 -05:00
Lee Salzman
1f5d846e27
Bug 1246775 - use already_AddRefed in PersistentBufferProvider interface. r=bas
2016-02-10 13:16:13 -05:00
Lee Salzman
00986cfc85
Bug 1244850 - always validate destination rect for CanvasRenderingContext2D::DrawImage. r=jmuizelaar
2016-02-02 12:45:17 -05:00
vincentliu
a7801c73fa
Bug 801176 - part0-v3: Modify Coding Style for 2d Canvas. r=roc
...
---
dom/canvas/CanvasRenderingContext2D.cpp | 1336 +++++++++++++++----------------
dom/canvas/CanvasRenderingContext2D.h | 508 ++++++------
2 files changed, 922 insertions(+), 922 deletions(-)
2016-02-01 16:39:08 +08:00
Kyle Huey
e95edb30a9
Bug 1241764: Replace nsPIDOMWindow with nsPIDOMWindowInner/Outer. r=mrbkap,smaug
2016-01-30 09:05:36 -08:00
Milan Sreckovic
586795758a
Bug 1239835: Do nothing when rectangle given to ClearRect has zero width or height. (Also mixing in some minor white space changes while in the file.) r=dholbert
2016-01-18 11:32:41 -05:00
Nicholas Nethercote
f16ab43ac3
Bug 1209812 (part 6) - Convert all gfxImageFormat values to SurfaceFormat equivalents. r=jrmuizel.
...
This patch:
- Makes the following substitutions (plus necessary namespace qualifiers:
gfxImageFormat::ARGB32 --> SurfaceFormat::A8R8G8B8_UINT32
gfxImageFormat::RGB24 --> SurfaceFormat::X8R8G8B8_UINT32
gfxImageFormat::A8 --> SurfaceFormat::A8
gfxImageFormat::RGB16_565 --> SurfaceFormat::R5G6B5_UINT16
gfxImageFormat::Unknown --> SurfaceFormat::UNKNOWN
- Changes gfxImageFormat to be a typedef to gfx::SurfaceFormat. This will be
removed soon.
- Removes gfxCairoFormatToImageFormat() and gfxImageFormatToCairoFormat() and
replace calls to them with CairoFormatToGfxFormat() and
GfxFormatToCairoFormat().
- Removes ParamTraits<gfxImageFormat>.
- Add namespace qualifiers to SurfaceFormat instances where necessary.
2016-01-07 20:57:38 -08:00
Nicholas Nethercote
5eb010d5dd
Bug 1233631 - Moz2Dify CanvasBidiProcessor. r=jfkthame.
2015-12-17 19:59:04 -08:00
Nicholas Nethercote
7fabd8754f
Bug 1231550 - Use DrawTarget instead of gfxContext and/or nsRenderingContext in many places in font/text code. r=jfkthame.
...
AutoTextRun now only needs a DrawTarget instead of an nsRenderingContext, and
similar nsRenderingContext/gfxContext-to-DrawTarget replacements can be
propagated a long way up the call graph. This patch replaces 93 occurrences of
nsRenderingContext and 135 occurrences of gfxContext with DrawTarget; that's
13% of them.
The patch is mostly plumbing changes. A couple of not-entirely-plumbing
changes:
- It adds a comment about the null check in
gfxGlyphExtents::GetTightGlyphExtentsAppUnits().
- A couple of functions simply had an unused gfxContext or nsRenderingContext
parameter removed, e.g. SetLineBreaks().
2015-12-15 13:56:41 -08:00
Lee Salzman
07aa7167f1
Bug 1229932 - check that offsets to canvas fillText() are finite. r=jmuizelaar
2015-12-16 14:56:22 -05:00
Ms2ger
df98723d45
Bug 1217835 - Rewrite some code in CanvasRenderingContext2D::GetImageDataArray to avoid build warnings; r=gw280
2015-12-18 11:08:06 +01:00
Morris Tseng
e28be5fbce
Bug 1172796 - Part 7: Implements ImageBitmapRenderingContext. r=roc r=smaug
2015-12-18 14:52:17 +08:00
peter chang
c5c4cddc13
Bug 1018527 - bypass canvas API calls when inputs are out of float precision, r=jmuizelaar
2015-12-09 01:08:00 +01:00
Lars T Hansen
f7d6191975
Bug 1176214 - Part 11: Changes to DOM, except for WebGL. r=bz, r=clb
2015-11-25 19:04:50 +01:00
Milan Sreckovic
d52121d370
Bug 1228287 - Make sure we can't do SkiaGL without the pref set. r=benwa
2015-11-26 11:00:00 +01:00
Jeff Gilbert
d658f53faf
Bug 1221822 - Finish the WebGL texture refactor. r=kamidphish,mattwoodrow,bz
2015-11-24 20:15:29 -08:00
Phil Ringnalda
80310b6e5c
Back out changeset 2f614bcd9405 (bug 1221822) for test_conformance__extensions__ext-sRGB.html and test_webgl2_alpha_luminance.html failures
2015-11-23 21:55:59 -08:00
Jeff Gilbert
8e72348cfc
Bug 1221822 - Finish the WebGL texture refactor. r=kamidphish,mattwoodrow,bz
2015-11-23 19:27:13 -08:00
Michael Bebenita
1a6d310efa
Bug 696630 - Take imageSmoothingEnabled into account when creating pattern fills. r=mattwoodrow
2015-11-17 14:46:42 -08:00
Boris Zbarsky
11cee47d40
Bug 1224007 part 4. Fix some cases in which ErrorResult instances are destroyed without doing anything useful with exceptions on them. r=peterv
2015-11-20 16:29:41 -05:00
John Daggett
f2f6363ff1
Bug 1213280 - fix OSX font selection under 10.11. r=jfkthame
2015-11-20 22:01:12 +09:00
Lee Salzman
c31df1e4b6
Bug 1225381 - ensure mozCurrentTransform is finite. r=jmuizelaar
2015-11-17 12:35:10 -05:00
Bas Schouten
75ab77ec9d
Bug 1210560 - Part 4: Remove code to support non operator-over in nsRenderDocument and move to CanvasRenderingContext2D::DrawWindow. r=roc
2015-11-11 16:15:39 +01:00
Lee Salzman
e00faeb341
Bug 1222083 - verify that a Skia GL context is actually available before trying to use it in Canvas2D drawImage. r=jmuizelaar
2015-11-05 12:33:12 -05:00
L. David Baron
e4cee74a1d
Bug 1221436 patch 2 - For style attributes, only store a css::Declaration instead of a css::StyleRule. r=heycam
...
Now that Declaration implements nsIStyleRule, we don't need the memory
overhead of storing a StyleRule object for style attributes.
We also need to change this prior to patch 5, because the changes in
patch 5 that will allow rules to change (but declarations not) would
otherwise break due to style attribute object merging done by
nsAttrValue::ParseStyleAttribute.
2015-11-09 15:57:16 +08:00
L. David Baron
75a883e95b
Bug 978833 patch 18 - Eliminate StyleRule::RuleMatched and call Declaration::SetImmutable directly for style rules (like for @page and keyframe rules). r=heycam
...
This is just simplification (plus the addition of an assertion).
2015-11-05 16:44:10 +08:00
L. David Baron
d3896c62bf
Bug 978833 patch 12 - Use the css::Declaration instead of the css::StyleRule as the matching rule. r=heycam
...
This is the key change in this patch series; it changes the object we
use for style data (currently nsIStyleRule) identity. It allows
removing some hacks we have to deal with that for StyleRule, and avoids
having to write similar hacks for nsCSSKeyframeRule and nsCSSPageRule
(which are broken without this).
I confirmed locally that it is this patch that fixes both of the todo_is
mochitests, by building and testing with the patch queue through patch
11, and again through patch 12.
2015-11-05 16:44:10 +08:00