Commit Graph

130 Commits

Author SHA1 Message Date
Boris Zbarsky
e12283979d Bug 1382027. Allow using an SVGImageElement as a CanvasImageSource. r=mystor
--HG--
rename : testing/web-platform/tests/2dcontext/drawing-images-to-the-canvas/drawimage_html_image_1.html => testing/web-platform/tests/2dcontext/drawing-images-to-the-canvas/drawimage_svg_image_1.html
rename : testing/web-platform/tests/2dcontext/drawing-images-to-the-canvas/drawimage_html_image_1_ref.html => testing/web-platform/tests/2dcontext/drawing-images-to-the-canvas/drawimage_svg_image_1_ref.html
2017-07-19 11:48:49 -04:00
Kirk Steuber
8c3a82a2d2 Bug 1370727 - Return void from nsICanvasRenderingContextInternal::SetIsOpaque r=bz
nsICanvasRenderingContextInternal::SetIsOpaque returns nsresult, but no implementations return errors. It should return void instead.

MozReview-Commit-ID: LrGouaeoCvo

--HG--
extra : rebase_source : a17432006aa073edaecf15424a3b350309d704c4
2017-06-09 12:15:42 -07:00
Mats Palmgren
0bf577cd74 Bug 1352093 - Use an integer type for sNumLivingContexts that won't overflow when counting objects. r=mstange
MozReview-Commit-ID: 2w9y0flEdrX

--HG--
extra : rebase_source : 199beffa993b756ef208f6070a9f5c3de0d2fea0
2017-05-03 10:40:51 -04:00
Jeff Gilbert
326703ec04 Bug 1355763 - Add gfxAlphaType for specifying opaque/premult/non-premult. - r=daoshengmu
MozReview-Commit-ID: Jzr8aPYlEcO
2017-04-13 09:14:34 -07:00
Iris Hsiao
bf9a6182a2 Backed out changeset f97fd860c168 (bug 1355763) 2017-04-13 14:46:43 +08:00
Jeff Gilbert
95c5ba8077 Bug 1355763 - Add gfxAlphaType for specifying opaque/premult/non-premult. - r=daoshengmu
MozReview-Commit-ID: Jzr8aPYlEcO
2017-04-12 22:03:43 -07:00
Ehsan Akhgari
0fea8eec91 Bug 1342720 - Optimize away the cost of creating and destroying nsBidi from CanvasRenderingContext2D::DrawOrMeasureText(); r=baku
The ICU implementation of ~nsBidi is particularly expensive because
it calls free() several times.
2017-02-28 09:13:48 -05:00
Ethan Lin
7faa453e65 Bug 1341521 - Remove the retaining buffer machanism when setting the same canvas dimension. r=nical
--HG--
extra : rebase_source : 519ae1558bb0a771474508ebfd1f44ea38262015
2017-02-23 01:20:00 -05:00
Kevin Chen
3f7720742d Bug 1331857 - Create class BasicRenderingContext2D. r=gwright 2017-02-02 22:43:00 +01:00
Boris Zbarsky
11a5929f8e Bug 1334865 part 2. Remove the unused (and broken) asyncDrawXULElement API. r=smaug 2017-02-01 18:04:06 -05:00
Boris Zbarsky
02217e5d26 Bug 1335368 part 10. Stop using IsCallerChrome in CanvasRenderingContext2D. r=bholley 2017-02-01 15:43:37 -05:00
Milan Sreckovic
533dce0966 Bug 1328932: Back out the diagnostic patch from bug 1318283. r=gw280
MozReview-Commit-ID: KRyhWLBuHWM

--HG--
extra : rebase_source : 4661026584981fa53d971fa5e694335d27e3e525
2017-01-17 16:58:02 -05:00
Milan Sreckovic
e46c16114f Bug 1318283: UpdateFilter can sometimes invalidate the draw target. Back out the previous speculative patch. r=mstange
MozReview-Commit-ID: 8u2sjS9dyLu

--HG--
extra : rebase_source : 876ec3d4d2cd47d76fe57db645764eba281209d9
2017-01-03 12:01:11 -05:00
Edwin Flores
3af4985263 Bug 1318283 - Debug patch - r=milan 2016-11-28 19:32:49 +00:00
Nicolas Silva
4ae68feb2d Bug 1300121 - Make switching between canvas buffer providers a tad more robust. r=Bas 2016-11-24 15:08:10 +01:00
Milan Sreckovic
976fdb1420 Bug 1309913: Pass the compositor type to canvas on creation. r=dvander
MozReview-Commit-ID: 81HtvWPdLQa

--HG--
extra : rebase_source : a448447fcb573beb320b2b2a352b97f77a5bafe3
2016-11-03 10:57:33 -04:00
Wes Kocher
0b825de25a Backed out changeset e71aa9bcb92c (bug 1309913) for osx reftest failures in linear-gradient-1a.html a=backout 2016-11-02 10:48:07 -07:00
Milan Sreckovic
c6b4c6bdef Bug 1309913: Pass the compositor type to canvas on creation. r=dvander
MozReview-Commit-ID: H9HXXlyqa88

--HG--
extra : rebase_source : 56914a616981d74774eaa598e9b1cbc637449eec
2016-11-01 16:54:33 -04:00
Markus Stange
336b3a1f27 Bug 1308859 - Do not hold on to pointers into mStyleStack across a presshell flush. r=jrmuizel
MozReview-Commit-ID: Cenm0J8rNq7

--HG--
extra : rebase_source : 8bf6cf74c270170ae211692337e791d8aef23ada
2016-10-25 13:44:19 -04:00
Markus Stange
c19af15fab Bug 1308859 - Back out the instrumentation because I think I know what the problem is now.
MozReview-Commit-ID: 7XdGDR950df

--HG--
extra : rebase_source : 457da3f8547a9a4a8e162c56b6a52bf9b1472661
2016-10-25 14:00:21 -04:00
Markus Stange
20096eceeb Bug 1308859 - Add some instrumentation to help debugging the crash. r=gw280
MozReview-Commit-ID: Dq04qFrEdHx

--HG--
extra : rebase_source : d6b8bb8cbf3d1c4401b8306c0d63af5a0dfa6e5d
2016-10-18 13:15:28 -04:00
George Wright
0d128cb330 Bug 1307749 - Ensure that we still set filterSourceGraphicTainted and an empty filter when updating our filter in CanvasRenderingContext2D r=mstange 2016-10-12 13:06:02 -04:00
Thomas Wisniewski
50934d0360 Bug 931389 - remove CanvasRenderingContext2D.mozDash/mozDashOffset. r=gw280, r=baku
--HG--
extra : rebase_source : 2192c147822a28796e24532b0df10a38a5481a55
2016-10-04 11:53:57 -04:00
Ethan Lin
a6241ed972 Bug 1305963 - Add EnsureTarget for GetMozCurrentTransform and GetMozCurrentTransformInverse. r=nical
--HG--
extra : rebase_source : aa42275528dec8bf8ce6d954d8ba3e26217fe818
2016-10-02 23:55:00 -04:00
Markus Stange
3003c70285 Bug 1298552 - Call UpdateFilter whenever the canvas's IsWriteOnly state changes. r=jrmuizel
MozReview-Commit-ID: 2CqWhmyzUZc

--HG--
extra : rebase_source : df8b033263e16e36daca32437ac009800ca520b0
2016-08-26 20:21:34 -04:00
Nicolas Silva
56e5119c61 Bug 1301027 - Remove the matrix * point operator and replace it with TransformPoint methods. r=Bas 2016-09-08 18:26:03 +02:00
Nicolas Silva
47e7bc67f9 Bug 1298345 - Refactor CanvasRenderingContext2D's texture allocation code. r=Bas 2016-09-01 15:51:09 +02:00
Nicolas Silva
b448411938 Bug 1294351 - Move restoring the canvas clip stack to its own method and early return form EnsureTarget. r=Bas 2016-08-26 14:31:58 +02:00
Andi-Bogdan Postelnicu
b7451091eb Bug 1297054 - remove null check in CanvasRenderingContext2D::InitializeWithDrawTarget. r=jrmuizel
MozReview-Commit-ID: GA3PntlpxBU

--HG--
extra : rebase_source : ac822ae25b9d861da5a196734d09a8a507a16570
2016-08-23 11:41:21 +03:00
Nicolas Silva
0923b0fd39 Bug 1294351 - Avoid removing and re-applying the drawing states with PersistentBufferProviderBasic. r=Bas 2016-08-19 12:00:26 +02:00
Nicolas Silva
be105fa438 Bug 1292870 - Record/replay clips and transforms properly in CanvasRenderingContext2D. r=Bas 2016-08-10 14:30:51 +02:00
Ethan Lin
51818f44f0 Bug 1289975 - Reuse canvas buffer when setting the same dimension. r=nical 2016-08-02 23:00:00 +02:00
Sotaro Ikeda
2c8122c501 Bug 1250914 - Create gl texture for each video frame drawing to SkiaGL canvas r=jrmuizel 2016-07-22 18:10:13 -07:00
Chris Peterson
b175c9fdd5 Bug 1277106 - Part 2: Expand MOZ_UTF16() strings to u"" string literals. r=Waldo 2016-07-20 22:03:25 -07:00
kearwood
694ce1cf8d Bug 1284324 - Implement Canvas Layer mirrors r=bas
- When a canvas layer is set to mirror, it copies the
  texture from the canvas rather than changing the
  texture factory with Morph().
- This is useful when a canvas content will be sent to
  multiple devices simultaneously, such as a VR HMD
  and a 2d monitor mirror.
- This is used by the WebVR 1.0 API, in Bug 1250244

MozReview-Commit-ID: JfMSockO2uz

--HG--
extra : rebase_source : ba9633f7cb9a622efb8389d834b4232205c72755
2016-07-04 13:11:07 -07:00
Nicolas Silva
a1fc947ed0 Bug 1167235 - Part 5 - Unlock canvas2D resources after drawing. r=Bas 2016-07-01 10:58:20 +02:00
Nicolas Silva
6837c5c2f2 Bug 1167235 - Part 4 - Forward the shutdown notification to CanvasRenderingContext2D. r=Bas 2016-07-01 10:58:18 +02:00
Nicolas Silva
55982c743c Bug 1167235 - Part 1 - Render canvas2D into TextureClient directly. r=Bas 2016-07-01 10:58:06 +02:00
Sebastian Hengst
51e7f34222 Backed out changeset 14dfa550c783 (bug 1167235) 2016-06-28 20:28:23 +02:00
Sebastian Hengst
7f0473d085 Backed out changeset f534fcb785c9 (bug 1167235) 2016-06-28 20:28:22 +02:00
Sebastian Hengst
955599781a Backed out changeset 61465f67b591 (bug 1167235) 2016-06-28 20:28:22 +02:00
Nicolas Silva
d214a9bc30 Bug 1167235 - Part 5 - Unlock canvas2D resources after drawing. r=Bas 2016-06-28 14:07:02 +02:00
Nicolas Silva
f8343772b9 Bug 1167235 - Part 4 - Forward the shutdown notification to CanvasRenderingContext2D. r=Bas 2016-06-28 14:07:00 +02:00
Nicolas Silva
9367516d33 Bug 1167235 - Part 1 - Render canvas2D into TextureClient directly. r=Bas 2016-06-28 14:06:51 +02:00
Jonathan Watt
06b29e4abf Bug 1279628, part 2 - Switch all but one of the gfxASurface::CheckSurfaceSize calls to call Factory::CheckSurfaceSize. r=mstange 2016-06-10 13:32:01 +01:00
Phil Ringnalda
1cce1f61f8 Back out 2 changesets (bug 1279628) for reftest bustage
CLOSED TREE

Backed out changeset 07e4432bd6b3 (bug 1279628)
Backed out changeset 416fa9aeec55 (bug 1279628)
2016-06-11 00:44:51 -07:00
Jonathan Watt
8ea6b72d47 Bug 1279628, part 2 - Replace all gfxASurface::CheckSurfaceSize calls with Factory::CheckSurfaceSize and remove gfxASurface::CheckSurfaceSize. r=mstange
--HG--
extra : rebase_source : 314cf522b5760e63e176418ae170301fafa80f89
2016-06-09 15:31:24 +01:00
Tobias Schneider
2bf9b9a3e6 Bug 1174278 - Make filter tainting and canvas tainting. r=jrmuizel
--HG--
extra : rebase_source : 676ae4a6551246499d3a736ac9a35e6ac7f2c91c
2016-05-24 21:50:02 -07:00
Bob Owen
c4ec1107e4 Bug 1258609: Initialize nsICanvasRenderingContextInternal with a DrawTarget instead of a gfxASurface. r=jrmuizel
MozReview-Commit-ID: JNQ9GWvDUSq
2016-04-21 10:30:38 +01:00
David Anderson
ef94ddb6f5 Remove drawWidgetAsOnScreen. (bug 1264393, r=mattwoodrow, webidl r=khuey)
--HG--
extra : rebase_source : c885b1db5ede6caa8b1e141d6d76769bac82b16c
2016-04-13 19:24:42 -04:00