Edwin Flores
4650e9bcec
Bug 1292402 - Zero uninitialised padding in FilterNodeSoftware.cpp - r=mstange
2016-08-17 09:26:11 +01:00
Chris Peterson
4e032df4b1
Bug 1295083 - Replace PR_snprintf and s[n]printf calls with SprintfLiteral in gfx/. r=Bas
2016-08-16 15:41:12 -07:00
Wes Kocher
c84ec3b3f3
Merge m-c to inbound, a=merge
2016-08-16 22:06:58 -07:00
Wes Kocher
48b8d407c8
Merge inbound to central, a=merge
...
a=release to get around the webidl hook for a comment-only change
--HG--
extra : amend_source : f7e57101e1a25d3cf3536a256898ec2a21c54b38
2016-08-16 17:05:30 -07:00
Nicolas Silva
7eadba0012
Bug 1294969 - Path flattening should not skip the first inflection point if it is at t=0.0. r=Bas
2016-08-16 15:42:57 +02:00
Jan Beich
610c9bd786
Bug 1294923 - Unbreak --enable-system-cairo build after bug 943626. r=bas.schouten
...
MozReview-Commit-ID: LofFWlXUVzd
--HG--
extra : rebase_source : 8629100a9ff411491222e66adfbcddf2f7d797ed
2016-08-13 02:32:09 +00:00
Bas Schouten
d6b8fc4152
Bug 943626 - Part 3: Implement GetGlyphMetrics API for ScaledFontBase with Cairo r=jrmuizel
2016-08-11 15:47:32 -04:00
Bas Schouten
e0031c0160
Bug 943626 - Part 2: Implement GetGlyphMetrics API for DirectWrite r=jrmuizel
2016-08-11 15:47:32 -04:00
Bas Schouten
3547be617f
Bug 943626 - Part 1: Add GetGlyphDesign/RasterizationMetric API to Moz2D r=jrmuizel
2016-08-11 15:47:32 -04:00
Daniel Holbert
3112c6ac39
Bug 1292390 followup: add newline character at the end of Polygon/BSPTree files added in this bug, per coding style guide. (whitespace-only, no review)
...
DONTBUILD because whitespace-only.
MozReview-Commit-ID: 8QOAtwJ8G9z
2016-08-16 11:01:06 -07:00
Miko Mynttinen
2123dc4b39
Bug 1292390 - Add Polygon data structure. r=jrmuizel, r=kip
...
MozReview-Commit-ID: HFgVFgLqB12
--HG--
extra : transplant_source : %5E-oo20%15%B3%D3%A3%AC%23%B9%19.%92%AE%2A%06%25
2016-08-09 11:24:18 -07:00
Mason Chang
850f81d1c7
Bug 1292642 Default to skia if we have an invalid pref for a backend on OS X. r=milan
2016-08-10 17:36:25 -07:00
Bob Owen
9e41d076ec
Bug 1288194 Part 2: Fix incorrectly recorded argument in DrawTargetRecording::PushLayer. r=bas
...
MozReview-Commit-ID: HdvCaPGDqvk
--HG--
extra : rebase_source : c1e938b2d8542eb5b8d4250162ccff11578317b6
2016-08-08 17:11:44 +01:00
Bob Owen
ac545a9a00
Bug 1288194 Part 1: Implement PathBuilderRecording::Arc correctly. r=bas
...
MozReview-Commit-ID: Iz7Io8IxHvR
--HG--
extra : rebase_source : 77600450c62b7154a0c56875906e7e015aaf7842
2016-08-08 17:11:38 +01:00
Mason Chang
21793bcce5
Bug 1290323. Write alpha values for plugin surfaces when using the Skia backend. r=jrmuizel
2016-08-05 10:29:12 -07:00
Mason Chang
197188c032
Bug 1292378 - VerifyRGBXFormat has an incorrect width calculation. r=lsalzman
2016-08-05 10:26:33 -07:00
David Anderson
bf733b4fbb
Add the 2D content backend to gfxVars. (bug 1288259 part 4, r=jrmuizel)
...
--HG--
extra : rebase_source : e805a138c71963f4f80ec218d9be05fde6544f02
2016-08-04 11:33:44 -07:00
Lee Salzman
658901461a
Bug 1291856 - push clip before drawing GTK3 widgets. r=acomminos
...
MozReview-Commit-ID: 84Y8sBg7NzF
2016-08-03 20:24:39 -04:00
Mason Chang
25944ce750
Bug 942688 - Draw Cocoa Widget without assuming DrawTargetCG. r=mstange
2016-08-03 07:53:12 -07:00
Nicolas Silva
40a96c03f2
Bug 1284837 - Add conversions methods from Point and Size to IntPoint and IntSize for consistency. r=botond
2016-07-26 16:48:34 +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
Mason Chang
4b1b00a0f7
Bug 1279063. Part 3: Memset RGBX surfaces to 0xFF in Factory::CreateDataSourceSurface. r=lsalzman
2016-07-25 16:36:36 -07:00
Mason Chang
74f3ee9f9b
Bug 1279063 - Part 1: Don't assume cairo is the default software backend. r=lsalzman
2016-07-25 16:36:35 -07: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
Tom Tromey
5538d692d3
Bug 1286877 - do not set c-basic-offset for python-mode; r=gps
...
This removes the unnecessary setting of c-basic-offset from all
python-mode files.
This was automatically generated using
perl -pi -e 's/; *c-basic-offset: *[0-9]+//'
... on the affected files.
The bulk of these files are moz.build files but there a few others as
well.
MozReview-Commit-ID: 2pPf3DEiZqx
--HG--
extra : rebase_source : 0a7dcac80b924174a2c429b093791148ea6ac204
2016-07-14 10:16:42 -06:00
Lee Salzman
1bc7c6bf66
Bug 1287552 - part 4 - add ScaledFontFontconfig to remember generating FcPattern. r=jrmuizel
...
MozReview-Commit-ID: AbWjvL5IWCN
--HG--
extra : rebase_source : 9ac07bee30de7b2cdcca84b31c1fb00d9f529c56
2016-07-20 15:07:11 -04:00
Milan Sreckovic
7b6a6a19d3
Bug 635464: Diagnostic crash in nightly and aurora, to see if we are asking basic content client for alpha. r=bas
...
MozReview-Commit-ID: 2DBdJZs0hlh
--HG--
extra : rebase_source : dabafda100d50b8308e4dc008254a7a4c6d80549
2016-07-20 10:26:02 -04:00
Carsten "Tomcat" Book
4a64baa9d4
merge mozilla-inbound to mozilla-central a=merge
2016-07-21 16:24:36 +02: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
Milan Sreckovic
e22300de9e
Bug 1281702: Report the actual error message, rather than a generic one from the graphics logger. r=mchang
...
MozReview-Commit-ID: BT4FjWJ03wF
--HG--
extra : rebase_source : 71fa23c8e3a0e346779a7618036d1408393de3d5
2016-07-18 16:35:35 -04:00
Carsten "Tomcat" Book
8428cd56e3
merge mozilla-inbound to mozilla-central a=merge
2016-07-20 11:20:15 +02:00
Kartikaya Gupta
85a734ff8d
Bug 1283826
. r=mstange,Bas
...
MozReview-Commit-ID: HiwjHBlhmKk
2016-07-19 21:50:09 -04:00
Bob Owen
0671a5539a
Bug 1285942 Part 1: Make RecordedEvent::PlayEvent return a bool and null check DrawTarget creation. r=bas
...
MozReview-Commit-ID: 8tm7rjFEbw0
--HG--
extra : rebase_source : 5a85bec626644515ef5a261c4cba076bcddf136c
2016-07-18 12:13:04 +01:00
Ethan Lin
ac71a5c4d7
Bug 1287652 - Add error handling while colorstop is empty. r=mchang
2016-07-19 00:59:00 -04:00
vincentliu
6a774f87dd
Bug 1283113 - Add matrix checking before set matrix in Cairo. r=milan
...
---
gfx/2d/Matrix.h | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
2016-07-13 16:47:32 +08:00
Lee Salzman
16ca3223d9
Bug 1286317 - part 1 - remove Qt widget usage from gfx. r=jrmuizel
2016-07-12 20:27:57 -04:00
Chris Peterson
43c2748f66
Bug 1277775 - Replace MOZ_CONSTEXPR{_VAR,_TMPL} with constexpr. r=froydnj
2016-07-08 14:39:53 -07:00
JerryShih
abd529257e
Bug 1276062 - update DrawTargetD2D1::Init() log. r=hshih
2016-07-07 11:43:03 +08:00
JerryShih
5f9e6f5771
Bug 1276062 - show a log if there is no device for DrawTargetD2D1::Init(). r=bas
2016-07-01 02:25:00 +02:00
Nicolas Silva
10809f5f78
Bug 1167235 - Part 2 - Detach DrawTarget snapshots before unlocking TextureClient. r=Bas
2016-07-01 10:58:13 +02:00
Nicolas Silva
55982c743c
Bug 1167235 - Part 1 - Render canvas2D into TextureClient directly. r=Bas
2016-07-01 10:58:06 +02:00
Lee Salzman
89c51f72ce
Bug 1282246 - don't use gradients with non-finite endpoints in DrawTargetSkia. r=mchang
2016-06-29 20:01:48 -04:00
Sebastian Hengst
51e7f34222
Backed out changeset 14dfa550c783 (bug 1167235)
2016-06-28 20:28:23 +02:00
Sebastian Hengst
1e83040b43
Backed out changeset b67548cc946e (bug 1167235)
2016-06-28 20:28:23 +02:00
Andi-Bogdan Postelnicu
af65fa1246
Bug 1282424 - initialize member variable |mSpecularConstantInt| in SpecularLightingSoftware. r=mstange
...
MozReview-Commit-ID: 8ch1A9bGiBj
--HG--
extra : rebase_source : ee673828507d5de411c1a807f9b43ce542e34f21
2016-06-27 16:26:01 +03:00
Nicolas Silva
24410dac99
Bug 1167235 - Part 2 - Detach DrawTarget snapshots before unlocking TextureClient. r=Bas
2016-06-28 14:06:55 +02:00
Nicolas Silva
9367516d33
Bug 1167235 - Part 1 - Render canvas2D into TextureClient directly. r=Bas
2016-06-28 14:06:51 +02:00
Andi-Bogdan Postelnicu
ca078b944b
Bug 1282397 - prevent explicit null pointer dereference. r=jrmuizel
...
MozReview-Commit-ID: 5Bj0h5q04is
--HG--
extra : rebase_source : 4f184a8fd806d7d6a422bd4ff87f55f1e1749f43
2016-06-27 17:23:10 +03:00
Markus Stange
53778de528
Bug 1261166 - Add the ability to use IOSurface instead of texture upload on OS X. r=nical,mattwoodrow
...
Initial patch by Markus Stange, additional fixes by Kartikaya Gupta. The code
to use IOSurface is guarded by a pref that is disabled by default.
MozReview-Commit-ID: LbhsYu4zMRV
2016-06-27 11:25:13 -04:00
David Anderson
4b55758fd2
Remove PreferenceAccess. (bug 1280822 part 3, r=milan)
2016-06-26 23:33:18 -07:00
Wes Kocher
1587b12aa9
Backed out 4 changesets (bug 1280822) for leaking nsTArray_base
...
Backed out changeset b9a0567cd7c1 (bug 1280822)
Backed out changeset 93d483583ffa (bug 1280822)
Backed out changeset 91715d8e468f (bug 1280822)
Backed out changeset 3db77f57cef4 (bug 1280822)
2016-06-24 14:43:41 -07:00
David Anderson
75b68d7a82
Remove PreferenceAccess. (bug 1280822 part 3, r=milan)
...
--HG--
extra : rebase_source : 0326ce94bd482d07fef664a26b2fa0b75706a0e5
2016-06-24 16:16:34 -07:00
Carsten "Tomcat" Book
284c26c669
Bug 1268854 - Break out of loop if no intersecting points on positive side of clipping plane. r=kip
2016-06-23 12:41:04 +02:00
Jeff Muizelaar
6ea6772e53
Bug 1279972
. ssse3-scaler: initialize iter.data to NULL
...
This should avoid calling free with an uninitialized value.
2016-06-22 20:52:31 -04:00
Lee Salzman
5b4d7640b1
Bug 1280635 - use drawBitmap instead of drawBitmapRect for DrawTargetSkia::CopySurface. r=jrmuizel
2016-06-21 16:14:28 -04:00
Jonathan Watt
53c34f0b69
Bug 1279628, part 1 - Add the CoreGraphics check from gfxASurface::CheckSurfaceSize to 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
8b002c52bd
Bug 1279628, part 1 - Add the CoreGraphics check from gfxASurface::CheckSurfaceSize to Factory::CheckSurfaceSize. r=mstange
...
--HG--
extra : rebase_source : 46aba14e2b2e6997672ac690c73def2391df0c4f
2016-06-09 15:31:24 +01:00
Lee Salzman
02da400412
Bug 1275339 - check if creation of cairo surface fails in DrawTargetCairo::DrawSurface. r=jrmuizel
2016-06-10 20:00:47 -04:00
Ralph Giles
5f548c968f
Bug 1275744 - Reference MOZ_LOG in graphics comments. r=erahm
...
NSPR_LOG_MODULES is deprecated.
MozReview-Commit-ID: HZzskDYsTo9
--HG--
extra : rebase_source : 21d4c4a94d80ad962ef56fceb8d6fbabc017d2ea
2016-05-26 11:41:29 -07: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
Tooru Fujisawa
e59f1fba71
Bug 382721 - Part 4: Support dotted/dashed border-radiused corners. r=jrmuizel
2015-08-06 11:42:09 +09:00
Carsten "Tomcat" Book
8ec9dd1719
Backed out changeset 0863ce40d2f7 (bug 382721)
...
--HG--
extra : rebase_source : ee6aa275c7ee4291d87a051e92e2e28979b83d96
2016-06-10 15:38:37 +02:00
Tooru Fujisawa
72499083d6
Bug 382721 - Part 4: Support dotted/dashed border-radiused corners. r=jrmuizel
2015-08-06 11:42:09 +09:00
Botond Ballo
8004b3209f
Bug 1277814 - Add printing support to BaseMargin. r=kats
...
MozReview-Commit-ID: 3E36i09xI3Y
--HG--
extra : source : b720fc66767b6cd6f136998dd51cf58e0d59cca8
2016-06-03 17:23:40 -04:00
Sebastian Hengst
55bfbee464
Backed out changeset 6f2840c13fb0 (bug 382721)
2016-06-08 11:07:51 +02:00
Tooru Fujisawa
f90b836316
Bug 382721 - Part 4: Support dotted/dashed border-radiused corners. r=jrmuizel
2015-08-06 11:42:09 +09:00
Nicolas Silva
16fd1cf5ef
Bug 1278512 - Fix bezier flattening when the inflection points are on the extremity of the curve. r=Bas
2016-06-07 16:51:44 +02:00
Mason Chang
39d49c1dc0
Bug 1277404. Set font gamma for windows fonts to 1.8 and force skia to use cleartype fonts on non-opaque surfaces. r=lsalzman
2016-06-06 10:00:33 -07:00
Jonathan Watt
0b33916487
Bug 1277862, part 1 - Rename Moz2D's Filter to SamplingFilter in gfx/2d/. r=Bas
2016-05-25 17:01:18 +01:00
Kaku Kuo
55ef3c417c
Bug 1141979 - part5 - Add R8G8B8, B8G8R8, HSV, Lab and Depth into gfx::SurfaceFormat; r=jrmuizel
...
MozReview-Commit-ID: 7ZG5ooejBq9
--HG--
extra : transplant_source : z%24%9C%C2%EB%0A%C7t%9D%DFu%CE%0DKR%D5%11%B2T%24
2016-03-18 18:25:38 +08:00
Nicholas Nethercote
9ec20a644f
Bug 1277122 - Add missing null checks for pixman_image_create_bits(). r=seth,lsalzman.
...
--HG--
extra : rebase_source : dec917d2efd9a262bd06816dcbb541acd3892340
2016-06-01 14:27:30 +10:00
Nicolas Silva
90af12edd2
Bug 1276068 - Correct the path flatness estimation computation. r=Bas
2016-05-31 12:34:17 +02:00
Kearwood (Kip) Gilbert
b25f2d6a84
Bug 1276066 - Add Union with "components" member to math classes to enable array access to members. r=bas
...
- Adding an array member to access the components of vector, size,
and matrix classes reduces the code needed when passing all of the
members to functions.
MozReview-Commit-ID: A6XL7y3zwsV
--HG--
extra : rebase_source : 77fb1b9784ae1213530cff7f42563e0afc8859e3
2016-04-18 12:12:36 -07:00
Jeff Muizelaar
a5fc6a819f
Bug 1266491 - Use an ssse3 scaler for video. r=mstange
...
This is a separable scaler that improves from performance
from 15-16fps to 21-22fps
2016-05-28 10:12:12 -04: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
Wes Kocher
881322b8cb
Backed out changeset 7985dab6e65e (bug 1283826
) for crashtest failures CLOSED TREE
2016-07-18 11:43:15 -07:00
Kartikaya Gupta
f006a9f9b3
Bug 1283826
. r=mstange,Bas
...
MozReview-Commit-ID: HiwjHBlhmKk
2016-07-18 11:15:00 -04:00
Mason Chang
bd43ebe418
Bug 1249600. Fallback to arial fonts or draw nothing if typeface is unavailable. r=bas
2016-05-20 09:16:29 -07:00
Heiher
ff01ec7e05
Bug 1262066 - GFX: 2D: Use ConvolveHorizontally1_LS3. r=seth
...
---
gfx/2d/convolver.cpp | 4 ++++
1 file changed, 4 insertions(+)
2016-05-23 10:30:39 +08:00
Heiher
d11126b662
Bug 1262066 - GFX: 2D: Implement skia::ConvolveHorizontally1 in LS3 MMI. r=huangwenjun06
...
---
gfx/2d/convolverLS3.cpp | 88 +++++++++++++++++++++++++++++++++++++++++++++++++
gfx/2d/convolverLS3.h | 7 ++++
2 files changed, 95 insertions(+)
2016-05-23 10:30:38 +08:00
Jeff Muizelaar
1b2a06e879
Bug 1113828: Returning null is an expected property of this function and gfxPlatform::CreateDrawTargetForData() uses this. Removing this message prevents us from printing a bunch of messages during the normal usage of a debug build. r=bschouten
2016-05-19 10:10:55 -04:00
vincentliu
4332e3a00e
Bug 1167557 - Log for Null surface in SurfaceCache::Insert. r=milan
...
---
gfx/2d/Logging.h | 1 +
image/SurfaceCache.cpp | 3 ++-
2 files changed, 3 insertions(+), 1 deletion(-)
2016-05-19 13:01:26 +08:00
Mason Chang
19ddb4f17c
Bug 1268502 Part 2. Fix memory leak with CGColorSpace. r=lsalzman
2016-05-18 17:09:14 -07:00
Mason Chang
787d48e2aa
Bug 1268502 - Use a CGContext around a Skia Canvas to draw subpixel AA text on popup menus. r=mstange
2016-05-17 11:41:38 -07:00
Lee Salzman
eda0f910e1
Bug 1266209 - check if a figure is active in PathBuilderD2D before copying glyphs to it. r=bas
2016-05-17 12:47:22 -04:00
Milan Sreckovic
17dda1461b
Bug 1272767: More graphics MOZ_CRASH-es getting GFX prefix. Also, follow up on bug 1270180 comments. r=mchang
...
MozReview-Commit-ID: 1rlHdDG4Cbw
--HG--
extra : rebase_source : 8bf84d2b1c4cc5bc48821b1eadbadf8edc6ce1ba
2016-05-13 16:34:41 -04:00
Chris Peterson
353ee65255
Bug 1272513 - Part 1: Suppress -Wshadow warnings-as-errors in some directories. r=glandium
2016-05-11 00:00:01 -07:00
JerryShih
cadb8c6cb7
Bug 1256572
- update DataSourceSurface usage. r=bas
...
Update for Moz2D interface change.
We should not use GuaranteePersistance() directly outside Moz2D. Change
to use another Moz2d DataSourceSurface interface.
2016-05-09 00:33:00 +02:00
JerryShih
f54115ac72
Bug 1256572
- setup custom deallocator for SourceSurfaceRawData. r=bas
2016-05-10 20:44:00 +02:00
JerryShih
4e7ff09f94
Bug 1256572
- create DataSourceSurface with current data. r=bas
2016-05-10 20:42:00 +02:00
Mason Chang
1ed5c6b7b4
Bug 1120485. Add more logging to find failed uses of MessageChannel::mEvent. r=milan
2016-05-10 17:59:15 -07:00
Mason Chang
e3da2b3d0d
Bug 1270640 - Part 1: Always enable normal hinting with skia unless we explicitly have grayscale aa. r=kats
...
--HG--
extra : rebase_source : 5a96292b0f7a98e60d052b31eb1d2cc35ea636ea
2016-05-09 12:34:00 -04:00
Lee Salzman
8799f3a155
Bug 1266209 - warn if ID2D1Geometry::Simplify fails in TransformedCopyToBuilder. r=bas.schouten
2016-05-09 10:33:33 -04:00
Milan Sreckovic
e0f647f55d
Bug 1270180: More instances of MOZ_CRASH converted to gfxDevCrash and getting GFX prefix. r=jgilbert
...
MozReview-Commit-ID: BFUu2JG9Tk2
--HG--
extra : rebase_source : 146e8b8dc49dce7735f961df3ddfa3c9130fee32
2016-05-06 10:19:31 -04:00
Lee Salzman
493ea699e5
Bug 1265131, part 3 - update Moz2d for Skia m51. r=jrmuizel
2016-04-28 22:55:27 -04:00
Nicholas Nethercote
2511b2c327
Bug 1267550 (part 2) - Rename MOZ_WARN_UNUSED_RESULT as MOZ_MUST_USE. r=froydnj.
...
It's an annotation that is used a lot, and should be used even more, so a
shorter name is better.
MozReview-Commit-ID: 1VS4Dney4WX
--HG--
extra : rebase_source : b26919c1b0fcb32e5339adeef5be5becae6032cf
2016-04-27 14:16:50 +10:00
Bas Schouten
bb762a5da8
Bug 1265598: Deal with the possibility of a write map failing. r=kaku r=milan
...
MozReview-Commit-ID: KLrlKf6Silc
2016-04-28 13:22:32 +00:00
Bas Schouten
8287b9b368
Bug 1266430: Support offsets in DrawTargetD2D1::CopySurface when using PartialUploading. r=jrmuizel
...
MozReview-Commit-ID: LilGG2ySPw7
2016-04-28 13:22:31 +00:00
Milan Sreckovic
edf1ba5056
Bug 1267958: Only complain for negative size, not merely zero. r=jrmuizel
...
MozReview-Commit-ID: JqtcPB292a7
--HG--
extra : rebase_source : 3da95780339576662ea3560050ba3c67b8e0fac5
2016-04-27 12:51:12 -04:00
Mason Chang
3c536bb168
Bug 1267363. Disable hinting on osx fonts only if we have expclity grayscale AA. r=mstange
2016-04-26 13:14:15 -04:00
Lee Salzman
b5107c76f2
Bug 1267271 - skip empty surfaces in DrawTargetSkia::DrawSurfaceWithShadow. r=mchang
2016-04-25 15:42:13 -04:00
Edwin Flores
5d094bc8b7
Bug 1244883 - Add Nightly-/Aurora-only crash for AsyncTransactionWaiter timeouts - r=nical
2016-04-25 13:10:46 +01:00
Lee Salzman
1a2965bce1
Bug 1266209 - log failure reason when PathBuilderD2D::Finish fails. r=bas.schouten
2016-04-23 20:25:29 -04:00
Botond Ballo
0b5440e37a
Bug 1257288 - Move IntersectMaybeRects() to gfx/2d/Rect.h. r=kats
...
MozReview-Commit-ID: C99GwsLN7Zg
--HG--
extra : rebase_source : e12db0995ec0f1ffc30e0f01b8c85081236b405c
2016-04-20 17:16:09 -04:00
Edwin Flores
74950cfa47
Bug 1256678 - Re-add nightly-only crash if ScaledFontWin::GetFontFileData fails to find a matching TrueType collection font - r=jfkthame
2016-04-22 13:23:25 +01:00
Edwin Flores
cdd3b63026
Bug 1256678 - Fall back to loading GDI fonts from system in DrawTargetRecording - r=bas
2016-04-22 13:23:25 +01:00
Edwin Flores
4a167320a0
Bug 1256678 - Account for truncated font names in ScaledFontWin::GetFontFileData() - r=jfkthame
2016-04-22 13:23:25 +01:00
Edwin Flores
aab6e566af
Bug 1256678 - Backout diagnostic patch rev 39c895b67af2 - r=me
2016-04-22 13:23:25 +01:00
Chris Peterson
d95cf073f8
Bug 1266292 - Remove unnecessary compiler checks for MSVS 2010 in gfx/2d/. r=bas
2016-04-18 22:48:31 -07:00
Milan Sreckovic
fca0580f8e
Bug 1264736: Crash sooner if we can't get a valid command list, at least in nightly/aurora. r=bas
...
MozReview-Commit-ID: JyUOZrEZ9hT
--HG--
extra : rebase_source : 6c483d23f2ffc4c03641ad76ae3ad2d1c48686dd
2016-04-20 12:11:00 -04:00
Mason Chang
68c6d918e5
Bug 1260454. Disable LCD font smoothing if we have grayscale AA on OS X. r=lsalzman
2016-04-21 08:45:14 -07:00
Kartikaya Gupta
726b05f89b
Bug 1231396 - Add a pref to record and print out the number of pixels painted. r=mstange
...
MozReview-Commit-ID: 2qqnL6rqjcL
2016-04-19 17:07:57 -04:00
Matt Woodrow
bd4c2f5dc7
Bug 1263480 - Don't let cairo go into an error state when DrawSurface is called with an empty destination rectangle. r=lsalzman
2016-04-19 11:20:33 +12:00
Markus Stange
aa4de9b2d6
Bug 1236043
- Don't inflate empty rects. r=jrmuizel
...
MozReview-Commit-ID: 1cpQhkugsFJ
--HG--
extra : rebase_source : 037d3727d1ce03e6389b98b3a19f5b1c8536bba7
2016-03-29 13:40:07 -04:00
Lee Salzman
4bda990954
Bug 1257717 - throw InvalidStateError when CreatePattern fails to snapshot source. r=jrmuizel
2016-04-14 16:20:12 -04:00
Lee Salzman
c8c0ffc47d
Bug 1264246 - verify that SkCanvas::getClipBounds succeeds before using result. r=mchang
2016-04-13 16:34:07 -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
Tom Klein
7b2edfae77
Bug 1134549 - Switch FlattenBezier from floats to doubles. r=bas
2016-04-12 11:44:23 -05:00
Lee Salzman
7ecefe6c62
Bug 1240177 - fix SourceSurfaceSkia::DrawTargetWillChange deepCopyTo usage. r=mattwoodrow
2016-04-12 01:28:31 -04:00
Lee Salzman
36abf5b9cb
bug 1263685 - Check if paint has a shader before modifying local matrix in DrawTargetSkia::MaskSurface. r=mchang
2016-04-11 22:16:57 -04:00
Markus Stange
a30d4e5147
Bug 1260885 - Make SurfaceFormat::R5G6B5_UINT16 properly round-trip through SourceSurfaceCairo. r=lsalzman
...
MozReview-Commit-ID: KvuUzzGQjuQ
--HG--
extra : rebase_source : 2c704efceb1d41aa348ff7579f6e79b222577eff
2016-04-07 16:40:15 -04:00
Nicolas Silva
f0dbe33f5c
Bug 1242448 - Ensure the tile pool does not hold textures during shutdown. r=edwin
2016-04-07 14:35:55 +02:00
Mason Chang
7e8b1d4295
Bug 1120485. Log CloseHandle error reason during MessageChannel shutdown failure. r=milan
2016-04-06 09:03:22 -07:00
Edwin Flores
7cb6393ecc
Bug 1256678 - Replace DrawTargetCairo::FillGlyphs crashes with other crashes - r=bobowen
2016-04-06 11:07:27 +01:00
Heiher
9ae6539ca5
Bug 1260350 - GFX: 2D: Use ConvolveHorizontally_LS3. r=jrmuizel
...
---
gfx/2d/convolver.cpp | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
2016-04-05 11:03:32 +08:00
Heiher
57e0bc7abd
Bug 1260112 - GFX: 2D: Fix unaligned access in ConvolveVertically/Horizontally_LS3. r=huangwenjun06
...
---
gfx/2d/convolverLS3.cpp | 22 ++++++++++++++--------
1 file changed, 14 insertions(+), 8 deletions(-)
2016-04-05 11:03:28 +08:00
Lee Salzman
2acc650849
Bug 1255342 - implement DrawTargetCairo::LockBits for Cairo Win32 surfaces. r=sotaro
2016-04-04 10:43:47 -04:00
Bas Schouten
c7a2d932b2
Bug 1259785: Do a proper flush when taking a snapshot so our dependent targets and command lists get appropriately cleared. r=jrmuizel
...
MozReview-Commit-ID: D49eFNRGD2V
--HG--
extra : rebase_source : 79bc34d1822396e87eedb5913ac56ecbf1b65fa3
2016-03-31 21:45:36 +02:00
Bas Schouten
9c327300bf
Bug 1258168: Push ClearType compatible clipping layers when the last pushed layer was marked as opaque. r=jrmuizel
...
MozReview-Commit-ID: IM1srXx7CfB
2016-03-20 19:51:46 +01:00
Kyle Huey
20daca1a98
Bug 1258905: Remove a bunch of dead IPC code. r=jld
2016-03-28 10:28:14 -07:00
Lee Salzman
16d757c28e
Bug 1259810 - check that D2D1 device creation succeeds and otherwise fall to software backend. r=bas.schouten
2016-03-28 12:53:42 -04:00
David Anderson
1d196f7f91
Disable device access on textures created against stale layers. (bug 1256517 part 3, r=nical)
...
--HG--
extra : rebase_source : 02718e49b49379ced97fbfed3453f4efdd04564b
2016-03-25 01:36:17 -07:00
Lee Salzman
4c1b0ad4f8
Bug 1259621 - use AlphaBoxBlur in DrawTargetSkia::DrawSurfaceWithShadow. r=mchang
2016-03-25 22:14:50 -04:00
Sebastian Hengst
a179e34466
Backed out changeset 06a0c49f1206 (bug 1258168) for css-blending reftest failures on Windows 8 x64 opt. r=backout
2016-03-25 21:27:52 +01:00
Bas Schouten
2abefa918b
Bug 1258168: Push ClearType compatible clipping layers when the last pushed layer was marked as opaque. r=jrmuizel
...
MozReview-Commit-ID: IM1srXx7CfB
2016-03-20 19:51:46 +01:00
Ryan VanderMeulen
91ad83db87
Backed out changeset c3c85d59ec72 (bug 1244883) for causing widespread Windows debug e10s crashes/asserts.
...
--HG--
extra : rebase_source : f47683dc935e327eb1b82609edf3b6642676d12b
2016-03-24 14:54:32 -04:00
Sebastian Hengst
fa9288dc66
Backed out changeset 9d33171eb4e9 (bug 1256517)
2016-03-23 18:57:31 +01:00
David Anderson
08db4be559
Disable device access on textures created against stale layers. (bug 1256517 part 3, r=nical)
2016-03-23 10:32:21 -07:00
Edwin Flores
07e7c983a1
Bug 1244883 - Add Nightly-/Aurora-only crash for AsyncTransactionWaiter timeouts - r=nical
2016-03-23 15:39:57 +00:00
Lee Salzman
ca8c96a592
Bug 1252324 - add DrawTarget API for 3D transforms for use in layers. r=jrmuizel
2016-03-23 01:03:10 -04:00
Markus Stange
04177e1aa2
Bug 1209100 - Back out bug 1165185 on inbound.
...
MozReview-Commit-ID: JqohyXNvjiU
--HG--
extra : rebase_source : c2165d279a6ca57a3439ebbfc081961369a42124
2016-03-21 16:16:52 -04:00
Sebastian Hengst
96f01a9a2b
Backed out changeset f251bbc37cb0 (bug 1258168) for failing Reftest(R) 817019-1.html on Windows 8 x64. r=backout on a CLOSED TREE
2016-03-22 18:57:35 +01:00
Bas Schouten
98ff52deba
Bug 1258168: Push ClearType compatible clipping layers when the last pushed layer was marked as opaque. r=jrmuizel
...
MozReview-Commit-ID: IM1srXx7CfB
--HG--
extra : rebase_source : fc736599b8e44c34e22a78053dfa55ad47963d16
2016-03-20 19:51:46 +01:00
Lee Salzman
fc0bd4af21
Bug 1256552 - fix int-to-float conversions in RadialGradientEffectD2D1. r=jrmuizel
2016-03-21 16:17:16 -04:00
Nicolas Silva
f06dc39683
Bug 1233743 - Remove the Mutex typedef from gfx/2d. r=vlad
2016-03-21 15:34:50 +01:00
Jacek Caban
5c834c9219
Bug 1251431 - GCC compilation fixup.
2016-03-21 13:16:29 +01:00
Lee Salzman
d4eec00ff3
Bug 910138 - clean-up of arc math. r=me
2016-03-19 00:29:13 -04:00
Lee Salzman
7f2b998fc6
Bug 1257939
- initialize BGRX alpha channel to opaque when clearing and ignore uninitialized alpha in texture clients. r=mchang
2016-03-18 16:58:55 -04:00
Bas Schouten
1225ab11b5
Bug 1251431 - Part 1: Allow usage of an A8 source pattern to MaskSurface for D2D 1.1 Moz2D backend. r=jwatt
...
MozReview-Commit-ID: 3SOuVvklajf
2016-03-18 14:47:11 +01:00
Ethan Lin
766d50b78f
Bug 910138 - Part 1. Add support for new canvas ellipse method. r=roc, r=smaug
2016-03-15 00:53:00 +01:00
Timothy Nikkel
5263f50634
Bug 1251150
. Add crash annotations if image visibility is re-entering. r=mats
2016-03-14 22:59:02 -05:00
Sotaro Ikeda
8e434d1c10
Bug 1255320 - Create DrawTarget with DIB as similar DrawTarget r=jrmuizel
2016-03-13 19:46:23 -07:00
Benoit Girard
52f227c58b
Bug 1253678 - Rename mozilla::Function to mozilla::function. r=froydnj
...
MozReview-Commit-ID: 60RPmEsYDN2
--HG--
extra : rebase_source : 9d0bebc7362af2778d123425c56ac20553d9303b
2016-03-11 16:49:13 -05:00
Lee Salzman
04fb5babb0
Bug 1241161 - make Matrix4x4::ProjectTo2D normalize out perpective where possible. r=mattwoodrow
2016-03-10 16:10:04 -05:00
Mason Chang
c89157b9ea
Bug 1249600. Lookup font and font family from font face when requesting SkTypeface. r=bas
2016-03-08 07:37:16 -08:00
Lee Salzman
fa8cc9f344
Bug 1254243
- use SkPath::contains directly now that it considers boundaries inclusively. r=mattwoodrow
2016-03-07 17:12:02 -05:00
Nathan Froyd
da33676fbb
Bug 1251716 - use UniquePtr instead of ScopedDeletePtr in DrawTargetCairo; r=jrmuizel
...
UniquePtr is more standard than ScopedDeletePtr; using standard
constructs whenever possible is preferable.
2016-02-26 13:34:11 -05:00
Bogdan Postelnicu
cd1f9673bd
Bug 1251241 - return from DrawTargetCairo::FillGlyphs if |aFont| is nullptr. r=roc
...
MozReview-Commit-ID: 56RQO8Fm2AP
--HG--
extra : rebase_source : bd0a70750199a62d627c570e2b1bdbc10ebb621a
2016-02-25 16:59:34 +02:00
Lee Salzman
876e94a736
Bug 1248223 - verify that stroke widths are finite for Skia. r=jmuizelaar
2016-02-23 18:09:03 -05:00
Jean-Yves Avenard
0f2fbc9d88
Bug 1248323: P1. Add support for YUV422 IOSurface. r=nical
...
Those are really UYVY 16bpp surface.
MozReview-Commit-ID: DWkqrF6Norj
--HG--
extra : rebase_source : 479500af560f61a3f6b6c4c3b0f64aeb92438a9a
2016-02-23 13:26:27 +11:00
Lee Salzman
2a69a5aa16
Bug 1250787 - ensure that subpixel text is disabled for Skia's Cairo font host so that font rendering matches our font metrics. r=mchang
2016-02-24 20:35:38 -05:00
Nicolas Silva
241addc752
Bug 1244234 - Simplify joining jobs with the gfx job scheduler. r=jrmuizel
2016-02-23 19:15:30 +01:00
Milan Sreckovic
94b767a7cd
Bug 1247700: Avoid crash from invalid fonts. r=bas
...
MozReview-Commit-ID: 9ULEBZAH9zz
--HG--
extra : rebase_source : 3eeea06396e0cca6685ac98915278a1bd768e55c
2016-02-23 09:55:44 -08:00
Mason Chang
579a548e8f
Bug 1249033 - Enable Subpixel AA Text on Skia for Dwrite and GDI Fonts. r=jrmuizel
2016-02-18 08:37:43 -08:00
Mason Chang
488e418aaa
Backout 2c97c2a5dad7 bug 1249033. r=me
2016-02-17 13:19:56 -08:00
Mason Chang
5006e4e550
Bug 1249033 - Enable Subpixel AA Text on Skia for Dwrite and GDI Fonts. r=jrmuizel
2016-02-17 13:09:35 -08:00
Milan Sreckovic
4b17d4d133
Bug 1248450: Send the graphics messages to the parent process. r=dvander
...
MozReview-Commit-ID: EshCrdT5lYu
--HG--
extra : rebase_source : bc83b76bf6eea5e2e450eca4aacee5685373aed7
2016-02-16 18:07:37 -05:00
Mason Chang
4ab8d2c595
Bug 1239152 Memset RGBX surfaces to opaque white. r=nical
2016-02-17 07:34:37 -08:00
Milan Sreckovic
59d6d38319
Bug 1187464 - Part 1. We can get the wrong texture source type, so deal with it. Carry r=mstange
2016-02-08 11:56:00 +01:00
David Anderson
e8462418d4
Add instrumentation for when content processes fail to acquire D3D11 devices. (bug 1247539, r=milan)
...
--HG--
extra : rebase_source : 9d13831f25867d993cccc9b2717e14cc0a4893a0
2016-02-15 23:59:24 -08:00
Bas Schouten
259d24796a
Bug 1247775 - Part 3: Remove Moz2D code to support Direct2D 1.0. r=dvander
...
MozReview-Commit-ID: KBZSqIdx0OC
2016-02-13 14:33:28 +01:00
Milan Sreckovic
e9025efa1b
Bug 1247671: Increase the crash logging length to 16 by default (+ small white space change in the comments) r=dvander
...
MozReview-Commit-ID: 9KH6ZdWInZM
--HG--
extra : rebase_source : 62d608c0fd859586a129d9663b92aa634bca1c7d
2016-02-11 13:04:20 -05:00
Carsten "Tomcat" Book
fdcf299e32
Backed out changeset 8e13ba75bccf (bug 1247775)
2016-02-12 08:49:28 +01:00
Bas Schouten
54dad93d74
Bug 1247775 - Part 3: Remove Moz2D code to support Direct2D 1.0. r=dvander
...
MozReview-Commit-ID: KBZSqIdx0OC
--HG--
extra : rebase_source : 632fb5208a702f79fa5c648698f73bc9b0bf8992
2016-02-12 02:11:50 +01:00
Matt Woodrow
2f1cbec9a2
Bug 1224433 - Part 2: Clamp the invalidation rect to values that fit within nscoord. r=roc
...
--HG--
extra : rebase_source : 0aaede54d8622786cddaf8365e6bf091d6bff8f8
2016-02-12 11:35:17 +13:00
Bas Schouten
66c618a6ee
Bug 1246641: Also execute an occasional EndDraw for CommandLists used by non-operator OVER drawing. r=jrmuizel
...
MozReview-Commit-ID: H3V3z8ZIiIK
2016-02-11 21:35:07 +01:00
Lee Salzman
9c09b93cc2
Bug 1246756 - part 1 - fix moz2d Skia usage for Skia m49 update. r=jrmuizel
2016-02-09 13:36:19 -05:00
Jonathan Watt
ed38f5c352
Bug 1245845, part 1 - Stop Moz2D Path::CopyToBuilder/TransformedCopyToBuilder implicitly converting the Path's FillRule. r=Bas
2016-02-08 02:15:54 +00:00
William Chen
a7c2c21d89
Bug 1245242 - Normalize to unit vector for DOMMatrix.rotateAxisAngleSelf. r=roc
2016-02-04 00:30:00 -08:00
Lee Salzman
c4f3bf16cc
Bug 1244228
- fix DrawTargetSkia::OptimizeSourceSurface to still create Skia surfaces for GPU canvases even if creating a GPU surface failed. r=jmuizelaar
2016-02-03 13:49:36 -05:00
Bas Schouten
888d48a29a
Bug 1245525: Fix some compiler errors in Moz2D type classes. r=jrmuizel
...
--HG--
extra : commitid : FmfVYTFF0DR
2016-02-03 19:44:41 +01:00
Carsten "Tomcat" Book
c92db23864
Backed out changeset 63e2a056311a (bug 1187464) for reftest failures
...
--HG--
extra : rebase_source : 8102427c109ff38e42b26b7f48dcaba67bdd7c4c
2016-02-03 15:04:37 +01:00
Milan Sreckovic
e8a5e06fdb
Bug 1187464 - Part 1. We can get the wrong texture source type, so deal with it. r=mstange
2016-02-02 11:05:00 +01:00
Birunthan Mohanathas
d7371d07d0
Bug 1235261 - Part 1: Rename nsAutoTArray to AutoTArray. r=froydnj
2016-02-02 17:36:30 +02:00
David Anderson
3183956eeb
Use double precision when computing the backdrop copy rect. (bug 1243071 part 2, r=mattwoodrow)
2016-02-01 16:27:49 -08:00
Phil Ringnalda
d381b4bca6
Back out 7 changesets (bug 1235261) for cpptest failures in TestTArray
...
CLOSED TREE
Backed out changeset d66c3f19a210 (bug 1235261)
Backed out changeset 467d945426bb (bug 1235261)
Backed out changeset 32b61df13142 (bug 1235261)
Backed out changeset c50bb8ed4196 (bug 1235261)
Backed out changeset 0ff0fa6fe81f (bug 1235261)
Backed out changeset df70e89669da (bug 1235261)
Backed out changeset 064969357fc9 (bug 1235261)
2016-01-31 10:10:57 -08:00
Birunthan Mohanathas
373593275e
Bug 1235261 - Part 1: Rename nsAutoTArray to AutoTArray. r=froydnj
2016-01-31 17:12:12 +02:00
Bogdan Postelnicu
85e3e6dee1
Bug 1242421 - remove useless null check. r=roc@ocallahan.org
...
--HG--
extra : transplant_source : %0D%9E%D5%21l%FC%EF%15g%0B%16x%DD%88H%80%C3L%CB%A0
2016-01-25 14:00:29 +02:00
Bob Owen
00a3e39683
Bug 1240437 part 2: Follow-up to fix implicit constrcutor static analysis failure. r=me
2016-01-26 10:31:31 +00:00
Bob Owen
ddcde763b9
Bug 1240437: Implement PushLayer and PopLayer for DrawTargetRecording. r=bas
2016-01-26 10:03:07 +00:00
Lee Salzman
51ee06a33d
Bug 1241918 - remove workarounds for zero-length dash intervals in HelpersSkia.h, r=jrmuizel
2016-01-22 11:12:52 -05:00
Bas Schouten
838779b05e
Bug 1241058: Assure several operations properly operate on the current group target. r=jrmuizel
...
--HG--
extra : rebase_source : 095317736906a39a75c47005e12e112113bc087b
2016-01-20 17:27:36 +01:00
Lee Salzman
ee61a37f0b
Bug 1240177 - part 4 - avoid GPU readbacks in SourceSurfaceSkia::DrawTargetWillChange, r=jrmuizel
2016-01-21 09:52:35 -05:00
Lee Salzman
d913eb20b8
Bug 1240177 - part 3 - make DrawTargetSkia::OptimizeSourceSurface directly upload to GPU textures, r=jrmuizel
2016-01-21 09:52:08 -05:00
Lee Salzman
d67a7412a2
Bug 1240177 - part 2 - cleanups of DrawTargetSkia and SourceSurfaceSkia creation for GPU contexts, r=jrmuizel
2016-01-21 09:51:40 -05:00
Lee Salzman
a725c24151
Bug 1240177 - part 1 - add helper function to make Skia image info, r=jrmuizel
2016-01-21 09:50:43 -05:00
Lee Salzman
579717eec1
Bug 1241163 - Replace DrawTarget::CreateSourceSurfaceFromNativeSurface(CAIRO_CONTEXT) with Factory::CreateSourceSurfaceForCairoSurface. r=jrmuizel
2016-01-20 13:31:44 -05:00
Bas Schouten
9c134bf2d5
Bug 1241012: Remove moz-d2d1-1.h stub headers from the tree. r=jrmuizel
...
--HG--
extra : rebase_source : 8c5c8bcd043a96c83148bfc065cddf5100cd59ee
2016-01-20 04:50:22 +01:00
Nicolas Silva
59f28c22d9
Bug 1239288 - Fix a race in the win32 job scheduler's shutdown. r=jrmuizel
2016-01-19 09:48:51 +01:00
Nicolas Silva
eaffc2bea6
Bug 1239844 - Log hexadecimal values in a more standard way. r=dholbert
2016-01-18 12:03:15 +01:00
Chris Peterson
f68d14cca7
Bug 1236323 - Part 2: Suppress -Wimplicit-fallthrough warnings in gfx/ from Skia header files. r=nical
2016-01-08 00:43:58 -08:00
Lee Salzman
466b5fb4c9
Bug 1239040 - Fix DrawTargetCairo/DrawTargetSkia LockBits and BorrowedXlibDrawable to work inside PushLayer. r=jrmuizel
2016-01-13 13:11:07 -05:00
Lee Salzman
f8a3f7243f
Bug 1239040 - Cleanup of DrawTargetSkia CopySurface to avoid accessing bottom layer directly. r=jrmuizel
2016-01-13 13:11:07 -05:00
Lee Salzman
267c479fcf
Bug 1239040 - Implement PushLayer for DrawTargetSkia. r=Bas
2016-01-12 23:30:33 -05:00
Lee Salzman
f348a7869e
Bug 1239040 - Cleanup of DrawTargetSkia Mask and MaskSurface. r=jrmuizel
2016-01-12 13:26:31 -05:00
Lee Salzman
6000e65e29
Bug 1239040 - Cleanup of DrawTargetSkia GetBitmapForSurface to use installPixels. r=jrmuizel
2016-01-12 13:05:13 -05:00
Jan de Mooij
98f91b82f9
Bug 1237201 part 2 - Handle Vector OOM in gfx/. r=jrmuizel,kats
2016-01-14 15:19:16 +01:00
Andrea Marchesini
83b88d383f
Bug 1231378 - part 2 - Fix uninitialized members of classes in dom/*, r=smaug
2016-01-12 18:16:59 +00:00
Carsten "Tomcat" Book
6692893d20
Backed out changeset 5f6a58676e87 (bug 1231378)
2016-01-12 15:48:57 +01:00
Andrea Marchesini
001e241382
Bug 1231378 - part 2 - Fix uninitialized members of classes in dom/*, r=smaug
2016-01-12 13:54:53 +00:00
Bas Schouten
b3027878ab
Bug 1238328: Purge stored command lists by calling EndDraw/BeginDraw on a regular basis when they're used. r=jrmuizel
...
--HG--
extra : rebase_source : 5041fa82907837c50e657c87afeda85be40b25d7
2016-01-11 16:38:10 +01:00
Nicholas Nethercote
88696a303a
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.
--HG--
extra : rebase_source : f56e92b1593957a9e4e00171100bc7605816e696
2016-01-07 20:57:38 -08:00
Chris Peterson
d7f8317f74
Back out 400861eb8c62 (Bug 1236323 - Part 2) for unearthing Skia -Wunreachable-code warnings-as-errors
2016-01-08 00:32:01 -08:00
Chris Peterson
a2a55a8086
Bug 1236323 - Part 2: Suppress -Wimplicit-fallthrough warnings in gfx/ from Skia header files. r=nical
...
gfx/skia/skia/include/gpu/GrTestUtils.h:94:9 [-Wimplicit-fallthrough] unannotated fall-through between switch labels
gfx/skia/skia/include/gpu/GrTypesPriv.h:181:9 [-Wimplicit-fallthrough] unannotated fall-through between switch labels
2015-11-24 09:39:04 -08:00
Chris Peterson
b94d12b3b4
Bug 1236323 - Part 1: Annotate intentional switch fallthroughs to suppress -Wimplicit-fallthrough warnings in gfx/. r=nical
...
gfx/thebes/gfxFcPlatformFontList.cpp:706:9: warning: unannotated fall-through between switch labels [-Wimplicit-fallthrough]
gfx/thebes/gfxFontconfigFonts.cpp:2183:9: warning: unannotated fall-through between switch labels [-Wimplicit-fallthrough]
gfx/2d/DrawTargetCG.cpp:812:5: warning: unannotated fall-through between switch labels [-Wimplicit-fallthrough]
gfx/2d/DrawTargetCairo.cpp:636:5: warning: unannotated fall-through between switch labels [-Wimplicit-fallthrough]
2015-11-24 09:39:04 -08:00
Tooru Fujisawa
4fac62d240
Bug 382721 - Part 0: Add missing includes and namespaces. r=jrmuizel
2015-09-10 19:24:34 +09:00
Nicholas Nethercote
4b651d870f
Bug 1231881 - Remove NativeSurfaceType::CAIRO_SURFACE. r=bas.
...
We have both NativeSurfaceType::CAIRO_CONTEXT and
NativeSurfaceType::CAIRO_SURFACE. They both refer to DrawTargets with Cairo
backends. The only reason for having both is so you can call GetNativeSurface()
and get either the |cairo_t*| or the underlying |cairo_surface_t*|.
I argue that this convenience confuses things more than it helps. This patch
removes CAIRO_SURFACE, and adds explicit cairo_get_target() calls where
necessary.
--HG--
extra : rebase_source : 6f1701a8131d854c7f623272182029847876754e
2016-01-05 14:24:08 -08:00
Mason Chang
2e3ff601d6
Bug 842894 - Support DirectWrite using the Skia backend. r=bas
2016-01-06 11:35:04 -08:00
Bas Schouten
12b9a82473
Bug 1220629 - Part 6: Implement PushLayer/PopLayer API in several wrapper DT types. r=jrmuizel
...
--HG--
extra : rebase_source : 5a421568fa20b23d7ceef71eb58014e29dbc1c76
2016-01-06 00:23:33 +01:00
Bas Schouten
b5ed4b63ba
Bug 1220629 - Part 5: Implement PushLayer/PopLayer API for Direct2D 1.1. r=jrmuizel
...
--HG--
extra : rebase_source : ec545e1bde6741e9bc461b1a6ab966e7b6c9236a
2016-01-06 00:23:29 +01:00
Bas Schouten
6b108bc5cb
Bug 1220629 - Part 3: Implement PushLayer/PopLayer API in cairo. r=jrmuizel
...
--HG--
extra : rebase_source : 058ed10659456f59761535f7538ced6df5425aec
2016-01-06 00:04:38 +01:00
Bas Schouten
fd6c57413d
Bug 1220629 - Part 2: Prepare DrawTargetD2D1 for the possibilities of layers existing inside it. r=jrmuizel
...
--HG--
extra : rebase_source : 97685e7ee1e9249dd465bfcee40bd7401f2a6e4e
2016-01-05 09:03:08 +01:00
Bas Schouten
e6f7f09b31
Bug 1220629 - Part 1: Add PushLayer/PopLayer API to DrawTarget baseclass. r=jrmuizel
...
--HG--
extra : rebase_source : 49ad072bc61d9d46c0b5d3fe2797624922f5083c
2016-01-05 09:00:59 +01:00
Bob Owen
1fe62dee68
Bug 1156742 Part 24: Add new Recorded event to record font data. r=bas
...
We create and destroy ScaledFonts for every piece of text we write.
That causes a huge amount of duplicated data within the recording.
This splits out the recording of the font data itself from the ScaledFont.
The key generated to determine uniqueness could probably be fairly easily faked, but for our purposes that doesn't matter.
2016-01-05 10:08:58 +00:00
Bob Owen
401ebce4ed
Bug 1156742 Part 22: Change ScaledFontDWrite to support creation from TrueType Collection data. r=bas
2016-01-05 10:08:58 +00:00
Bob Owen
74de9c73ae
Bug 1156742 Part 21: Use GetDirect3D11Device instead of DrawTargetD2D::GetDWriteFactory to determine if DWrite fonts should be used. r=Bas
...
This method will allow for acceleration being disabled through prefs and blacklisting.
2016-01-05 10:08:58 +00:00
Bob Owen
b24d50e720
Bug 1156742 Part 20: Move Moz2D PreferenceAccess into its own header. r=bas
...
This is so we can add a new preference in Part 21, which has nothing to do with logging.
2016-01-05 10:08:58 +00:00
Bob Owen
0c7ef20c4d
Bug 1156742 Part 19: Implement GetFontFileData for ScaledFontWin. r=bas
2016-01-05 10:08:58 +00:00
Bob Owen
3b91f57af4
Bug 1156742 Part 17: Add virtual destructor to RecorededEvent and fix subsequent crash with DWrite playback fonts. r=bas
2016-01-05 10:08:57 +00:00
Bob Owen
af9224e713
Bug 1156742 Part 16: Add recording and forwarding of Matrix attribute set for Moz2D recording. r=bas
2016-01-05 10:08:57 +00:00
Bob Owen
20e589aec1
Bug 1156742 Part 13: Create a Moz2D PrintTranslator. r=bas
...
A better solution to the ScaledFonts issue comes in Part 24.
2016-01-05 10:08:57 +00:00
Bob Owen
e707786501
Bug 1156742 Part 12: Record CreateSimilarDrawTarget separately for Moz2D. r=bas
...
This is so we can create the real print DrawTarget from our nsDeviceContext at the beginning of each page.
Default behaviour for other Translators is still to always use CreateSimilarDrawTarget.
2016-01-05 10:08:57 +00:00
Bob Owen
fdd98bfb6b
Bug 1156742 Part 9: Add a new nsIDeviceContextSpec for proxied printing. r=roc
...
This also changes aPrintToFileName parameter for BeginDocument to an nsAString& from char16_t*.
Having a char16_t* caused a pain with VS2105 where wchar_t != char16_t (as on VS2103), after it had been sent over IPDL.
This could have been worked around with casting, but this seemed like the tidier solution.
2016-01-05 10:08:57 +00:00
Bob Owen
c6e61e8846
Bug 1156742 Part 4: Add an in memory DrawEventRecorder. r=bas
2016-01-05 10:08:57 +00:00
Bob Owen
9536340a3a
Bug 1156742 Part 3: Add support for FontType::CAIRO to CreateScaledFontForTrueTypeData on Windows. r=bas
...
Parts of this change and related code get moved around in Part 24.
2016-01-05 10:08:56 +00:00
Bob Owen
7b7cad771e
Bug 1156742 Part 2: Make gfx thebes/gl/2d work with UNICODE defined. r=bas, r=glandium
2016-01-05 10:08:56 +00:00
Bob Owen
940fb516d4
Bug 1156742 Part 1: Change Moz2D recording, so that it can be used in isolation. r=bas
...
These are mainly changes to make sure we have recorded relevant dependencies to each draw operation.
Where we can't record them on the fly like this, it makes sure the object has originated from our DrawTarget.
2016-01-05 10:08:56 +00:00
Milan Sreckovic
3ebd8ac2fd
Bug 1235858 - Record the time stamp, use it for crash reports. r=botond
2015-12-30 11:47:00 +01:00
Milan Sreckovic
ac84b221c9
Bug 1235613 - Make gfxCriticalError/Note strings in gfx/ unique. r=jrmuizel
...
--HG--
extra : transplant_source : %8F%1DcB%3A%25%94%95G%EF%B4U%CE%B9%10%E1%A3%BC%E2%3D
2015-12-29 14:03:58 -05:00
Lee Salzman
5512fbeae7
Bug 1229983 - verify that paths are finite in DrawTargetSkia::Stroke/Fill to handle Canvas paths containing infs. r=jmuizelaar
2015-12-30 13:39:13 -05:00
Xidorn Quan
3549505a7d
Bug 1195788 - Set arithmetic composite clamp to true for D2D filter node. r=bas
...
--HG--
extra : source : 143122bf7036ee754e587fc99a049078d34eb936
2015-12-29 09:48:37 +11:00
Bas Schouten
ad65c68987
Bug 1107792: Don't ask for similar if the surface has an error, and more data in crash reports. r=milan
...
--HG--
extra : commitid : 2BXoALYvMhT
2015-12-24 12:55:36 -05:00
Wes Kocher
a5249b6201
Backed out 25 changesets (bug 1156742) for build bustage in SkOSLibrary_win.cpp CLOSED TREE
...
Backed out changeset 31c0aadae8e7 (bug 1156742)
Backed out changeset f08df57ff700 (bug 1156742)
Backed out changeset 90c026d5dcb1 (bug 1156742)
Backed out changeset 8c6d14d80238 (bug 1156742)
Backed out changeset 72d86b0471c9 (bug 1156742)
Backed out changeset 363829accc09 (bug 1156742)
Backed out changeset 16360fe94d54 (bug 1156742)
Backed out changeset 5355c636a81a (bug 1156742)
Backed out changeset 18844d26b873 (bug 1156742)
Backed out changeset 99df86591613 (bug 1156742)
Backed out changeset 7ac1c7e15a11 (bug 1156742)
Backed out changeset de352000aae1 (bug 1156742)
Backed out changeset 4dd34ea230c6 (bug 1156742)
Backed out changeset 48c6ce65a5c2 (bug 1156742)
Backed out changeset dd52947f73c6 (bug 1156742)
Backed out changeset 5fe429ee880c (bug 1156742)
Backed out changeset dedca8fb19b0 (bug 1156742)
Backed out changeset d748b1354f92 (bug 1156742)
Backed out changeset 7f8e59588518 (bug 1156742)
Backed out changeset b90d302c57f6 (bug 1156742)
Backed out changeset 7a4da453572c (bug 1156742)
Backed out changeset a40eea914519 (bug 1156742)
Backed out changeset 99a8859afcdb (bug 1156742)
Backed out changeset 4934e88b2d7a (bug 1156742)
Backed out changeset 79733166f05e (bug 1156742) for build bustage in SkOSLibrary_win.cpp CLOSED TREE
--HG--
extra : amend_source : beeb6abbcc724b79ac166e828efa78dc4c5301da
2015-12-21 13:47:33 -08:00
Bob Owen
fb35888c83
Bug 1156742 Part 24: Add new Recorded event to record font data. r=bas
...
We create and destroy ScaledFonts for every piece of text we write.
That causes a huge amount of duplicated data within the recording.
This splits out the recording of the font data itself from the ScaledFont.
The key generated to determine uniqueness could probably be fairly easily faked, but for our purposes that doesn't matter.
2015-12-21 20:33:14 +00:00
Bob Owen
e4d10bb475
Bug 1156742 Part 22: Change ScaledFontDWrite to support creation from TrueType Collection data. r=bas
2015-12-21 20:33:14 +00:00
Bob Owen
957b556822
Bug 1156742 Part 21: Use GetDirect3D11Device instead of DrawTargetD2D::GetDWriteFactory to determine if DWrite fonts should be used. r=Bas
...
This method will allow for acceleration being disabled through prefs and blacklisting.
2015-12-21 20:33:14 +00:00
Bob Owen
27ff57a6e6
Bug 1156742 Part 20: Move Moz2D PreferenceAccess into its own header. r=bas
...
This is so we can add a new preference in Part 21, which has nothing to do with logging.
2015-12-21 20:33:14 +00:00
Bob Owen
ff49466165
Bug 1156742 Part 19: Implement GetFontFileData for ScaledFontWin. r=bas
2015-12-21 20:33:14 +00:00
Bob Owen
f8497152ba
Bug 1156742 Part 17: Add virtual destructor to RecorededEvent and fix subsequent crash with DWrite playback fonts. r=bas
2015-12-21 20:33:14 +00:00
Bob Owen
1f1916743e
Bug 1156742 Part 16: Add recording and forwarding of Matrix attribute set for Moz2D recording. r=bas
2015-12-21 20:33:14 +00:00
Bob Owen
982220b6d8
Bug 1156742 Part 13: Create a Moz2D PrintTranslator. r=bas
...
A better solution to the ScaledFonts issue comes in Part 24.
2015-12-21 20:33:13 +00:00
Bob Owen
661e04ae49
Bug 1156742 Part 12: Record CreateSimilarDrawTarget separately for Moz2D. r=bas
...
This is so we can create the real print DrawTarget from our nsDeviceContext at the beginning of each page.
Default behaviour for other Translators is still to always use CreateSimilarDrawTarget.
2015-12-21 20:33:13 +00:00
Bob Owen
529a96f97d
Bug 1156742 Part 9: Add a new nsIDeviceContextSpec for proxied printing. r=roc
...
This also changes aPrintToFileName parameter for BeginDocument to an nsAString& from char16_t*.
Having a char16_t* caused a pain with VS2105 where wchar_t != char16_t (as on VS2103), after it had been sent over IPDL.
This could have been worked around with casting, but this seemed like the tidier solution.
2015-12-21 20:33:13 +00:00
Bob Owen
e0674961f5
Bug 1156742 Part 4: Add an in memory DrawEventRecorder. r=bas
2015-12-21 20:33:13 +00:00
Bob Owen
2ce74bca79
Bug 1156742 Part 3: Add support for FontType::CAIRO to CreateScaledFontForTrueTypeData on Windows. r=bas
...
Parts of this change and related code get moved around in Part 24.
2015-12-21 20:33:13 +00:00
Bob Owen
477a386eec
Bug 1156742 Part 2: Make gfx thebes/gl/2d work with UNICODE defined. r=bas, r=glandium
2015-12-21 20:33:13 +00:00
Bob Owen
c3f67cea48
Bug 1156742 Part 1: Change Moz2D recording, so that it can be used in isolation. r=bas
...
These are mainly changes to make sure we have recorded relevant dependencies to each draw operation.
Where we can't record them on the fly like this, it makes sure the object has originated from our DrawTarget.
2015-12-21 20:33:12 +00:00
Nicolas Silva
9bc4b1d4e6
Bug 1228952 - Move texture metadata out of the BufferTextureClient/Host's buffer. r=Sotaro
2015-12-16 19:50:58 +01:00
Milan Sreckovic
9ac3b8bc44
Bug 1230740
- wallpaper patch for a missing nullptr scenario. r=bas
2015-12-14 13:11:00 +01:00
Lee Salzman
f9d4573bec
Bug 1082598 - Part 2: Fix Moz2D Skia usage for Skia update. r=jrmuizel
2015-12-18 13:53:25 -05:00
Morris Tseng
0d4ac3243e
Bug 1215438 - Part 1: Add utility functions to support transferring ImageBitmap. r=roc
...
--HG--
extra : commitid : JdhYZUbeqRs
2015-12-18 14:52:16 +08:00
Morris Tseng
fc9369b927
Bug 1215005 - SourceSurface has thread-safe refcount now. r=bas
...
--HG--
extra : commitid : 9BKkelEOOvo
2015-12-18 14:52:16 +08:00
Wes Kocher
6ebc8a4b00
Backed out 10 changesets (bug 1082598) for 2d.path.arcTo.shape.curve1.html failures on OSX
...
Backed out changeset 018c2a3031f4 (bug 1082598)
Backed out changeset 8f60e42aca2e (bug 1082598)
Backed out changeset c4297c82165f (bug 1082598)
Backed out changeset c22c1bfd091a (bug 1082598)
Backed out changeset 8754fd718869 (bug 1082598)
Backed out changeset da976e4cd253 (bug 1082598)
Backed out changeset 3c8f87df8c68 (bug 1082598)
Backed out changeset 3183d30eb549 (bug 1082598)
Backed out changeset c239a7bc6cba (bug 1082598)
Backed out changeset aa3805015270 (bug 1082598)
--HG--
extra : commitid : LJSl0Bo8Hqr
2015-12-17 14:30:50 -08:00
Lee Salzman
6239163dbb
Bug 1082598 - Part 2: Fix Moz2D Skia usage for Skia update. r=jrmuizel
2015-12-17 14:45:44 -05:00
Nathan Froyd
4094e18ff5
Bug 1233069 - add override declarations to Windows graphics headers; r=Bas
...
This change silences a number of -Winconsistent-missing-override
warnings on clang-cl.
2015-12-16 10:41:21 -05:00
Mason Chang
4cd6379278
Bug 1230357. Enable subpixel text on skia content backends. r=lsalzman
2015-12-16 12:43:49 -08:00
Milan Sreckovic
06d79c4606
Bug 1219494 - Part 4. gfx/layers and gfxCrash. r=mchang
2015-12-10 13:01:00 +01:00
Milan Sreckovic
bf9a6ffcc5
Bug 1219494 - Part 2. gfx/2d and gfxCrash. r=milan
...
* * *
Bug 1219494: Part 3. gfx/thebes, gfx/src and gfxCrash
2015-11-26 08:38:00 +01:00
Milan Sreckovic
b216c58347
Bug 1200021 - Part 3: Add DrawTarget::IsValid and don't let Cairo version snapshot invalid surface. r=bas
2015-12-04 13:43:00 -05:00
Chris Peterson
46bb7c80dd
Bug 1228947 - Replace mfbt/Constants.h with math.h. r=roc
...
--HG--
extra : rebase_source : 4ab2c4a917ea90055e48bd6adcb53904f2266ee0
2015-11-27 20:49:55 -08:00
Botond Ballo
0858698ac3
Bug 1069417 - Generalize Matrix4x4 into Matrix4x4Typed<SourceUnits, TargetUnits>. r=Bas
...
Matrix4x4 remains a typedef for Matrix4x4Typed<UnknownUnits, UnknownUnits>.
No client code needed changing, except for forward-declarations of Matrix4x4
as a class (since it's now a typedef).
--HG--
extra : rebase_source : ecd9470b9defcc55cfb9e7dbd26e928a6219c3e5
extra : source : 0fc99b5490830953f37a4d8769e42dad2d10bc6e
2015-12-02 18:52:00 -05:00
Nicholas Nethercote
74e40cebb1
Bug 1229237 (part 2) - Make nsIWidget::DrawWindowUnderlay() take a LayoutDeviceIntRect. r=botond.
...
--HG--
extra : rebase_source : 0563312f21ea9bf88399377f977c6b21c60a07b6
2015-11-16 20:34:00 -08:00
Robert O'Callahan
ef0cbe97ce
Bug 1224976. Recover from singular-matrix cairo errors. r=mattwoodrow
...
--HG--
extra : commitid : GIbNC6bzIJp
extra : rebase_source : 15643f58ae0f360a5b91c146c686b0a9a0c19a8a
2015-11-16 17:35:23 +13:00
Lee Salzman
b8d98433fb
Bug 1225977 - fix DrawTargetSkia::MaskSurface with non-zero offset. r=jmuizelaar
2015-11-19 10:25:15 -05:00
Nathan Froyd
2569af9a03
Bug 1225486 - don't include mozilla/ToString.h in {BasePoint,nsRegion}.h; r=jrmuizel
2015-10-26 11:04:14 -04:00
Lee Salzman
794a175c80
Bug 1228188 - ifdef around Skia GetMaxSurfaceSize usage. r=eihrul
2015-11-25 22:21:40 -05:00
Matt Woodrow
4946a3c907
Bug 1168263 - Add nsDisplayPerspective and build separate layers for perspective. r=roc
2015-11-26 22:32:36 +13:00
Jeff Gilbert
19d84fb0fe
Bug 1221822 - Finish the WebGL texture refactor. r=kamidphish,mattwoodrow,bz
2015-11-24 20:15:29 -08:00
Phil Ringnalda
71a6f5da62
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
87397c265b
Bug 1221822 - Finish the WebGL texture refactor. r=kamidphish,mattwoodrow,bz
2015-11-23 19:27:13 -08:00
Mason Chang
e74c79f0e3
Bug 1221840. Support repeating images in 1 axis. r=seth
2015-11-23 08:17:35 -08:00
Lee Salzman
d75fbddd08
Bug 1223740 - enforce max surface size for DrawTargetSkia. r=bas
2015-11-19 13:35:31 -05:00
Lee Salzman
feea035806
Bug 1225250 - fix stride on SourceSurfaceSkia when initialized from GPU texture. r=jmuizelaar
2015-11-17 11:18:36 -05:00
David Anderson
30e9c14eff
Null-check D3D10 devices in a few places. (bug 1225645, r=bas)
2015-11-19 15:04:46 -08:00
Tom Klein
ca7b6331ec
Bug 1131264 - Extend the workaround for drawing D2D circles. r=bas
2015-11-19 13:57:32 -06:00
Phil Ringnalda
04f94361ed
Back out changeset 98bd7a8e4705 (bug 1225645) for Windows build bustage
...
CLOSED TREE
2015-11-18 18:48:14 -08:00
David Anderson
ca5b902f03
Null-check D3D10 devices in a few places. (bug 1225645, r=bas)
2015-11-18 12:16:54 -08:00
Nicolas Silva
eaa6383344
Bug 1224254 - Bustage fix on a CLOSED TREE
2015-11-18 19:22:02 +01:00
Nicolas Silva
578a8ccc95
Bug 1224254 - Don't try to allocate unreasonably large textures. r=Bas
2015-11-18 16:59:11 +01:00
Matt Woodrow
545885b406
Bug 1217012 - Use doubles when untransforming points since we need the extra precision. r=kip
2015-11-16 17:05:55 +13:00
Nicholas Nethercote
e2fe66176b
Bug 1224403 (part 4) - Make {Get,Set}NonClientMargins() return/take a LayoutDeviceIntMargin. r=kats.
...
This required adding {To,From}UnknownMargin().
--HG--
extra : rebase_source : de7e8f56604825bcc1babe5e05a8f8623a402cad
2015-11-11 23:05:04 -08:00
Bas Schouten
7f79cf9b7a
Bug 1221616: Use ID2D1CommandList instead of a bitmap for temporary D2D drawing. r=jrmuizel
2015-11-12 17:00:52 +01:00
Heiher
941d76c43e
Bug 1222298 - GFX: 2D: Make convolverLS3 more like upstream. r=seth
...
---
gfx/2d/convolverLS3.cpp | 62 +++++++++++++++++++++++++------------------------
gfx/2d/convolverLS3.h | 4 +---
2 files changed, 33 insertions(+), 33 deletions(-)
2015-11-12 19:43:17 +08:00
Nicholas Nethercote
489c83b1dd
Bug 1223690 - Remove implicit Rect conversions. r=jrmuizel.
...
gfxRect can be implicitly constructed from IntRect, which hides a number of
implicit conversion points, makes Moz2Dification harder, and has some
surprising effects.
This patch removes the implicit constructor and replaces it with an explicit
conversion function:
gfxRect ThebesRect(const IntRect&)
This is the obvious outcome of removing the constructor.
But there is also a second, less obvious outcome: currently we do a number of
IntRect-to-Rect conversions using ToRect(), which (surprisingly) works because
it turns into an implicit IntRect-to-gfxRect conversion (via the implicit
constructor) combined with an explicit gfxRect-to-Rect conversion (via
ToRect()). I.e. we do two conversions, going from a Moz2D type to a Thebes
type and back to a Moz2D type!
So this patch also changes these conversion. It moves this existing function:
Rect ToRect(const IntRect&)
from gfx2DGlue.h -- where it doesn't really belong because it doesn't involve
any Thebes types -- to gfx/2d/Rect.h, templatifying and renaming it as
IntRectToRect() in the process.
The rest of the patch deals with fall-out from these changes. The call sites
change as follows:
- IntRect-to-gfxRect conversions:
- old: implicit
- new: ThebesRect()
- IntRect-to-Rect conversions:
- old: ToRect()
- new: IntRectToRect()
--HG--
extra : rebase_source : e4e4c2ad10b36ecad4d57d1630158f3374e403be
2015-11-11 14:23:14 -08:00
Timothy Nikkel
2dbd0146a5
Bug 1223639. Rename ForceInside to MoveInsideAndClamp so it's clearer what it does. r=botond
...
This has led to confusion at least twice.
2015-11-11 16:38:25 -06:00
Bas Schouten
b8dfcb93d1
Bug 1210560 - Part 5: Convert BasicLayers usecases to PushGroupForBlendBack and temporary surfaces. r=jrmuizel
2015-11-11 16:15:39 +01:00
Milan Sreckovic
e5971201e2
Bug 1219494 - Part 1. TextureD3D11 and gfxDevCrash instead of MOZ_CRASH where appropriate. r=mchang
...
--HG--
extra : rebase_source : bf4cd63aca2e927a56f3ee682a0e24d76578bfba
2015-11-09 11:28:00 +01:00
Milan Sreckovic
cec30dd69d
Bug 1222033 - Rename gfxCrash to gfxDevCrash. r=jrmuizel
2015-11-09 07:28:00 +01:00
Nathan Froyd
62b66d3dba
Bug 1222569 - remove unused variable from DrawTargetD2D1.cpp; r=Bas
2015-11-06 15:09:03 -05:00