Morris Tseng
f3d4ff499f
Bug 1379920 - Introduce CanvasRenderer and its derived classes. r=nical,jrmuizel
...
This patch move common canvas interfaces out of layer. So I create a
base class CanvasRenderer which move interfaces from CanvasLayer.
CopyableCanvasRenderer from CopyableCanvasLayer, ClientCanvasRenderer
from ClientCanvasLayer and WebRenderCanvasRenderer from
WebRenderCanvasLayer. And finally, WebRenderCanvasRendererSync for the
non layers free mode and WebRenderCanvasRendererAsync for the layers
free mode.
Summary all changes in this patch.
* Move class CanvasLayer::Data to CanvasRenderer.h and rename it to
CanvasInitializeData. Because this class not only use by layer but also
* Move BasicCanvasLayer::UpdateSurface to
CopyableCanvasRenderer::ReadbackSurface.
* CanvasClient::Update now accepts ShareableCanvasRenderer as parameter.
not CanvasLayer.
use by layers-free mode. Move it out of layer's class makes more sense.
* Add InitializeCanvasRenderer in the canvas related classes to
initialize CanvasRenderer without involved layer.
* All canvas layer has function "CreateCanvasRendererInternal" that
initialize corresponding CanvasRenderer.
* Description of all CanvasRenderer classes:
** CanvasRenderer: Based classes.
** CopyableCanvasRenderer: Can readback canvas content to a
SourceSurface. Use by BasicCanvasLayer.
** ShareableCanvasRenderer: Provide IPC capabilities that allow sending
canvas content over IPC. This is pure virtual class because the IPC handling is
different in different LayerManager.
** ClientCanvasRenderer: Implement IPC handling for ClientLayerManager.
Use by ClientCanvasLayer.
** WebRenderCanvasRenderer: Implement IPC handling for
WebRenderLayerManager.
** WebRenderCanvasRendererSync: Use by WebRenderCanvasLayer.
** WebRenderCanvasRendererAsync: Use by layers-free mode in WebRender.
class diagram shows below:
+--------------+
|CanvasRenderer|
+-------+------+
^
|
+----------------------+
|CopyableCanvasRenderer|
+----------------------+
^
|
+-----------+-----------+
|ShareableCanvasRenderer|
+-----+-----------------+
^ ^
+-------------+ +-------+
| |
+--------------------+ +---------+-------------+
|ClientCanvasRenderer| |WebRenderCanvasRenderer|
+--------------------+ +--------+--+-----------+
^ ^
+-----------------------+ +----+
| |
+-------------+-------------+ +-------------+--------------+
|WebRenderCanvasRendererSync| |WebRenderCanvasRendererAsync|
+---------------------------+ +----------------------------+
MozReview-Commit-ID: 5hqQ19W169r
2017-08-03 13:55:14 +08:00
Nicolas Silva
13f0f93675
Bug 13821850 - Check the status of GLContext::MakeCurrent in CanvasRenderingContext2D. r=Bas
2017-07-24 12:24:21 +02:00
Emilio Cobos Álvarez
2b7de51623
Bug 1381844: Be more explicit about the kind of style context we handle all the time. r=bholley
...
MozReview-Commit-ID: E0mdkhU3XBz
2017-07-22 18:02:57 +02:00
Manish Goregaokar
08c6de8178
Bug 1382017 part 4 Gecko piece - Rename ServoComputedValues -> ServoComputedData; r=heycam
...
ServoComputedValues is confusing because ComputedValues is actually
ServoStyleContext on the C++ side.
MozReview-Commit-ID: IQNVdfREAMt
2017-07-20 21:44:02 -07:00
Nicholas Nethercote
6e6ae2ea9b
Bug 1382099 - Remove MOZ_WIDGET_GONK from several dom/ subdirectories. r=mccr8,jdm.
...
As well as the obvious #ifdef stuff, the patch removes
TCPSocket::SetAppIdAndBrowser(), which means
{TCPSocketParent,TCPServerSocketParent}::{GetAppId,GetInIsolatedMozBrowser}()
can also be removed.
2017-07-21 10:52:44 +10:00
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
Ryan VanderMeulen
a064d6dbfc
Merge m-c to inbound. a=merge
2017-07-18 13:00:03 -04:00
Nicolas Silva
f83cf1506c
Bug 1360415 - Enable smoothing in canvas.drawImage when down-scaling, even with imageSmoothingEnabled=false. r=bzbarsky
2017-07-18 13:13:44 +02:00
Manish Goregaokar
cdb73416fd
Bug 1367904 - Part 14: stylo: Remove FFI calls for fetching style structs from ServoComputedValues; r=bholley
...
MozReview-Commit-ID: 2HrVZl9HZu1
2017-07-17 21:01:10 -07:00
Manish Goregaokar
f33beecc59
Bug 1367904 - Part 10: stylo: Switch Gecko over to ServoStyleContext; r=bholley
...
MozReview-Commit-ID: EmopKVjEzlz
2017-07-17 21:00:46 -07:00
Josh Matthews
e0c37f0ed3
Bug 1352669 - Hook up Stylo CSS parser to Gecko error reporter. r=emilio
...
MozReview-Commit-ID: 3r5Z6KiPgRM
2017-07-10 17:52:00 -04:00
Wes Kocher
a9eb08898f
Backed out changeset f220d8060c14 (bug 1352669) for build bustage CLOSED TREE a=bustage
...
MozReview-Commit-ID: INYGT4WT1pO
2017-07-06 14:56:06 -07:00
Josh Matthews
723b20d420
Bug 1352669 - Hook up Stylo CSS parser to Gecko error reporter.
...
MozReview-Commit-ID: 3r5Z6KiPgRM
2017-07-06 13:15:08 -07:00
Kartikaya Gupta
cad9534e69
Bug 1377090 - Turn gfxMatrix into a typedef for MatrixDouble. r=jrmuizel
...
Most of this patch is updating a few places that use gfxMatrix to use
the equivalent-but-differently-named functions on MatrixDouble:
- Translate/Rotate/Scale get turned into PreTranslate/PreRotate/PreScale
- Transform(Point) gets turned into TransformPoint(Point)
- gfxMatrix::TransformBounds(gfxRect) gets turned into
gfxRect::TransformBoundsBy(gfxMatrix).
- gfxMatrix::Transform(gfxRect) gets turned into
gfxRect::TransformBy(gfxMatrix).
The last two functions are added in this patch as convenience wrappers
to gfxRect instead of Matrix.h because we don't want Matrix.h to "know"
about gfxRect (to avoid adding gecko dependencies on Moz2D). Once we
turn gfxRect into a typedef for RectDouble these will be eliminated
anyway.
MozReview-Commit-ID: BnOjHzmOSKn
--HG--
extra : rebase_source : cf1692d1f0d44a4b05d684a66678739181a426d5
2017-07-05 11:18:49 -04:00
Bill McCloskey
f115503a0b
Bug 1372405 - Provide names for all runnables in the tree (r=froydnj)
...
MozReview-Commit-ID: DKR6ROiHRS7
2017-06-26 14:19:58 -07:00
Carsten "Tomcat" Book
8a1350b5a6
Backed out changeset 4f6302a98ae4 (bug 1372405)
...
--HG--
extra : rebase_source : 41632f3158e88e692809731394a683d065a73dfb
2017-06-21 13:59:26 +02:00
Bill McCloskey
6b3e84ed5f
Bug 1372405 - Provide names for all runnables in the tree (r=froydnj)
...
MozReview-Commit-ID: DKR6ROiHRS7
2017-06-20 21:44:11 -07:00
Carsten "Tomcat" Book
ea1b86680c
Backed out changeset 9846de3bd954 (bug 1372405)
...
--HG--
extra : rebase_source : 5d4a48e8ec394c329994689d938d2a6e9b2752b0
2017-06-20 08:27:02 +02:00
Bill McCloskey
4592152411
Bug 1372405 - Provide names for all runnables in the tree (r=froydnj)
...
MozReview-Commit-ID: DKR6ROiHRS7
2017-06-19 22:25:47 -07: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
Kevin Chen
ae6d39b6e2
Bug 1361574 - Restore texture after creating the video texture; r=sotaro
...
MozReview-Commit-ID: 1XAPVwW8zv3
--HG--
extra : rebase_source : ee6358a3d7a262281bcd1e4049509c44646428a9
2017-05-25 17:42:28 +08:00
Andrew Osmond
459f477d40
Bug 1367058 - Clarify CanvasRenderingContext2D::GetImageDataArray when there is no overlapping data to read. r=mchang
2017-05-25 14:54:15 -04:00
Hiroyuki Ikezoe
5c43533704
Bug 1362914 - Drop initial values of properties other than font-size and font-family in serialization of canvas font attribute. r=manishearth
...
According to the canvas spec [1], we must drop initial values other than
font-size and font-family when we serialize canvas font attribute.
As for font-size and font-family, the default values, '10px sans-serif' [2]
are not dropped at all.
[1] https://html.spec.whatwg.org/multipage/scripting.html#dom-context-2d-font
[2] https://html.spec.whatwg.org/multipage/scripting.html#canvastextdrawingstyles
MozReview-Commit-ID: EyOxzJCQYQl
--HG--
extra : rebase_source : d358a8e97fa7849a320a3619e746a526fe2a8439
2017-05-20 07:38:26 +09:00
Nazım Can Altınova
e7316ee8fe
Bug 1364746 - stylo: Continue to propagate quirks mode information to Servo r=bholley
...
I've propagated quirks mode information on some places. But we needed to pass
quirks mode to some other FFI functions to be able to handle that information
properly.
MozReview-Commit-ID: JovQWjN3YJx
--HG--
extra : rebase_source : bd25ba4276ae21ff4feb80e56b311202019268a0
2017-05-14 18:11:18 +03:00
Emilio Cobos Álvarez
8b2a66ab16
Bug 1364412: Convert pseudo-elements to an enum. r=hiro,xidorn
...
This allows us to access metadata using `match` instead of comparison with
atoms, which makes it doable to get the pseudo-element flags in the future.
Signed-off-by: Emilio Cobos Álvarez <emilio@crisal.io>
MozReview-Commit-ID: KgGjFePmhyS
Signed-off-by: Emilio Cobos Álvarez <emilio@crisal.io>
--HG--
extra : rebase_source : 57614aed13d2c088fe129ecf3fabf9869d5a6d50
2017-05-14 18:39:22 +02:00
Hiroyuki Ikezoe
7cd8cdf2bb
Bug 1357295 - Rename LengthParsingMode to ParsingMode and LengthParsingMode::SVG to PasingMode::AllowUnitlessLength. r=emilio
...
We need another flag that represents allow-negative-number for SMIL, so
this enum will also comprise the another parsing mode that allows negative number.
MozReview-Commit-ID: IDFNppjGeB
--HG--
extra : rebase_source : 456f661b33346ff4a756a66c6accf4ab1a5f2f80
2017-05-13 19:47:38 +09:00
Hiroyuki Ikezoe
9219415cbf
Bug 1363574 - Allow unitless length for SMIL values. r=birtles
...
MozReview-Commit-ID: BkGCHgQVzHD
--HG--
extra : rebase_source : c0b0601fba6cfba04217dd6da7e942c167858496
2017-05-11 08:29:36 +09:00
Jonathan Kew
4b5525bbf7
Bug 1362167 - Use strongly-typed enum classes instead of generic uint16_t fields for the gfxShapedText and gfxTextRun flags. r=jrmuizel
2017-05-04 22:27:05 +01:00
Jonathan Kew
6fc5313103
Bug 1362167 - Split gfxShapedText.mFlags into two 16-bit flags fields, and arrange storage more compactly to reduce size of gfxShapedWord and gfxTextRun objects. r=jrmuizel
2017-05-04 22:25:16 +01: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
Bill McCloskey
34a4f034bb
Bug 1359245 - Remove references to context from the cycle collector (r=mccr8)
...
MozReview-Commit-ID: 1QoNEiZMvBf
2017-04-27 15:34:46 -07:00
Kevin Chen
f39f1b36ee
Bug 1355168 - Ensure mTarget in CanvasRendering2D::DrawWindow; r=mats
...
MozReview-Commit-ID: 3xmzJc5Mq7J
--HG--
extra : rebase_source : ed9cd8ae21e639629a0c47c83443505aa96224e8
2017-04-17 10:40:53 +08:00
Mats Palmgren
b73a39811b
Bug 1357092 - Make EnsureWritablePath() always try to create a mPathBuilder, also when we don't have a valid target (i.e. for sErrorTarget). r=mstange
...
MozReview-Commit-ID: AzyZOpsIdwA
2017-04-18 00:56:34 +02:00
cku
258222aaaf
Bug 1346618 - Part 1. Remove SVGImageContext::mGlobalOpacity. r=mstange
...
MozReview-Commit-ID: ByiPa4sreEh
--HG--
extra : rebase_source : eda6104c00cbc7ebe7b9a5ddc9e2abc73fbc37df
extra : source : df69799726bdccc5a25d6190c0fe22645e264ab7
2017-04-15 02:01:22 +08:00
Hiroyuki Ikezoe
df137b26a6
Bug 1324700 - Drop warnings for stylo. r=heycam
...
The code path no longer happens on stylo.
MozReview-Commit-ID: LdQFPNd5YnX
--HG--
extra : rebase_source : 1213f7e944858ddac8061534823f20177c4f63a6
2017-04-15 07:37:35 +09:00
Hiroyuki Ikezoe
a52cf990ce
Bug 1324700 - Resolve filter property for servo. r=heycam
...
MozReview-Commit-ID: 6IHs682rZfH
--HG--
extra : rebase_source : 6688d70a0c92e27f15e97f0d55062fc74f08339e
2017-04-15 07:37:35 +09:00
Hiroyuki Ikezoe
3f46fb9acf
Bug 1324700 - Add a function which is equivalent to ResolveStyleForFilter for servo. r=heycam
...
Also ResolveStyleForFilter is renamed to ResolveFilterStyle for consistency.
MozReview-Commit-ID: IEOxNexpnl5
--HG--
extra : rebase_source : bd806654b3e5462b3abb4fc226b3824bc0acb71f
2017-04-15 07:37:35 +09:00
Hiroyuki Ikezoe
1e6deac4e2
Bug 1324700 - Resolve font property for servo. r=heycam
...
MozReview-Commit-ID: BvQXFMP0Zr9
--HG--
extra : rebase_source : 9211fa78dd3bf19afe0564e8328d95df2aa8068a
2017-04-15 07:37:35 +09:00
Hiroyuki Ikezoe
b4e5e8f728
Bug 1324700 - Add a function which is equivalent to GetFontStyleContext() for servo. r=heycam
...
MozReview-Commit-ID: K4KvPk4fJTb
--HG--
extra : rebase_source : 53d8f91652d803b953a86eb03817d40d89e27069
2017-04-15 07:37:35 +09:00
Hiroyuki Ikezoe
a469fe8fd0
Bug 1324700 - Add a function which is equivalent to CreateDeclaration() for servo. r=heycam
...
MozReview-Commit-ID: 8zgpqLzftbV
--HG--
extra : rebase_source : 6940af726bba96295a7402b4791f170a606fc0f4
2017-04-15 07:37:34 +09:00
Timothy Nikkel
f2110e92fe
Bug 1355898. Rename flag SFE_WANT_FIRST_FRAME to SFE_WANT_FIRST_FRAME_IF_IMAGE to represent what it does better. r=jgilbert
...
We only pay attention to the flag for images.
2017-04-13 03:40:45 -05:00
Mats Palmgren
d4925f9157
Bug 1355873 - Add more consistent error handling and some code cleanup. r=mstange
...
--HG--
extra : amend_source : 28084308702094199fb667e004219bad4f125d6c
2017-04-12 08:41:00 -04:00
Tomislav Jovanovic
25ed6f5d60
Bug 1318565 - Allow extensions with permission to read from tainted Canvas r=bz
...
MozReview-Commit-ID: 1tMHynv9FBO
--HG--
extra : rebase_source : 4296af4ae94eaf618d7d33741b2a04a7e0dfd4a0
2017-04-07 21:32:18 +02:00
Brian Birtles
33041d1214
Bug 1315874 - Drop 'ForElement' from GetStyleContextForElementXXX methods; r=heycam
...
In the next patch we want to add a method called
GetUnanimatedStyleContextForElementNoFlush but that's much too long. Instead it
seems better to just drop 'ForElement' from all these methods since it should be
fairly obvious we are getting the style context for an element given that the
first argument is an element.
MozReview-Commit-ID: JQKaEuCKV2F
--HG--
extra : rebase_source : 3ba51f3b00d1ec7bc91102629d9c0abb88992fef
2017-04-05 14:39:23 +09:00
Jonathan Watt
94608339b3
Bug 1058040, part 12 - Make SVGImageContext's ctor's aViewportSize parameter optional. r=dholbert
2017-01-30 13:25:00 +00: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
George Wright
c881027454
Bug 1335145 - Only limit accelerated canvases for mobile r=milan
2017-02-21 13:42:32 -05:00
Lee Salzman
f1af01ebd4
Bug 738343 - part 4 - Use Moz2d swizzles in Canvas2D. r=jrmuizel
2017-02-12 09:27:39 -05:00
Milan Sreckovic
5b06720ff3
Bug 1329796 - Don't cache the mTarget too soon. r=mstange
2017-02-07 20:35:21 -05:00
Ryan VanderMeulen
e7c14086ff
Backed out changeset b346ea98c29a (bug 1329796) for reftest failures.
2017-02-06 20:31:22 -05:00
Milan Sreckovic
c7daab6df3
Bug 1329796 - Don't cache the mTarget too soon. r=mstange
2017-02-06 19:32:50 -05:00
Carsten "Tomcat" Book
5131dfea4e
Merge mozilla-central to mozilla-inbound
2017-02-02 14:28:07 +01:00
Carsten "Tomcat" Book
72823b1e95
merge mozilla-inbound to mozilla-central a=merge
2017-02-02 14:25:20 +01:00
Olli Pettay
96d3270619
Bug 1110928, ensure zone GC collects the zone from which canvas context is originated, r=mccr8
...
--HG--
extra : rebase_source : d9e4b2cb9ff5e683efc1ce25aec3ab5cead22481
2017-01-23 19:26:37 +02:00
Wes Kocher
f5eab47fb9
Merge m-c to autoland, a=merge
...
MozReview-Commit-ID: HVH8TbXbw7N
2017-02-01 16:30:50 -08:00
Jeff Muizelaar
5e016321e6
Bug 1335149. Remove unnecessary flush() calls from canvas implementation.
...
Flushing should usually be done by the moz2d backend unless we're accessing
the data through other mechanisms.
2017-02-01 15:09:38 -05:00
Tomislav Jovanovic
460e6f68ee
Bug 1310318 - Part 1: Allow access to canvas drawWindow() with web extensions permission r=bz
...
MozReview-Commit-ID: 4ee3pRfduIj
--HG--
extra : rebase_source : 428cf25f732c27ffd34e1a47105a96919c3cb36e
extra : source : 1063bdd7940796e9c4e8634b82d55f417e289e28
2017-02-01 21:47:59 +01:00
Andrew Osmond
42a6948d63
Bug 1331938 - Part 2c. Fix rooting hazard in CanvasRenderingContext2D::GetImageDataArray. r=nical
...
--HG--
extra : amend_source : 4aaf395e3206a3953895a64e717ac73835bb4407
2017-01-31 09:23:25 -05:00
Boris Zbarsky
11b7c7920e
Bug 1334749. Avoid creating a temporary cairo surface, just to copy its data to a skia surface, in putImageData. r=lsalzman
2017-01-30 15:45:23 -05:00
Lee Salzman
76fbeec1b5
Bug 1334647 - make canvas.drawImage trigger a JS error rather than a critical error on an invalid target. r=rhunt
...
MozReview-Commit-ID: 3TxJM0tjhVC
2017-01-27 16:35:10 -05: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
Boris Zbarsky
cce1668e68
Bug 1332322 part 2. Rename nsWrapperCache::IsBlack to nsWrapperCache::HasKnownLiveWrapper. r=mccr8
2017-01-24 20:38:58 -05:00
Wes Kocher
ae32e28e86
Backed out 6 changesets (bug 1110928) for valgrind failures a=backout
...
Backed out changeset 97a60b61a65a (bug 1110928)
Backed out changeset 5b62dda2ebd0 (bug 1110928)
Backed out changeset b587547a6df1 (bug 1110928)
Backed out changeset fb7cb3957c0d (bug 1110928)
Backed out changeset 41d7f44db1ee (bug 1110928)
Backed out changeset e809ddd9c7db (bug 1110928)
MozReview-Commit-ID: L0DCJ0HD1sG
2017-01-23 17:34:23 -08:00
Olli Pettay
2f71a0e8da
Bug 1110928, ensure zone GC collects the zone from which canvas context is originated, r=mccr8
...
--HG--
extra : rebase_source : 9649b3b2e67ecea1c8070ea105e145cd5214c4d6
2017-01-23 19:26:37 +02: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
George Wright
738fcd7d41
Bug 1329777 - Don't bail early from SwitchRenderingMode unless there's also no buffer provider r=Bas
2017-01-10 21:12:40 -05:00
Cameron McCormack
babad063ff
Bug 1328832 - Part 2: Rename mozFlushType to mozilla::FlushType and make it an enum class. r=bzbarsky
...
MozReview-Commit-ID: D3fIngSHSsl
2017-01-05 15:31:56 +08:00
cku
09c56e6da6
Bug 1323912 - Part 2. Pass opacity down to imgIContainer::Draw. r=mstange
...
Each concrete class of imgIContainer is able to handle opacity already. All we
need to do is pass opacity value to them.
MozReview-Commit-ID: EMkLnG3YXA1
--HG--
extra : rebase_source : b0a0aad1fec0c2765e96d23ed9b627345c793795
2017-01-03 13:53:22 +08:00
Iris Hsiao
c8e876e89c
Backed out changeset c868ab532766 (bug 1323912)
2017-01-04 21:47:12 -05:00
cku
adab9bea9f
Bug 1323912 - Part 2. Pass opacity down to imgIContainer::Draw. r=mstange
...
Each concrete class of imgIContainer is able to handle opacity already. All we
need to do is pass opacity value to them.
MozReview-Commit-ID: EMkLnG3YXA1
--HG--
extra : rebase_source : 080a843b34cc1ca27831310d474243b4066f59f2
2017-01-03 13:53:22 +08:00
Phil Ringnalda
c4d1ea9a14
Merge m-c to m-i
...
MozReview-Commit-ID: JYNBUrs2zC5
2017-01-03 18:46:43 -08:00
Olli Pettay
0364dbc792
Bug 1326507, remove NS_IMPL_CYCLE_COLLECTION_TRAVERSE_SCRIPT_OBJECTS, r=mccr8
...
--HG--
extra : rebase_source : 3ae1207308de120b7299b13ecaa95dd1612b3459
2017-01-03 21:47:55 +02: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
Milan Sreckovic
bb8db3d5ff
Bug 1318283: Temporarily disable an optimization from bug 1289975 and do not keep the buffer when SetDimension is called with the same value. r=mstange
...
MozReview-Commit-ID: BRYxmuEz7fk
--HG--
extra : rebase_source : 352a9055c3a5fc9ca97f0ab103fb276634def291
2016-12-15 16:33:36 -05:00
Jonathan Kew
4ab3ae7306
Bug 1319668 - Check for null context before trying to draw canvas text. r=mats
2016-12-03 14:49:46 +00:00
Edwin Flores
3af4985263
Bug 1318283 - Debug patch - r=milan
2016-11-28 19:32:49 +00:00
Ethan Lin
fa1ec91634
Bug 1319362 - Use area but not just dimension to check SkiaGL minimum size. r=lsalzman
2016-11-22 19:52:00 +01:00
Nicolas Silva
36605f9e7b
Bug 1300121 - Make PersistentBufferProviderShared::BorrowDrawTarget more robust agaist bad edge cases and if all fails, fallback to the basic provider. r=Bas
2016-10-11 13:23:11 +02: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
7bf73e0916
Bug 1313884: Part 2. Additional nullptr test and nightly/aurora crash if bad things happen. r=gw280
2016-11-15 12:56:16 -05:00
Phil Ringnalda
be66b650bb
Backed out changeset bb4879b87c17 (bug 1313884) because bad things happen @mozilla::dom::CanvasRenderingContext2D::DrawImage all the time
...
CLOSED TREE
2016-11-10 23:28:02 -08:00
Milan Sreckovic
09875b84c7
Bug 1313884 - Part 2: Additional nullptr test and nightly/aurora crash if bad things happen. r=gw280
...
--HG--
extra : rebase_source : 14ff98dde9eeccb1bbdeb0ccb9b6dcba75d5ebf2
2016-11-10 10:26:00 -05:00
Phil Ringnalda
c9fdc270b6
Merge m-c to autoland
...
--HG--
rename : dom/media/webaudio/compiledtest/TestAudioEventTimeline.cpp => dom/media/webaudio/gtest/TestAudioEventTimeline.cpp
2016-11-03 20:02:24 -07: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
Ryan Hunt
e79eae17bc
Bug 1313884 - Check if mTarget is null in CanvasRenderingContext2D::DrawImage
...
--HG--
extra : rebase_source : 0eb7b22cd829dc5f4ad6eaaa44a0009529010e47
2016-11-01 13:56:55 -05:00
Xidorn Quan
5e29805363
Bug 1294299 part 8 - Refactor interface provided by css::Declaration. r=heycam
...
The main targets of this refactor are:
1. Move most of the logic of distinguishing properties and custom
properties from nsDOMCSSDeclaration into css::Declaration, which
gives ServoDeclarationBlock more flexibility to implement.
2. Rename those methods of css::Declaration to provide a clear interface
which makes sense for implementing in ServoDeclarationBlock, and also
avoid method overload, which can impede the forward macro, on them.
MozReview-Commit-ID: 2cCqF855TVK
--HG--
extra : source : 3837e1e558caac4f2901e838371e97c17821530e
2016-11-03 14:41:02 +11: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
Phil Ringnalda
7fd865b93f
Merge autoland to m-c, a=merge
...
MozReview-Commit-ID: 3nuTAHtJkkD
2016-10-19 18:25:54 -07:00
Markus Stange
0853911668
Bug 1307740 - Properly handle filter input tainting with CSS filters and multiple filters. r=jwatt
...
MozReview-Commit-ID: HwOJ8SFhkUq
--HG--
extra : rebase_source : d3c4e8568513a0bf08d308f9f88232b19442ebd2
2016-10-19 11:32:02 -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
Carsten "Tomcat" Book
7c8e81673d
merge mozilla-inbound to mozilla-central a=merge
2016-10-06 11:59:54 +02: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
Milan Sreckovic
cc08d3d97e
Bug 1294812: Clean up SkiaGL canvas logic, making sure we only take it for OpenGL layers. Rename a function for clarity. r=BenWa,dvander
...
MozReview-Commit-ID: OTUXNNYdnJ
--HG--
extra : rebase_source : 4531fc96899f1a2f6524289d5db1054345e0e5f4
2016-09-30 13:54:22 -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
Tooru Fujisawa
13783142a7
Bug 1289050 - Part 5.1: Use ASCII variants of JS_ReportWarning in dom/canvas. r=jwalden,jgilbert
2016-09-30 12:34:45 +09:00
Ethan Lin
9a6b820bb2
Bug 1304539 - Use AdjustedDrawTarget to draw text. r=mstange
...
--HG--
extra : source : f205f28cbcf3723aee0e302ea2ce7b71a00f4210
2016-09-23 18:37:00 +02:00
Wes Kocher
4894f8488a
Backed out 2 changesets (bug 1304539) for Windows unaccelerated reftest failures a=backout
...
Backed out changeset fbfe71842bb7 (bug 1304539)
Backed out changeset f205f28cbcf3 (bug 1304539)
2016-09-29 11:55:08 -07:00
Ethan Lin
5ec5294315
Bug 1304539 - Use AdjustedDrawTarget to draw text. r=mstange
2016-09-23 18:37:00 +02:00
Carsten "Tomcat" Book
762cd18602
Merge mozilla-central to autoland
2016-09-28 16:52:13 +02:00
Lee Salzman
632d270fe0
Bug 1305312 - write putImageData pixels as opaque for opaque canvas. r=jrmuizel
...
MozReview-Commit-ID: 5mVzeNwY28u
2016-09-27 17:31:13 -04:00
James Cheng
48efb9caad
Bug 1300654 Part1-Remove MOZ_EME from code base. r=cpearce,smaug
...
MozReview-Commit-ID: JboGO0w4tcE
--HG--
extra : rebase_source : abfe53f30081f74fc39c900cab48d08c7574bfec
2016-09-08 18:06:20 +08:00
Jonathan Kew
cbbe3d0e74
Bug 1304353 - part 1 - Set up the DrawOptions appropriately when painting canvas text for FILL, not only for STROKE. r=bas
2016-09-23 13:38:06 +01: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
Sebastian Hengst
548f7778a1
Backed out changeset e0d755ab4cbd (bug 1302380) for timeouts reftest with e10s invariable-declaration-XX.html on Linux 32 bit. r=backout
2016-09-16 18:55:44 +02:00
Ethan Lin
20b88c7843
Bug 1301551 - Remove unnecessary debug lines. r=nical
2016-09-16 10:33:26 +02:00
Nicolas Silva
f4d4ceeeed
Bug 1302380 - Report canvas memory usage through the buffer provider. r=gw280
2016-09-16 10:13:19 +02:00
Ethan Lin
bb3e5efbec
Bug 1301551 - Don't do anti-alias if 'imageSmoothingEnabled' is false. r=bas
2016-09-09 03:04:00 -04:00
Milan Sreckovic
e13a243ec1
Bug 1299164: Part 2. Use BufferSizeFromDimensions method, as well as some of the others that check for valid size. r=bas
2016-09-15 10:36:21 -04:00
kaku@mozilla.com
9a1c3746b2
Bug 1299718 part 3 - call MarkAsContentSource() at where using video element as a source; r=gerald,kamidphish,mtseng
...
MozReview-Commit-ID: Kg6UpcsCi0P
2016-09-14 15:50:29 +10:00
George Wright
3480df735c
Bug 1241865 - Disable canvas-2d-pixels memory reporter as it currently reports inaccurate values. r=nical
2016-09-13 23:03:09 -04:00
Nicolas Silva
918fc7f847
Bug 1298373 - Clear the transform when resetting the canvas target state. r=Bas
2016-09-12 16:47:13 +02: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
ebb3c8a52f
Bug 1298345 - Dead code warning fix. r=njn
2016-09-06 13:19:11 +02:00
Lee Salzman
0716a90344
Bug 1299485 - fix USE_SKIA_GPU ifdefs. r=mchang
2016-09-01 21:10:39 -04:00
Nicolas Silva
47e7bc67f9
Bug 1298345 - Refactor CanvasRenderingContext2D's texture allocation code. r=Bas
2016-09-01 15:51:09 +02:00
Ethan Lin
3ead7f93ab
Bug 1299062 - Check if drawtarget valid. r=nical
2016-08-31 22:43:47 -04:00
Milan Sreckovic
ff3ca93c38
Bug 1287316 - Release assert or deal with empty arrays. r=mstange
...
--HG--
extra : rebase_source : 07b022071bf63b213f78d361d18464cbcbf6b562
2016-08-30 18:38:30 -04: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
Ryan VanderMeulen
2b4ac234e9
Merge m-c to inbound. a=merge
2016-08-25 08:27:17 -04:00
Ryan VanderMeulen
520acfd195
Merge inbound to m-c. a=merge
2016-08-25 08:10:52 -04: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
Nicholas Nethercote
c2306345d5
Bug 1297658 - Avoid unnecessary checking in memory reporters. r=erahm.
...
This patch removes checking of all the callback calls in memory reporter
CollectReport() functions, because it's not useful.
The patch also does some associated clean-up.
- Replaces some uses of nsIMemoryReporterCallback with the preferred
nsIHandleReportCallback typedef.
- Replaces aCallback/aCb/aClosure with aHandleRepor/aData for CollectReports()
parameter names, for consistency.
- Adds MOZ_MUST_USE/[must_use] in a few places in nsIMemoryReporter.idl.
- Uses the MOZ_COLLECT_REPORT macro in all suitable places.
Overall the patch reduces code size by ~300 lines and reduces the size of
libxul by about 37 KiB on my Linux64 builds.
--HG--
extra : rebase_source : e94323614bd10463a0c5134a7276238a7ca1cf23
2016-08-24 15:23:45 +10:00
Milan Sreckovic
ee08a6629f
Bug 1297181: More information when accelerated canvas creation fails. r=mchang
...
MozReview-Commit-ID: AjhVkngSkHK
--HG--
extra : rebase_source : 728495351c705adee280c59042c5196cdc2bb2e4
2016-08-22 17:47:54 -04:00
Ryan VanderMeulen
69113163cf
Merge m-c to inbound. a=merge
2016-08-24 09:09:05 -04:00
Kan-Ru Chen
b6d880aca1
Bug 1297276 - Rename mfbt/unused.h to mfbt/Unused.h for consistency. r=froydnj
...
The patch is generated from following command:
rgrep -l unused.h|xargs sed -i -e s,mozilla/unused.h,mozilla/Unused.h,
MozReview-Commit-ID: AtLcWApZfES
--HG--
rename : mfbt/unused.h => mfbt/Unused.h
2016-08-24 14:47:04 +08:00
Ethan Lin
06cc318190
Bug 1296166 - Avoid calling EnsureTarget in CanvasRenderingContext2D::GetImageData. r=nical
2016-08-22 18:58:00 -04:00
Ethan Lin
5a7af1a426
Bug 1293970 - Avoid copy in CanvasRenderingContext2D::PutImageData and DrawWindow. r=nical
2016-08-16 20:18:00 -04:00
Jonathan Kew
95a82f84cc
Bug 1280887 - patch 2 - Make gfxTextRun refcounted, replace usage of UniquePtr<> with RefPtr<> for textruns, and make nsTextFrame hold a strong reference to its run(s). r=mats
2016-08-19 13:14:22 +01: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
Sebastian Hengst
7ab46a480a
Backed out changeset 775fa3ede160 (bug 1294351) for failing in crashtest 647480.html. r=backout
2016-08-18 12:50:56 +02:00
Nicolas Silva
8173818111
Bug 1294351 - Avoid removing and re-applying the drawing states with PersistentBufferProviderBasic. r=Bas
2016-08-17 14:39:03 +02:00
Edwin Flores
29a30711a0
Bug 1272123 - Limit the size of CanvasRenderingContext2D::mStyleStack - r=mstange
2016-08-17 09:26:11 +01:00
Ethan Lin
18475abfbc
Bug 1294607 - Remove unnecessary EnsureTarget in CanvasRenderingContext2D. r=nical
2016-08-15 23:54:00 -04:00
Phil Ringnalda
54ad5f454e
Back out 6493296521fb (bug 1294607) for crashtest crashes in 1246775-1.html
2016-08-15 20:54:50 -07:00
Ethan Lin
93ca898ab6
Bug 1294607 - Remove unnecessary EnsureTarget in CanvasRenderingContext2D. r=nical
2016-08-11 20:26:00 -04:00
Jonathan Chan
9c62a2c11c
Bug 1293739 - Part 1: Rename nsCSSProperty to nsCSSPropertyID. r=dholbert
...
This patch is generated by the following commands (note: if you're running
using OS X's sed, which accepts slightly different flags, you'll have to
specify an actual backup suffix in -i, or use gsed from Homebrew):
hg stat -c \
| cut -c 3- \
| tr '\n' '\0' \
| xargs -0 -P 8 gsed --follow-symlinks 's/\bnsCSSProperty\b/nsCSSPropertyID/g' -i''
Then:
hg mv layout/style/nsCSSProperty.h layout/style/nsCSSPropertyID.h
... and finally, manually renaming nsCSSProperty in the include guard in
nsCSSProperty.h.
MozReview-Commit-ID: ZV6jyvmLfA
--HG--
rename : layout/style/nsCSSProperty.h => layout/style/nsCSSPropertyID.h
2016-08-09 16:28:19 -07:00
Ethan Lin
b29de863bc
Bug 1293968 - Avoid calling EnsureTarget in CanvasRenderingContext2D::GetImageBuffer. r=nical
...
--HG--
extra : rebase_source : de0f1bb16639d0bc358b373636404d66a4eb7d1a
2016-08-11 23:46:00 -04:00
Jan de Mooij
c33bac8363
Bug 1292892 part 5 - Replace most nsContentUtils::RootingCx calls with dom::RootingCx. r=bz,terrence
2016-08-11 14:39:23 +02:00
Nicolas Silva
ed272011eb
Bug 1292545 - Don't skip clearing the canvas because of W(1) failures on Mac.
2016-08-10 17:00:25 +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
Nicolas Silva
70353ca51d
Bug 1292545 - Don't optimize away the canvas copy if clips are applied. r=ethlin
2016-08-10 14:30:48 +02:00
Nicolas Silva
bb3580a385
Bug 1293693 - FillRect covering the entire canvas can skip copying the previous frame if the composite op is SOURCE, but not DEST_OUT. r=ethlin
2016-08-10 14:30:45 +02:00
Nicolas Silva
2f14332a8d
Bug 1292192 - Simplify CanvasRenderingContext2D::SwitchRenderingMode. r=gw280
2016-08-09 18:18:58 +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
Nicolas Silva
1fdb65d654
Bug 1289816 - Simplify CopyableCanvasLayer::UpdateTarget and remove unnecessary copies. r=jnicol
2016-07-29 20:19:28 +02:00
Nicolas Silva
a4ee782267
Bug 1289380 - Simplify PersistentBufferProviderShared. r=edwin
2016-07-27 16:50:20 +02:00
Nicolas Silva
48805c9b3e
Bug 1284837 - Disallow implicit conversions from float to integer when creating IntPoint and IntSize objects. r=botond
2016-07-26 16:48:30 +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
Nicolas Silva
e4a4580aeb
Bug 1285263 - Restore clips with the proper transform when in CanvasRenderingContext2D::EnsureTarget. r=bas
2016-07-21 11:02:12 +02:00
vincentliu
acbc420513
Bug 1281800 - The API should return an empty array if maxWidth was provided but is less than or equal to zero or equal to NaN. r=jrmuizel
...
---
dom/canvas/CanvasRenderingContext2D.cpp | 13 ++++++-------
1 file changed, 6 insertions(+), 7 deletions(-)
2016-07-19 10:52:50 +08:00
Kevin Chen
cac9daeb79
Bug 1275693 - Refactor <canvas> strokeText drawing to re-use gfxTextRun::Draw. r=jfkthame
2016-07-14 02:00:00 +02:00
Kevin Chen
9873933cfb
Bug 1275693 - Refactor <canvas> fillText drawing to re-use gfxTextRun::Draw. r=jfkthame
2016-07-13 19:07:00 +02:00
Nicolas Silva
144561ee0b
Bug 1284721 - Flush CanvasRenderingContext2D's DrawTarget when returning it to the BufferProvider. r=lsalzman
2016-07-11 17:44:27 +02:00
Nicolas Silva
37464db2f3
Bug 1285207 - Don't let canvas have a DrawTarget without a BufferProvider and keep them in sync. r=lsalzman
2016-07-11 17:44:25 +02:00
Wes Kocher
743746da45
Backed out changeset b966ababca8d (bug 1284721) for bustage CLOSED TREE
...
***
Backed out 3 changesets (bug 1284721, bug 1285207) for bustage CLOSED TREE
Backed out changeset 75f6c7e15d76 (bug 1284721)
Backed out changeset b7f2d54f3904 (bug 1285207)
Backed out changeset fceb3f145f91 (bug 1284721)
--HG--
extra : amend_source : b849891c44fd8704c0f601cf58ebeac13c88e2e6
extra : histedit_source : 54c8ef4b974c761a774260ec11e28d29013e0378%2C4d2cb79fbedcdabb4ea4fc52dcd26618bef2225e
2016-07-08 12:17:06 -07:00
Nicolas Silva
b51ed22a3f
Bug 1284721 - Flush CanvasRenderingContext2D's DrawTarget before handing it off to the BufferProvider. r=lsalzman
2016-07-08 19:26:48 +02:00
Nicolas Silva
ff42b1930a
Bug 1285207 - Don't let canvas have a DrawTarget without a BufferProvider and keep them in sync. r=lsalzman
2016-07-08 19:26:44 +02:00
Carsten "Tomcat" Book
838f21f656
merge mozilla-inbound to mozilla-central a=merge
2016-07-08 11:58:46 +02: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
Boris Zbarsky
97b0a16147
Bug 1282150 part 4. Have just one way of getting the rooting JSContext, and call it nsContentUtils::RootingCx(). r=bholley
2016-07-07 20:08:26 -04:00
Nicolas Silva
3e441f64b1
Bug 1167235 - Part 7 - Don't paint directly into a canvas with DrawWindow when using a shared PersistentBufferProvider. r=lsalzman
2016-07-01 10:58:26 +02: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
483ce4fb50
Bug 1279628, part 3 - Replace the last gfxASurface::CheckSurfaceSize call, and remove gfxASurface::CheckSurfaceSize. r=mstange
2016-06-10 13:32:01 +01: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
eyim
b0ca07b635
Bug 1277027 - fix MOZ_CRASH to have GFX prefix in webGL code r=BenWa,milan
...
MozReview-Commit-ID: FjLA9xNH3zD
--HG--
extra : rebase_source : 5809a1f8126360b3fa8ee069b3a463747cb31e6f
2016-06-06 11:17:23 -04:00
Jonathan Watt
b15368cfcb
Bug 1279451 - Remove a lot of unnecessary includes of nsAutoPtr.h. rs=sparky
2016-06-07 21:10:18 +01:00
Nicholas Nethercote
4e8f3b6d6e
Bug 1276824 (part 2) - Fix up checks for calls to gfxContext::Create{,PreservingTransform}OrNull(). r=milan.
...
--HG--
extra : rebase_source : 80644c1a6658da553c13ae1ab3b8d03e916ee6e7
2016-06-07 11:17:48 +10:00
Nicholas Nethercote
a02611e830
Bug 1276824 (part 1) - Rename gfxContext::ForDrawTarget{,WithTransform}(). r=milan.
...
The new names Create{,PreservingTransform}OrNull() better communicate that
these functions (a) do object creation, and (b) are fallible.
--HG--
extra : rebase_source : a36bd9a2bcdfae281868959403f811f2bc690ad4
2016-06-07 09:39:56 +10:00
Jonathan Watt
2eb705bb3f
Bug 1277862, part 3 - Rename Moz2D's Filter to SamplingFilter in the rest of the tree. r=Bas
2016-05-25 17:01:18 +01:00
Chris Peterson
11ef78ae89
Bug 1275016 - Rename Endian.h to EndianUtils.h to avoid #include confusion with Android's endian.h stdlib header. r=froydnj
...
--HG--
rename : mfbt/Endian.h => mfbt/EndianUtils.h
2016-05-22 13:31:11 -07: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
Jonathan Kew
ec45c18193
Bug 1274936 - When <canvas> fillText is using a simple color, draw via the gfxTextRun::Draw code path to get support for COLR and SVG-in-OT fonts. r=bas
2016-05-25 09:21:10 +01:00
Mason Chang
376575c614
Bug 1267260 - Change CanvasImageCache to lookup cache images based on imgIContainer instead of imgIRequest. r=seth
...
--HG--
extra : rebase_source : 872ee783a05d0319ed69ce3c494dbf2a3206e26d
2016-05-10 08:00:06 -07:00
Michael Kohler
0793a8cbff
Bug 1217031 - createPattern should not throw NS_ERROR_NOT_AVAILABLE if image usability check returns bad r=bz
...
MozReview-Commit-ID: 101uAYhcx3u
--HG--
extra : rebase_source : 1975f947176b61bb232348458ef7a0f485a0f479
2016-05-03 17:41:02 -07:00
Carsten "Tomcat" Book
dabe843f8b
Backed out changeset d6cca05b4e9f (bug 1217031) for issues in 2d.pattern.image.incomplete.immediate.html
2016-05-03 12:20:24 +02:00
Michael Kohler
b68d05d398
Bug 1217031 - createPattern should not throw NS_ERROR_NOT_AVAILABLE if image usability check returns bad. r=bz
...
--HG--
extra : amend_source : e241dccd5b12b44cbc99467fa9a8d73ecfe5c584
2016-04-24 12:20:00 +02: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
Jonathan Watt
6a7fdf9b55
No Bug - Remove some unnecessary SVGImageContext.h includes and add comments. r=sparky
2016-04-22 15:07:31 +01:00
Jonathan Kew
cb1c20b3c3
Bug 1265459 - Replace uses of nsAutoPtr<gfxTextRun> with UniquePtr, and let MakeTextRun and similar methods return a UniquePtr. r=jrmuizel
2016-04-19 17:13:28 +01:00
Lee Salzman
4bda990954
Bug 1257717 - throw InvalidStateError when CreatePattern fails to snapshot source. r=jrmuizel
2016-04-14 16:20:12 -04: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
Milan Sreckovic
e0b2b9e425
Bug 1259513: Make gfxContext constructor private, use a utility function that can return nullptr. r=bas,lsalzman
...
MozReview-Commit-ID: rHhLEDZEQt
--HG--
extra : rebase_source : 4988f3f488c19dd35a9979e96f78a5511ee8f3d2
2016-04-12 15:18:11 -04:00
Jonathan Watt
fb7bb15e68
Bug 1263782 - Kill off the deprecated nsINode::IsInDoc(). r=baku
2016-03-31 11:58:25 +01:00
Cameron McCormack
6b84ca3abb
Bug 1261754 - Part 12: Move filter from nsStyleSVGReset to nsStyleEffects. r=dholbert
2016-04-12 15:52:43 +10:00
Tobias Schneider
9de749f7f5
Bug 1195968 - Check how CanvasFilterChainObserver accesses the CanvasRenderingContext2D. r=mstange
2016-04-09 15:43:14 -04:00
Andreas Pehrson
c742b9dadf
Bug 1208371 - Change HTMLMediaElement video sinks to check principal for video only tracks. r=mt
...
MozReview-Commit-ID: KGbyJDgpBOn
--HG--
extra : rebase_source : 526556a2174417ec68cb0a84acb1f3fe704ebaf0
2016-01-26 15:36:52 +08:00
Peter Chang
2977cda175
Bug 1260960 - Check skiaGL is enabled before calling skiaGLTex(), r=snorp
...
MozReview-Commit-ID: 8xaDtiPX563
--HG--
extra : rebase_source : 5edbfef2a39f8e5e61f346d4bf7e17699b71a458
2016-03-31 12:48:02 +08:00