Benoit Jacob
dac63324d2
Bug 959380 - 5/5 - Make gfxMemoryLocation a typed enum - r=jrmuizel
...
find . -type f | grep -v '\./obj' | grep -v '\.hg' | xargs sed -i 's/\(^\|[^A-Za-z0-9_]\)GFX_MEMORY_\(IN_PROCESS_HEAP\|IN_PROCESS_NONHEAP\|OUT_OF_PROCESS\)\($\|[^A-Za-z0-9_]\)/\1gfxMemoryLocation::\2\3/g'
2014-01-23 13:26:40 -05:00
Benoit Jacob
28ff3ad25f
Bug 959380 - 4/5 - Make gfxContentType a typed enum - r=jrmuizel
...
find . -type f | grep -v '\./obj' | grep -v '\.hg' | xargs sed -i 's/\(^\|[^A-Za-z0-9_]\)GFX_CONTENT_\(COLOR\|ALPHA\|COLOR_ALPHA\|SENTINEL\)\($\|[^A-Za-z0-9_]\)/\1gfxContentType::\2\3/g'
2014-01-23 13:26:40 -05:00
Benoit Jacob
638dd1b5c9
Bug 959380 - 3/5 - Make gfxSurfaceType a typed enum - r=jrmuizel
...
find . -type f | grep -v '\./obj' | grep -v '\.hg' | xargs sed -i 's/\(^\|[^A-Za-z0-9_]\)gfxSurfaceType\(Image\|PDF\|PS\|Xlib\|Xcb\|Glitz\|Quartz\|Win32\|BeOS\|DirectFB\|SVG\|OS2\|Win32Printing\|QuartzImage\|Script\|QPainter\|Recording\|VG\|GL\|DRM\|Tee\|XML\|Skia\|Subsurface\|D2D\|Max\)\($\|[^A-Za-z0-9_]\)/\1gfxSurfaceType::\2\3/g'
2014-01-23 13:26:40 -05:00
Benoit Jacob
981c6431d3
Bug 959380 - 2/5 - Make gfxImageFormat a typed enum - r=jrmuizel
...
find . -type f | grep -v \./obj | grep -v \.hg | xargs sed -i 's/\(^\|[^A-Za-z0-9_]\)gfxImageFormat\(ARGB32\|RGB24\|A8\|A1\|RGB16_565\|Unknown\)\($\|[^A-Za-z0-9_]\)/\1gfxImageFormat::\2\3/g'
2014-01-23 13:26:40 -05:00
Benoit Jacob
d136b8327b
Bug 959380 - 1/5 - Make gfxBreakPriority a typed enum - r=jrmuizel
2014-01-23 13:26:39 -05:00
Nicholas Cameron
9529bc1b10
Bug 962216. Assert the correct backend in gfxPlatform::CreateDrawTargetForData. r=mattwoodrow
2014-01-22 11:15:48 +13:00
guozhu cheng
bd2c6ee1e0
Bug 907196 - Split CreateCMSOutputProfile profile loading into GetCMSOutputProfileData. r=BenWa, r=jmuizelaar
2013-11-07 18:20:08 +08:00
David Zbarsky
d26395dbc2
Bug 952977: Convert CreateMatrix to gfx::Matrix r=nical
2014-01-20 16:52:04 -05:00
Nicholas Cameron
f07e89528d
Bug 958363. Turn an error into a warning in gfxBlur. r=mattwoodrow
2014-01-21 10:46:27 +13:00
Jeff Muizelaar
3c184eea41
Bug 961783. Remove unneeded DDB optimization. r=vlad
...
As far as I can tell we always draw images to dc's that are in system memory.
In this case there's no upside to having ddb and a potential downside because
we have to do a readback from gpu into system memory.
--HG--
extra : rebase_source : e536721adc1de2bcff3300ee29c2d1c4b8c15ac0
2014-01-20 12:02:34 -05:00
Jim Chen
1946205e7c
Bug 959237 - Define GetVM, GetJNIEnv, and GetJNIForThread as infallible; r=blassey
...
Currently when either of these methods fail, we log something and rely on the calling code to null check. Since these failures are serious and likely unrecoverable, it's better to define these methods as infallible and just crash if they do fail.
2014-01-17 23:32:24 -06:00
Michael Wu
bd9e29b468
Bug 958008 - Avoid copying images on Android/Gonk when there's nothing to optimize, r=jrmuizel
2014-01-14 11:12:36 +08:00
Nicholas Cameron
ca5667544b
Bug 956967. Don't use direct2d if we forcing d3d9. r=Bas
...
--HG--
extra : rebase_source : 5a4505f9fe043cce965b11a0d1c33815d2b0be3e
2014-01-12 17:02:30 +13:00
Nicholas Cameron
956cec3e3b
Bug 956967. If we have to fallback to our default Azure backend, we must support that backend. r=nical
...
--HG--
extra : rebase_source : 2cc8d34078df6db64353cf5236572f085c2be72e
2014-01-12 17:02:18 +13:00
Benoit Jacob
873406e3f0
Bug 958375 - 8/9 - Make remaining Moz2D enums typed - r=Bas
...
Specifically:
r=Bas for manual changes
f=Bas for automatic changes
See attachments on the bug for the specific breakdown.
2014-01-10 14:06:17 -05:00
Benoit Jacob
d73dfad4ba
Bug 958375 - 7/9 - Make Font-related enums typed - r=Bas
...
Specifically:
r=Bas for manual changes
f=Bas for automatic changes
See attachments on the bug for the specific breakdown.
2014-01-10 14:06:16 -05:00
Benoit Jacob
300f4ba3a9
Bug 958375 - 6/9 - Make BackendType and NativeSurfaceType typed enums - r=Bas
...
Specifically:
r=Bas for manual changes
f=Bas for automatic changes
See attachments on the bug for the specific breakdown.
2014-01-10 14:06:16 -05:00
Benoit Jacob
535a216635
Bug 958375 - 4/9 - Make SurfaceFormat a typed enum - r=Bas
...
Specifically:
r=Bas for manual changes
f=Bas for automatic changes
See attachments on the bug for the specific breakdown.
2014-01-10 14:06:16 -05:00
Benoit Jacob
685a9f25c6
Bug 958368 - Remove the code paths to load a custom Mesa/llvmpipe build instead of system OpenGL (sadface) - r=jgilbert
2014-01-10 13:55:23 -05:00
Ali Akhtarzada
57d53010e4
Bug 958086 - Adjust matrix in gfxPattern::GetPattern for Moz2D. r=bas
...
The pattern transform was not taking in to account the transform
that was set on the draw target.
2014-01-10 08:48:56 -05:00
Jonathan Kew
54f21ce0a4
bug 955957 - pt 1 - reimplement gfxSkipChars and gfxSkipCharsIterator to perform better with huge text runs. r=roc
2014-01-10 09:42:05 +00:00
Carsten "Tomcat" Book
e30f5ec866
Backed out changeset 4b54755de2a7 (bug 955957) for Build Bustage on a CLOSED TREE
2014-01-10 09:30:28 +01:00
Jonathan Kew
4247cb99b0
bug 955957 - pt 1 - reimplement gfxSkipChars and gfxSkipCharsIterator to perform better with huge text runs. r=roc
2014-01-10 07:48:01 +00:00
Milan Sreckovic
901bad782e
Bug 956796 - A bad assertion and a typo in the pref name cancelled each other. Fix, and create #defines for the pref names in this file to avoid problems like this. r=BenWa
2014-01-09 13:17:29 -05:00
Wes Kocher
3e635439d4
Backed out changeset 010f5faed9cf (bug 956796) for build bustage
2014-01-08 15:03:23 -08:00
Milan Sreckovic
6967c61375
Bug 956796 - A bad assertion and a typo in the pref name cancelled each other. Fix, and create #defines for the pref names in this file to avoid problems like this. r=bgirard
2014-01-06 14:14:39 -05:00
Nicholas Cameron
100d053c89
Bug 933549. Change PaintState to use a DrawTarget instead of a gfxContext. r=mattwoodrow
2014-01-08 10:09:34 +13:00
Nicholas Cameron
632494d218
backed out bug 933549 on a CLOSED TREE
2014-01-08 10:27:14 +13:00
Nicholas Cameron
0b741cefca
Bug 933549. Change PaintState to use a DrawTarget instead of a gfxContext. r=mattwoodrow
2014-01-08 10:09:34 +13:00
Matt Woodrow
4c56177515
Bug 952235 - Handle device offset when applying pattern transform. r=bas
2014-01-07 10:25:05 +09:00
Birunthan Mohanathas
dfbad43639
Bug 784739 - Switch from NULL to nullptr in remaining directories; r=ehsan
...
--HG--
extra : rebase_source : 1ff19b2c8fd0e77fa8e822f5007a9fa3a6b6d474
2014-01-06 10:06:04 -05:00
Ehsan Akhgari
eaa7491d77
Bug 927728 - Part 1: Replace PRUnichar with char16_t; r=roc
...
This patch was automatically generated by the following script:
#!/bin/bash
# Command to convert PRUnichar to char16_t
function convert() {
echo "Converting $1 to $2..."
find . ! -wholename "*nsprpub*" \
! -wholename "*security/nss*" \
! -wholename "*modules/libmar*" \
! -wholename "*/.hg*" \
! -wholename "obj-ff-dbg*" \
! -name prtypes.h \
! -name Char16.h \
-type f \
\( -iname "*.cpp" \
-o -iname "*.h" \
-o -iname "*.c" \
-o -iname "*.cc" \
-o -iname "*.idl" \
-o -iname "*.ipdl" \
-o -iname "*.ipdlh" \
-o -iname "*.mm" \) | \
xargs -n 1 sed -i -e "s/\b$1\b/$2/g"
}
convert PRUnichar char16_t
2014-01-04 10:02:17 -05:00
Nicholas Nethercote
ed423fbdef
Bug 955942 (part 2) - Remove MemoryUniReporter. r=mccr8.
...
--HG--
extra : rebase_source : 9d70016cb19637ffece6409a184bf41d574cc6b4
2013-12-07 22:09:10 -08:00
Nicholas Nethercote
a228c41d0b
Bug 955942 (part 1) - Remove unnecessary nsIMemoryReporter qualifiers from UNITS_* and KIND_* constants. r=mccr8.
...
--HG--
extra : rebase_source : f760568c08af03d9fec316bf95e7d4388078a03d
2013-12-11 11:59:39 -08:00
Henri Sivonen
0a59ad7382
Bug 213517 part 2 - Remove the x-user-def language group. r=jfkthame.
2014-01-02 09:18:20 +02:00
Nicholas Cameron
42cc7a3660
Bug 898828. Don't even try async video on Windows. r=nical
2013-12-21 10:37:07 +13:00
Tor Arvid Lund
9d33e07888
Bug 950677 - Change gfxIntSize to gfx::IntSize in ImageContainer.h. r=nical
2013-12-20 11:46:29 -05:00
Jonathan Kew
3d30fb0ba7
bug 950590 - part 2 - make SetUserFontSet support updating a gfxFontGroup's user font set on the fly, and use this in canvas rendering context. r=roc
2013-12-19 20:21:11 +00:00
Jonathan Kew
b3bc7a8f7a
bug 950590 - part 1 - use nsRefPtr instead of manual addref/release calls for gfxFontGroup's reference to the user font set. r=roc
2013-12-19 20:20:57 +00:00
Isura Edirisinghe
3eedf5ced4
Bug 676907 - Refactor (replace) calls to Gestalt because it is deprecated in OS X 10.8 and will not work in after 10.9. r=BenWa
2013-12-19 11:42:19 -05:00
Vladimir Vukicevic
4667d6c4ff
b=929508; implement gfxWindowsPlatform::GetScreenDepth; r=jrmuizel
2013-12-18 13:09:10 -05:00
Jeff Muizelaar
d2a14a64bd
Bug 951216. Avoid unnecessary Snapshot() copies by clearing the pattern. r=Bas
...
gfxSurfaceDrawable::Draw() sets a gfxPattern(Snapshot()) to the gfxContext's
pattern. If the gfxSurfaceDrawable is created by
CreateSamplingRestrictedDrawable it will be destroyed before the Snapshot().
This causes the Snapshot to be copied unnecessarily.
If we set the pattern to something else we'll destroy the snapshot before the
gfxSurfaceDrawable and save a copy.
--HG--
extra : rebase_source : 03864e8a0fe021940747cf691df30ec51e4d8b2d
2013-12-17 13:33:34 -05:00
Chris Lord
aa34694d94
Bug 950696 - Cache the 'enable tiles' layers pref. r=bgirard
...
Rename layers.force-tiles to layers.enable-tiles and cache it with the other
layers prefs in gfxPlatform.
2013-12-17 14:02:16 +00:00
Trevor Saunders
c2b2fcd3d4
bug 949821 - use MOZ_UTF16 more and NS_LITERAL_STRING less r=froydnj
2013-12-12 20:50:01 -05:00
Nicholas Cameron
09c8658b26
Bug 950504. Remove MatrixForThebesMatrix. r=mattwoodrow
...
--HG--
extra : rebase_source : 77103221abbb55d23f9d399d4973ef0b8f269079
2013-12-16 11:17:58 +13:00
Jim Mathies
c4383a34ed
Bug 941774 - Centralize various dpi related queries on Windows. r=bbondy
2013-12-14 14:40:55 -06:00
Kevin Simons
63eee7d672
Bug 944646 - Check the DrawTarget type before downcasting PathBuilders. r=mattwoodrow
...
Previously the ScaledFontBase::CopyGlyphsToBuilder methods in the
various ScaledFont subclasses static_cast-ed the passed in PathBuilder
objects without checking which sort of DrawSurface they were created by.
2013-12-12 17:37:00 -05:00
Bill McCloskey
88328fd5a2
Bug 948238 - Read browser.tabs.remote once at startup and never again (r=bsmedberg)
2013-12-12 14:13:20 -08:00
John Daggett
6344fce7da
Bug 947812 - bracket log calls with #ifdef PR_LOGGING. r=heycam
2013-12-12 09:28:40 +09:00
Matt Woodrow
22a56a80d8
Bug 948221 - Part 6: Make UnpremultiplyImageSurface work on surfaces that don't have matching strides. r=roc
2013-12-12 10:05:26 +13:00