Matt Woodrow
c19f0da01b
Bug 740598 - Add CopyRect API to Moz2D. r=Bas
2013-10-15 14:55:15 +13:00
Daniel Holbert
bc00304ab8
Bug 924749: Make loop variable signed-ness match the type they're compared against, to fix signed/unsigned warnings in PathCairo.cpp. r=Bas
2013-10-11 08:55:03 -07:00
Markus Stange
991115729d
Bug 902591 - Choose the number of linear gradient repetitions in such a way that the whole extents rect is filled. Substantial parts of the code in this patch were written by roc in bug 508730. r=mattwoodrow
...
--HG--
extra : rebase_source : d7f99adc56ef4d81e14bf3ece6761dd8d5c476ed
2013-10-11 10:26:40 -04:00
Daniel Holbert
a6777e75a5
Bug 925140: Remove nsAlgorithm.h #includes from gfx/2d. r=tn
2013-10-10 15:18:42 -07:00
Matt Woodrow
e7fe35ece1
Bug 923309 - Don't flush CGContext drawing to the window when we're only meant to be completing any pending drawing. r=Bas
2013-10-10 17:44:09 +13:00
Daniel Holbert
f837a8ecf8
Backout e67dad88f860 and assertion-count-tweak followups (bug 914919), since including nsDebug.h in gfx/2d causes issues with some skia headers.
2013-10-09 17:03:35 -07:00
Josh Aas
02bf9533bf
Bug 924444: Fix various integer comparison warnings in QuartzSupport.mm. r=mstange
2013-10-09 00:42:26 -05:00
George Wright
10193a209f
Bug 915145 - Always use soft clipping with Skia r=snorp
2013-10-08 15:05:57 -04:00
Josh Aas
add72abd0c
Bug 923945: Fix a memory leak when fetching OS X system color space. Also move system color space retrieval code from deprecated Color Manager APIs to Core Graphics. r=mstange
2013-10-07 16:03:19 -05:00
Ms2ger
df62fb8b0f
Bug 900980 - Part a: Move unconditional assignments to EXPORT_LIBRARY to moz.build; rs=gps
2013-10-03 09:11:13 +02:00
Matt Woodrow
a2bd6fa53c
Bug 920571 - Followup to copy all the pixel on the last line. r=bustage
2013-09-30 17:14:30 +13:00
Matt Woodrow
e899730348
Bug 920571 - Don't read from the trailing stride on the last row of pixels when copying image data in SourceSurfaceCG. r=jrmuizel
2013-09-30 14:42:45 +13:00
Bas Schouten
d457c68e85
Bug 918613: Convert cairo path code to use cairo_path_t. r=jrmuizel
2013-09-28 16:20:24 +02:00
Markus Stange
77ee6d0e97
Bug 921132 - Make CopyDataToCairoSurface respect stride. r=ncameron
2013-09-27 17:21:09 +02:00
Markus Stange
c9a470f6fb
Bug 912945 - Use aligned data storage for DrawTargetCG. r=jrmuizel
2013-09-27 17:20:28 +02:00
Markus Stange
737fc61f80
Bug 912944 - Handle different surface formats in Azure CG source surfaces. r=jrmuizel
2013-09-27 17:19:33 +02:00
Markus Stange
6a76d73090
Bug 921501 - Call CGBitmapContextGetHeight when getting the height for Cairo Quartz surfaces. r=Bas
2013-09-27 17:18:05 +02:00
Anthony Jones
94c6803786
Bug 920847 - Remove gfxSize reference from Azure; r=kats
2013-09-27 14:24:46 +12:00
Anthony Jones
af656ab898
Bug 918138 - Move Borrowed*Context to a separate header file; r=mattwoodrow
2013-09-23 15:28:16 +12:00
Steven Michaud
d576c0c300
Bug 884014 - Can't build QuartzSupport with 10.9 SDK. r=bgirard
2013-09-20 10:56:45 -05:00
Anthony Jones
9c86c23374
Bug 740200 - BorrowedContext support for cairo; r=mattwoodrow
2013-09-20 14:00:35 +12:00
Rik Cabanier
8614b1d5ca
Bug 917943 - Fix color-burn and color-dodge blend modes for Direct2D. r=Bas
2013-09-19 14:48:30 -04:00
Phil Ringnalda
fbd6eb9d18
Backed out 10 changesets (bug 907926, bug 911393, bug 740200, bug 917703) for b2g build bustage
...
CLOSED TREE
Backed out changeset ae02054863f7 (bug 907926)
Backed out changeset 8fcdbbc2dac2 (bug 917703)
Backed out changeset aa253a1fd7e5 (bug 911393)
Backed out changeset ec63e6d6d874 (bug 907926)
Backed out changeset 0042a2722aab (bug 907926)
Backed out changeset dc8bddfca5f1 (bug 740200)
Backed out changeset 439ff7e64d35 (bug 740200)
Backed out changeset d871c0d61510 (bug 740200)
Backed out changeset 3b248c5a0dc2 (bug 740200)
Backed out changeset 3466e81d3a41 (bug 740200)
2013-09-18 23:08:41 -07:00
Anthony Jones
a26b4bab6d
Bug 740200 - BorrowedContext support for cairo; r=mattwoodrow
2013-09-19 16:29:51 +12:00
Ehsan Akhgari
8d2ac65709
Bug 915735 - Part 0: Stop pulling in all of jsapi.h into gkmedias.dll; rs=bjacob
2013-09-18 16:07:56 -04:00
David Zbarsky
9acc4166bf
[Bug 914955] Fix build warnings in Moz2D r=bas
2013-09-15 14:23:51 -04:00
Corey Ford
2c345af1a4
Bug 914919 - Downgrade BaseRect::Set*Edge assertions to be non-fatal. r=dholbert
2013-09-11 16:27:14 -07:00
Nathan Froyd
3e57d05761
Bug 913640 - sprinkle MOZ_CONSTEXPR on gfx's typed units to reduce static constructors; r=kats
2013-09-13 12:34:20 -04:00
Corey Ford
1df58efcfc
Bug 897105 - Part 1: Add RectTyped::operator== to allow use in IPDL structs. r=roc
2013-09-11 21:09:43 -07:00
Matt Woodrow
42c3c9e699
Bug 907926 - Avoid pushing a group if we can in DrawTargetCairo::DrawSurface. r=Bas
2013-09-11 17:08:53 +12:00
Matt Woodrow
e2dab065a5
Bug 907926 - Add support for windows surfaces in DrawTargetCairo size lookup. r=Bas
2013-09-11 17:08:52 +12:00
Vladan Djeric
61628c8947
Backed out changeset 78f1f02b6b36 (bug 907926) for TART regressions
2013-09-11 13:32:23 -04:00
Vladan Djeric
45a0a24f12
Backed out changeset b5d9ee3b3538 (bug 907926) for TART regressions
2013-09-11 13:31:24 -04:00
Kartikaya Gupta
abd5cb0f8b
Bug 909281 - Add some strongly-typed conversion functions for margins and use them in RecordFrameMetrics. r=BenWa
2013-09-11 13:20:43 -04:00
Matt Woodrow
57c0fd4157
Bug 907926 - Avoid pushing a group if we can in DrawTargetCairo::DrawSurface. r=Bas
2013-09-11 17:08:53 +12:00
Matt Woodrow
795eeb8c27
Bug 907926 - Add support for windows surfaces in DrawTargetCairo size lookup. r=Bas
2013-09-11 17:08:52 +12:00
Milan Sreckovic
9618b4a696
Bug 913614 - When the input is invalid, skip the work as we won't get anything useful anyway. r=jmuizelaar
2013-09-06 12:22:20 -07:00
David Zbarsky
cf0aa8a52a
Fix an include guard in gfx/2d, no bug, r=me
2013-09-05 16:50:52 -04:00
Jeff Muizelaar
94a064e04b
Bug 897007. Implement ScaledFontMac::GetFontFileData. r=bas
...
This implements GetFontFileData by reconstructing a truetype font from the
table data.
--HG--
extra : rebase_source : 02a7c5af079854cce02c1e9794a4da6f1fc8bce1
2013-07-24 16:23:57 -04:00
Brian Birtles
723987fcda
Bug 912305 - Fix documentation of RadialGradientPattern constructor; r=bas, DONTBUILD (comment-only)
2013-09-05 09:59:54 +09:00
Mike Hommey
05b3f24e0e
Bug 912293 - Remove now redundant boilerplate from Makefile.in. r=gps
2013-09-05 09:01:46 +09:00
Kartikaya Gupta
e928b156af
Bug 910322 - Strongly type the viewport size in nsViewportInfo. r=mbrubeck, Ms2ger
2013-09-03 15:12:24 -04:00
James Willcox
c2779b4f41
Bug 850263 - Use reasonable SkiaGL cache size and share between instances r=mattwoodrow
...
--HG--
extra : rebase_source : 11a2e5ce90a693abdac91d5ca1308aaed3a29403
2013-08-28 10:08:10 -04:00
Brian O'Keefe
0ee041b9fd
Bug 875934 - Move LIBRARY_NAME to moz.build, batch 3; r=mshal
2013-08-15 09:02:09 -04:00
Matt Woodrow
9fd4f7c1c4
Bug 909128 - Support snapshot source surfaces in DrawTargetCG's CopySurface. r=jrmuizel
2013-08-28 10:54:52 +12:00
Kartikaya Gupta
55c123d4d6
Bug 885023 - Convert mFrameMetrics.mZoom to a CSSToScreenScale. r=BenWa,k17e
...
The mFrameMetrics.mZoom was previously a "resolution-independent" zoom,
which meant it had to always be multiplied by the CalculateIntrinsicScale()
value to be useful. This patch converts it to a "resolution-dependent" zoom,
and includes the intrinsic scale multiplier already. This means it needs
to be updated if either the viewport or composition bounds (which determine
the intrinsic scale) change, but there are only a few places where this
happens and it makes the rest of the code cleaner.
2013-08-26 09:50:30 -04:00
Matt Woodrow
323cf741f0
Bug 907011 - Don't copy surface contents into the snapshot when destroying DrawTargetCairo. r=Bas
2013-08-23 16:54:03 +12:00
Matt Woodrow
cd8a7c72ac
Bug 907011 - Expose cairo objects from gfxContext when using Azure/cairo. r=Bas
2013-08-23 16:53:53 +12:00
Kartikaya Gupta
0089237c64
Bug 907906 - Finish templating the gfx::Margin type, and add a gfx::IntMargin type to go with it. r=Cwiiis
2013-08-22 12:41:51 -04:00
Nicholas Cameron
d027b19178
Bug 907901. Remove NS_lround from rect.h. r=Bas
2013-08-22 21:10:35 +12:00
Ms2ger
19f3e043e3
Bug 904831 - Part b: Move unconditional MSVC_ENABLE_PGO definitions into moz.build; r=gps
2013-08-22 08:56:01 +02:00
Ms2ger
8085d723ed
Bug 883284 - Part d: Move LIBXUL_LIBRARY into moz.build (f-j); r=bsmedberg
2013-08-22 08:56:00 +02:00
Nicholas Cameron
9b7d0b4cf3
Bug 903816. Fixups in non-layers files. r=roc
2013-08-12 11:15:10 +12:00
Matt Woodrow
e00658a518
Bug 907011 - Implement CopyGlyphsToBuilder for Cairo Azure backend. r=Bas
2013-08-21 11:58:27 +12:00
Matt Woodrow
e9ede790d9
Bug 907011 - Implement pattern matrices for the Cairo Azure backend. r=Bas
2013-08-21 11:57:57 +12:00
Matt Woodrow
6775b7dfee
Bug 907011 - Implement antialias mode for the Cairo Azure backend. r=Bas
2013-08-21 11:56:27 +12:00
Matt Woodrow
e790df95f3
Bug 904884 - Assign RAII class instances to variables in PathCario so that they stay alive for the correct scope. r=nrc
2013-08-21 11:55:53 +12:00
Matt Woodrow
68fc511900
Bug 904981 - Clear surface devices offsets in DrawTargetCairo since we don't use them. r=Bas
2013-08-21 11:52:20 +12:00
Ryan VanderMeulen
8c1d293b1c
Merge m-c to inbound.
2013-08-16 21:58:51 -04:00
Botond Ballo
9296923f9b
Bug 895905 - Fixed a compiler error on GCC 4.7. r=Bas
2013-08-08 15:56:09 -04:00
Milan Sreckovic
4ba70803f0
Bug 905219 - BaseRect::IsFinite() now uses std::isfinite(), rather than NS_finite(). r=jrmuizel
2013-08-14 12:29:47 -04:00
Milan Sreckovic
c0b45ceae6
Bug 903526 - Add BaseRect::IsFinite() method. r=bas
2013-08-13 14:48:17 -04:00
Phil Ringnalda
26893fc5ad
Back out d393cfeb5dbf:9f82224bb8a3 (bug 903816) for Android reftest failures
...
CLOSED TREE
2013-08-11 19:21:17 -07:00
Nicholas Cameron
f639add88a
Bug 903816. Fixups in non-layers files. r=roc
2013-08-12 11:15:10 +12:00
Jeff Muizelaar
ecae027e49
Bug 897532. Add support for better filtering in Azure. r=bas
...
This fixes the quality regression on OS X.
--HG--
extra : rebase_source : f045caa95800d05098ea49e05fe90fc933f8849f
2013-07-31 14:46:25 -04:00
Matt Brubeck
c53520d691
Back out d10581fd8202 (bug 897532) on suspicion of causing intermittent pgo-only Metro crashes
2013-08-08 14:58:00 -07:00
Jeff Muizelaar
949f85802a
Bug 897532. Add support for better filtering in Azure. r=bas
...
This fixes the quality regression on OS X.
--HG--
extra : rebase_source : afbf0c332c23933096fa97a022698dc992908c12
2013-07-31 14:46:25 -04:00
Matt Woodrow
25906e852f
Bug 881634 - Only use a single snapshot with DrawTargetSkia. r=Bas
2013-08-01 21:12:16 -04:00
Wes Kocher
f304825fbc
Backed out 6 changesets (bug 900133, bug 881634, bug 893302) for build bustage
...
Backed out changeset 49632bc14e27 (bug 900133)
Backed out changeset 036780fccc89 (bug 900133)
Backed out changeset b8db58f5e209 (bug 893302)
Backed out changeset 67c3e4204e44 (bug 893302)
Backed out changeset a857a4246dd9 (bug 900133)
Backed out changeset e0e2e27af6c1 (bug 881634)
2013-08-02 20:35:39 -07:00
Matt Woodrow
0eff0999b8
Bug 881634 - Only use a single snapshot with DrawTargetSkia. r=Bas
2013-08-01 21:12:16 -04:00
Matt Woodrow
82f9ee14d2
Bug 893824 - Don't allow 0 sized SourceSurfaces with Moz2D. r=jrmuizel
...
--HG--
extra : rebase_source : dc5e18fe96966a86cbb3b2fbaa508247cbe73142
2013-07-15 13:28:04 -04:00
Ehsan Akhgari
085494b95d
Bug 895322 - Part 1: Replace the usages of MOZ_STATIC_ASSERT with C++11 static_assert; r=Waldo
...
This patch was mostly generated by running the following scripts on the codebase, with some
manual changes made afterwards:
# static_assert.sh
#!/bin/bash
# Command to convert an NSPR integer type to the equivalent standard integer type
function convert() {
echo "Converting $1 to $2..."
find . ! -wholename "*nsprpub*" \
! -wholename "*security/nss*" \
! -wholename "*/.hg*" \
! -wholename "obj-ff-dbg*" \
! -name nsXPCOMCID.h \
! -name prtypes.h \
-type f \
\( -iname "*.cpp" \
-o -iname "*.h" \
-o -iname "*.cc" \
-o -iname "*.mm" \) | \
xargs -n 1 `dirname $0`/assert_replacer.py #sed -i -e "s/\b$1\b/$2/g"
}
convert MOZ_STATIC_ASSERT static_assert
hg rev --no-backup mfbt/Assertions.h \
media/webrtc/signaling/src/sipcc/core/includes/ccapi.h \
modules/libmar/src/mar_private.h \
modules/libmar/src/mar.h
# assert_replacer.py
#!/usr/bin/python
import sys
import re
pattern = re.compile(r"\bMOZ_STATIC_ASSERT\b")
def replaceInPlace(fname):
print fname
f = open(fname, "rw+")
lines = f.readlines()
for i in range(0, len(lines)):
while True:
index = re.search(pattern, lines[i])
if index != None:
index = index.start()
lines[i] = lines[i][0:index] + "static_assert" + lines[i][index+len("MOZ_STATIC_ASSERT"):]
for j in range(i + 1, len(lines)):
if lines[j].find(" ", index) == index:
lines[j] = lines[j][0:index] + lines[j][index+4:]
else:
break
else:
break
f.seek(0, 0)
f.truncate()
f.write("".join(lines))
f.close()
argc = len(sys.argv)
for i in range(1, argc):
replaceInPlace(sys.argv[i])
--HG--
extra : rebase_source : 4b4a4047d82f2c205b9fad8d56dfc3f1afc0b045
2013-07-18 13:59:53 -04:00
Ehsan Akhgari
3717325909
Bug 872127 - Part 2: Replace mozilla/StandardInteger.h with stdint.h; r=Waldo,ted
2013-07-30 10:25:31 -04:00
Jeff Muizelaar
06379397bc
Bug 898803. Add support for different surface formats to DrawTargetCG. r=joe
...
This causes us to get cleartype when drawing with alpha with CG.
--HG--
extra : rebase_source : 611c5b76ce0ea926ea8e1e26501ca3d8d9a6b452
2013-07-29 15:01:29 -04:00
John Daggett
64789c29d2
Bug 898267 - support font smoothing in Azure CG backend. r=jrmuizel
2013-07-30 05:00:53 +09:00
Nicolas Silva
4251e90afe
Bug 892505 - Implement gfx::Factory::CreateDataSourceSurface. r=bas
2013-07-17 16:07:44 +02:00
Joshua Cranmer
bb26e8f816
Bug 884061 - Part 4: Remove nsAtomicRefcnt.h, r=jlebar
...
--HG--
extra : rebase_source : ce24ab345baa48104328e3c101b7266a31e81870
2013-07-11 15:21:45 -05:00
Birunthan Mohanathas
fd20fbd749
Bug 784739 - Switch from NULL to nullptr in gfx/2d/; r=Bas
...
--HG--
extra : rebase_source : 340bb0ff65c56c23bf2a4c8e24d082e938997831
2013-07-20 11:48:55 +03:00
Chris Lord
f520fc2e89
Bug 886298 - Add a typed-units Margin. r=kats
2013-07-22 09:50:11 +01:00
Jeff Muizelaar
71a7916743
Bug 896129. Use CGContextDrawImage when appropriate in FillRect(). r=mattwoodrow
...
This fixes the element-paint-paintserversize-rounding-02.html reftest.
2013-07-19 20:39:31 -04:00
Jeff Muizelaar
bda5f61652
Bug 896290. Support drawing with antialaising in DrawTargetCG. r=mattwoodrow
2013-07-19 08:18:18 -04:00
Jacek Caban
c7b2dbb23c
Bug 883004 - GCC bustage fix
2013-07-20 12:37:04 +02:00
Jeff Muizelaar
f4d062eadf
Bug 895646. Use the pattern transform when drawing gradients with DrawTargetCG. r=mattwoodrow
2013-07-16 11:27:12 -04:00
Jeff Muizelaar
c9db22097b
Bug 893977. Support repeating gradients in the CoreGraphics backend. r=mattwoordow
...
CoreGraphics doesn't support repeating gradients natively so we have to
manually repeat them. This change missing support for interpolating a
stop for the center if it doesn't line up correctly. That will come later.
2013-07-18 20:08:51 -04:00
Wes Kocher
27bac0ed90
Backout df425bca5665 (bug 893977) for breaking the build on a CLOSED TREE
2013-07-18 21:16:20 -07:00
Wes Kocher
dfff5aa2ec
Backout 7c2fd5db93b2 (bug bug 895646) for breaking the build on a CLOSED TREE
2013-07-18 21:15:29 -07:00
Jeff Muizelaar
5a65f982f2
Bug 895646. Use the pattern transform when drawing gradients with DrawTargetCG. r=mattwoodrow
2013-07-16 11:27:12 -04:00
Jeff Muizelaar
1ea74c7e1a
Bug 893977. Support repeating gradients in the CoreGraphics backend. r=mattwoordow
...
CoreGraphics doesn't support repeating gradients natively so we have to
manually repeat them. This change missing support for interpolating a
stop for the center if it doesn't line up correctly. That will come later.
2013-07-18 20:08:51 -04:00
James Willcox
019945aae0
Bug 895036 - Lower the SkiaGL texture cache size r=gwright
2013-07-09 16:12:49 -04:00
James Willcox
23ccf56611
Bug 885632 - Always use soft clipping with SkiaGL r=mattwoodrow
2013-06-21 15:28:10 -04:00
Jeff Muizelaar
d50aca8d23
Bug 895078. Implement ScaledFontMac::CopyGlyphsToBuilder. r=mattwoodrow
...
--HG--
extra : rebase_source : e18c584de856676b84c9aac50021f255185a677a
2013-07-16 11:25:49 -04:00
Matt Woodrow
15b6cbf471
Bug 875232 - Make alpha channel optional for MacIOSurface. r=BenWa
2013-07-17 23:24:14 -04:00
Bas Schouten
9f559af1e2
Bug 883004 - Part 3: Add Direct2D 1.1 backend to Moz2D. r=jrmuizel
2013-07-17 14:12:22 +02:00
Bas Schouten
31eab881fb
Bug 883004 - Part 2: Move Direct2D 1.1 detection to configure.in r=glandium
2013-07-17 14:12:05 +02:00
Matt Woodrow
0debdb2a99
Bug 892966 - Make gfxQuartzNativeDrawing support Moz2D surfaces. r=jrmuizel
2013-07-12 17:19:29 -04:00
Matt Woodrow
6450d9080b
Bug 892966 - Setup dashing correctly in DrawTargetCG::StrokeRect. r=jrmuizel
2013-07-12 17:19:28 -04:00
Matt Woodrow
a3629d3dbc
Bug 892966 - Take a reference to the CGContext when constructing a DrawTargetCG from one. r=jrmuizel
2013-07-12 17:19:27 -04:00
Phil Ringnalda
82da68ce77
Back out 7160624804ff:69062da26093 (bug 892966) on suspicion of mochitest-4 test_bug767779.html bustage
...
CLOSED TREE
2013-07-12 16:39:36 -07:00
Jeff Muizelaar
4e9a81da93
Bug 892968. Implement POINT filtering properly in DrawTargetCG. r=mattwoodrow
...
--HG--
extra : rebase_source : 13528e2c21f96d9c5d5dba6f44593869033479f2
2013-07-12 10:01:58 -04:00
Matt Woodrow
fd6c011a54
Bug 892966 - Make gfxQuartzNativeDrawing support Moz2D surfaces. r=jrmuizel
2013-07-12 17:19:29 -04:00