Commit Graph

295 Commits

Author SHA1 Message Date
Mike Hommey
081a405fd8 Bug 1216444 - Remove GKMEDIAS_SHARED_LIBRARY. r=mshal
In bug 922912, we folded back gkmedias.dll info xul.dll, so in practice, there
is no default configuration left that exercises GKMEDIAS_SHARED_LIBRARY. And
sure enough, it's been broken for months in many different ways.

The gkmedias intermediate library is however kept for webrtc signaling tests.
2015-10-21 14:47:22 +09:00
Nicholas Nethercote
e49efba560 Bug 1216020 - Comment all ALLOW_COMPILER_WARNINGS lines. r=glandium.
DONTBUILD because it only changes comments.

This will hopefully prevent confusion like that in bug 1215903.
2015-10-19 18:05:20 -07:00
Chris Peterson
419277fbe5 Bug 1215899 - Suppress clang and gcc warnings in gfx/skia. r=gw280 2015-10-16 22:24:19 -07:00
Nathan Froyd
e4e2da55c9 Bug 1207245 - part 6 - rename nsRefPtr<T> to RefPtr<T>; r=ehsan; a=Tomcat
The bulk of this commit was generated with a script, executed at the top
level of a typical source code checkout.  The only non-machine-generated
part was modifying MFBT's moz.build to reflect the new naming.

CLOSED TREE makes big refactorings like this a piece of cake.

 # The main substitution.
find . -name '*.cpp' -o -name '*.cc' -o -name '*.h' -o -name '*.mm' -o -name '*.idl'| \
    xargs perl -p -i -e '
 s/nsRefPtr\.h/RefPtr\.h/g; # handle includes
 s/nsRefPtr ?</RefPtr</g;   # handle declarations and variables
'

 # Handle a special friend declaration in gfx/layers/AtomicRefCountedWithFinalize.h.
perl -p -i -e 's/::nsRefPtr;/::RefPtr;/' gfx/layers/AtomicRefCountedWithFinalize.h

 # Handle nsRefPtr.h itself, a couple places that define constructors
 # from nsRefPtr, and code generators specially.  We do this here, rather
 # than indiscriminantly s/nsRefPtr/RefPtr/, because that would rename
 # things like nsRefPtrHashtable.
perl -p -i -e 's/nsRefPtr/RefPtr/g' \
     mfbt/nsRefPtr.h \
     xpcom/glue/nsCOMPtr.h \
     xpcom/base/OwningNonNull.h \
     ipc/ipdl/ipdl/lower.py \
     ipc/ipdl/ipdl/builtin.py \
     dom/bindings/Codegen.py \
     python/lldbutils/lldbutils/utils.py

 # In our indiscriminate substitution above, we renamed
 # nsRefPtrGetterAddRefs, the class behind getter_AddRefs.  Fix that up.
find . -name '*.cpp' -o -name '*.h' -o -name '*.idl' | \
    xargs perl -p -i -e 's/nsRefPtrGetterAddRefs/RefPtrGetterAddRefs/g'

if [ -d .git ]; then
    git mv mfbt/nsRefPtr.h mfbt/RefPtr.h
else
    hg mv mfbt/nsRefPtr.h mfbt/RefPtr.h
fi
2015-10-18 01:24:48 -04:00
Nathan Froyd
5254890206 Bug 1207245 - part 3 - switch all uses of mozilla::RefPtr<T> to nsRefPtr<T>; r=ehsan
This commit was generated using the following script, executed at the
top level of a typical source code checkout.

 # Don't modify select files in mfbt/ because it's not worth trying to
 # tease out the dependencies currently.
 #
 # Don't modify anything in media/gmp-clearkey/0.1/ because those files
 # use their own RefPtr, defined in their own RefCounted.h.
find . -name '*.cpp' -o -name '*.h' -o -name '*.mm' -o -name '*.idl'| \
    grep -v 'mfbt/RefPtr.h' | \
    grep -v 'mfbt/nsRefPtr.h' | \
    grep -v 'mfbt/RefCounted.h' | \
    grep -v 'media/gmp-clearkey/0.1/' | \
    xargs perl -p -i -e '
 s/mozilla::RefPtr/nsRefPtr/g; # handle declarations in headers
 s/\bRefPtr</nsRefPtr</g; # handle local variables in functions
 s#mozilla/RefPtr.h#mozilla/nsRefPtr.h#; # handle #includes
 s#mfbt/RefPtr.h#mfbt/nsRefPtr.h#;       # handle strange #includes
'

 # |using mozilla::RefPtr;| is OK; |using nsRefPtr;| is invalid syntax.
find . -name '*.cpp' -o -name '*.mm' | xargs sed -i -e '/using nsRefPtr/d'

 # RefPtr.h used |byRef| for dealing with COM-style outparams.
 # nsRefPtr.h uses |getter_AddRefs|.
 # Fixup that mismatch.
find . -name '*.cpp' -o -name '*.h'| \
    xargs perl -p -i -e 's/byRef/getter_AddRefs/g'
2015-10-18 00:40:10 -04:00
Lee Salzman
9d76d93e62 Bug 1214759 - backport SkDashPathEffect::asPoints fix from upstream Skia. r=jmuizelaar 2015-10-14 13:39:03 -04:00
Lee Salzman
c4abbadc17 Bug 1210493 - enlarge stroke bounds by line width when doing a quick-reject in SkDraw::drawRect. r=jmuizelaar 2015-10-01 14:24:43 -04:00
David Major
f2cfb0dde6 Bug 1149318 - Fix the calling convention on SkGetUserDefaultLocaleNameProc. r=eihrul
I believe this issue was introduced when 8124bf072c was incorrectly pulled in as https://hg.mozilla.org/mozilla-central/rev/3a3820a17f0b, so this needs to be fixed only in the Mozilla repo.
2015-09-30 14:50:28 -04:00
Lee Salzman
5b86beef4f Bug 1004489 - propagate Cairo font AA settings to Skia font. r=gw280 2015-09-02 14:12:32 -04:00
Nicholas Nethercote
69d088e45f Bug 1198334 (part 1) - Replace the opt-in FAIL_ON_WARNINGS with the opt-out ALLOW_COMPILER_WARNINGS. r=glandium.
The patch removes 455 occurrences of FAIL_ON_WARNINGS from moz.build files, and
adds 78 instances of ALLOW_COMPILER_WARNINGS. About half of those 78 are in
code we control and which should be removable with a little effort.
2015-08-27 20:44:53 -07:00
Nathan Froyd
729eead5ee Bug 1193470 - silence more warnings when building skia with clang/g++; r=glandium
- Several of skia's functions are marked as deprecated, but when
  compiling Gecko, we don't really care about Skia's internal use of
  deprecated functions.

- clang warns about unused private fields, which is a valuable warning
  for Skia developers, but not a useful warning to see during Gecko
  compilations.

- Various macros in Skia are redefined as a result of using unified
  compilation.  clang has a -Wno switch for turning this off; gcc also
  warns about it, but does not have a separate switch, so we can't do
  anything about it.
2015-08-11 23:23:26 -04:00
Nathan Froyd
481fadc1ee Bug 1192070 - avoid complaining about missing override keywords in skia; r=glandium 2015-08-07 01:34:57 -04:00
Lee Salzman
d7eac98ff6 Bug 1188462 - Fix inclusion of skia headers to use correct directory prefixes. r=jrmuizel 2015-07-29 16:31:40 -04:00
Lee Salzman
cf88f83a89 Bug 1188462 - Add SKIA_INCLUDES list for adding Skia to header search path. r=jrmuizel 2015-07-30 12:05:22 -04:00
Lee Salzman
53f97f2f5a Bug 1188462 - Rename gfx/skia/trunk directory to gfx/skia/skia. r=jrmuizel 2015-07-30 11:51:29 -04:00
Ted Mielczarek
74d6542c83 bug 1171642 - Disable some skia arm assembly for iOS. r=gw280 2015-06-15 11:47:43 -04:00
Ted Mielczarek
dc2e771fd0 bug 1170988 - Fix skia to build for iOS. r=gw280 2015-02-05 15:10:28 -05:00
David Major
ed6ca74f4f Bug 1157835: Remove the MSVC_ENABLE_PGO flag from the build system. r=glandium 2015-04-27 19:59:27 -04:00
Markus Stange
ecdb410cfd Bug 1154347 - Don't set -fomit-frame-pointer on all of skia. r=glandium, r=gw280 2015-04-21 13:57:57 -04:00
Brian Smith
da84176b80 Bug 1119776, Part 10: Avoid defining snprintf when MSVC provides it (skia), r=gw280 2015-03-31 09:53:37 -10:00
Mike Hommey
95e047925a Bug 1138293 - Use malloc/free/realloc/calloc instead of moz_malloc/moz_free/moz_realloc/moz_calloc. r=njn
The distinction between moz_malloc/moz_free and malloc/free is not
interesting. We are inconsistent in our use of one or the other, and
I wouldn't be surprised if we are mixing them anyways.
2015-03-31 12:32:49 +09:00
Mike Hommey
5e7eedbb34 Bug 1136958 - Remove duplicate SkDiscardableMemory_none.cpp from gfx/skia/moz.build. r=gps
And to do so, cleanup gfx/skia/generate_mozbuild.py a little.
2015-03-04 14:39:28 +09:00
George Wright
357934ffbb Bug 1137044 - Clarify README_SKIA a bit r=me DONTBUILD 2015-02-26 12:25:51 -05:00
Ehsan Akhgari
39145c283d Bug 1118419 - Mark virtual overridden functions as MOZ_OVERRIDE in graphics; r=jrmuizel 2015-01-07 10:09:17 -05:00
Ehsan Akhgari
7a108ca438 Bug 1117026 - Cherry-pick commit a10742c of upstream skia code; r=upstream 2015-01-02 00:11:43 -05:00
Ehsan Akhgari
2eef0c8c09 Bug 1111786 - Cherry-pick the skia 6f90475632b0ff8e9e83916ee6373d3c26cc9284 commit; r=upstream
Rewrite NaN checks in terms of SkScalarIsNaN()


We are trying to replace Skia's NaN checker with our own in Mozilla,
so it would be nice to have to patch a single place by making sure
these NaN checks used SkScalarIsNaN().
2014-12-15 16:17:59 -05:00
Jacek Caban
e31b15a5d3 Bug 1094141 - Don't export skia APIs from xul.dll. r=glandium 2014-11-13 13:09:48 +01:00
Neil Rashbrook
3c332288c4 Bug 1053652 - Cannot open include file: 'dwrite_1.h'. r=gw280
Imports/Transplants upstream https://codereview.chromium.org/552383002/
2014-10-03 01:54:23 -04:00
Walter Litwinczyk
e77b17e75b Bug 1065032 - [Skia] Remove Moz2D requirement for SK_SUPPORT_LEGACY_GETTOPDEVICE. r=gw280 2014-09-18 13:13:53 -07:00
Ehsan Akhgari
5ab2b0c28e Bug 1068201 - Build SkBlurImage_opts_SSE4.cpp with SSE4.1 support on clang-cl; r=jrmuizel 2014-09-16 15:36:34 -04:00
Jacek Caban
0688dffb9f Bug 1060361 - Fix skia compilation on mingw. r=gwright 2014-09-16 12:10:05 +02:00
Ehsan Akhgari
c653ceb746 Bug 1067404 - Do not expect a copysign function to be defined in <cmath> with clang-cl; r=upstream
clang-cl defines __cplusplus to 201103L, but it uses the runtime library
provided by MSVC, so the copysign function will not be available there.

Review URL: https://codereview.chromium.org/526813002
2014-09-15 11:03:14 -04:00
George Wright
fbbc054e29 Bug 996108 - Enable even rounding when rasterising r=jrmuizel 2014-09-02 12:16:21 -04:00
Jeff Muizelaar
c36efa6a8c Bug 996108 - Use even rounding for better results when converting from scalar to fdot6 r=upstream 2014-09-02 12:15:27 -04:00
Ehsan Akhgari
63920195ff Bug 1061269 - Do not try to build the SkBlitRow assembly implementation with clang-cl; r=snorp
clang-cl builds use ml.exe which is the MASM assembler, same as the one
we use for MSVC builds.  In that respect, clang-cl and gcc builds are
quite different.
2014-09-02 10:23:51 -04:00
George Wright
b31b7b0d74 Bug 1055265 - Correct the SkColorType used for 32-bit in SkANP r=snorp 2014-08-28 15:31:01 -04:00
Walter Litwinczyk
9b66615f0b Bug 1046921 - Remove usage of legacy Skia API, SK_SUPPORT_LEGACY_BITMAP_CONFIG. r=gw280 2014-08-15 10:02:46 -07:00
Nathan Froyd
2374d4767a Bug 1055281 - check for existence of paths in LOCAL_INCLUDES in moz.build; r=mshal 2014-08-20 11:51:33 -04:00
George Wright
6738a7a381 Bug 1053492 - [Skia] Use heap allocation for buffers that will end up with the 3D API r=mattwoodrow,upstream 2014-08-13 23:14:31 -04:00
George Wright
722b633e0e Bug 1017113 - Remove unnecessary files that slipped in accidentally r=nobody DONTBUILD 2014-08-13 13:27:44 -04:00
George Wright
3967df73d8 Bug 1052813 - Add -fomit-frame-pointer to CXXFLAGS for Skia r=mattwoodrow 2014-08-12 17:14:43 -04:00
George Wright
4cd69975be [PATCH 13/15] Bug 1017113 - Ensure SkDebugf is exported from Skia r=upstream 2014-07-31 18:52:22 -04:00
George Wright
4352f7b7bf [PATCH 12/15] Bug 1017113 - Explicitly typedef GetUserDefaultLocaleName as WINVER may not be high enough when compiling to allow visibility of the function prototype in windows.h r=upstream 2014-07-29 15:19:53 -04:00
George Wright
7e2239fb6b [PATCH 11/15] Bug 1017113 - Re-apply bug 985217 - Stub out CreateTypeface* for Mac r=snorp 2014-03-17 13:17:49 -04:00
George Wright
e435f9d111 [PATCH 10/15] Bug 1017113 - Include SkPreConfig.h to ensure that SK_BUILD_FOR_MAC is defined as necessary r=mattwoodrow 2014-07-28 20:53:00 -04:00
George Wright
69b2e46f13 [PATCH 09/15] Bug 1017113 - Update buildsystem for new Skia r=snorp 2014-07-27 20:56:09 -04:00
George Wright
9a73c6758e [PATCH 08/15] Bug 1017113 - Update Skia to 2014-07-28 r=upstream 2014-07-28 15:06:12 -04:00
George Wright
edd15b1723 [PATCH 07/15] Bug 1017113 - Add some legacy defines to SkUserConfig.h r=mattwoodrow 2014-07-27 20:58:09 -04:00
George Wright
9138e027c8 [PATCH 06/15] Bug 1017113 - Update SkFontHost_android_old.cpp and SkFontHost_cairo.cpp to cater for Skia API changes r=mattwoodrow 2014-07-27 20:57:19 -04:00
Mike Hommey
22645fd530 Bug 901208 - Fix Skia for ARM v4t. r=derf 2014-08-04 09:04:06 +09:00