Граф коммитов

314 Коммитов

Автор SHA1 Сообщение Дата
Lee Salzman 8d53811f32 Bug 1309272, part 3 - Allow DrawTargetSkia to work without an SkSurface. r=mchang
MozReview-Commit-ID: JczfiM0eIct

--HG--
extra : rebase_source : 8f14d4a8c2cbbc349cf81b6c31859090a9511dcf
2016-10-26 13:41:07 -04:00
Jonathan Watt 734666ee13 Bug 1309272, part 2 - Support the creation of a DrawTargetSkia for an SkCanvas. r=lsalzman
--HG--
extra : rebase_source : 777593bf3f591445e79315bf6bb4154d1017a405
2016-10-26 19:23:07 +01:00
Lee Salzman 926f3f5746 Bug 1299435 - part 2 - fix Moz2d for Skia m55 update. r=mchang
MozReview-Commit-ID: 8jRzOaS5vqy
2016-10-24 22:40:59 -04:00
Wes Kocher 951194ee45 Backed out 6 changesets (bug 1299435) for windows reftest failures a=backout
Backed out changeset 0d587a1cab8f (bug 1299435)
Backed out changeset 3ab9d3cb13aa (bug 1299435)
Backed out changeset 1ed742f88f49 (bug 1299435)
Backed out changeset 51ad497c7ac2 (bug 1299435)
Backed out changeset 06ca6acef0a2 (bug 1299435)
Backed out changeset ebd4625e101a (bug 1299435)

--HG--
rename : gfx/skia/skia/src/animator/SkCondensedDebug.inc => gfx/skia/skia/src/animator/SkCondensedDebug.cpp
rename : gfx/skia/skia/src/animator/SkCondensedRelease.inc => gfx/skia/skia/src/animator/SkCondensedRelease.cpp
2016-10-24 16:45:46 -07:00
Lee Salzman ab9cf08d5a Bug 1299435 - part 2 - fix Moz2d for Skia m55 update. r=mchang
MozReview-Commit-ID: 8jRzOaS5vqy
2016-10-24 15:22:20 -04:00
Mason Chang cd84eadb22 Bug 1258751: Delete the CoreGraphics backend. r=mstange 2016-10-18 23:22:44 -04:00
Lee Salzman c09d407ee8 Bug 1301136 - fix buggy pixel offset in DrawTargetSkia VerifyRGBXCorners. r=me
MozReview-Commit-ID: KIksLQ44JfA
2016-09-28 19:20:13 -04:00
Lee Salzman 8869fd86cf Bug 1029705 - allow clipping to a list of device-space rectangles (a region) in DrawTarget via PushDeviceSpaceClipRects. r=bas
MozReview-Commit-ID: 8zM116zB0NB
2016-09-21 17:03:20 -04:00
Mason Chang 196df029f8 Bug 1299903. Force GDI Classic rendering for specific fonts with skia on windows. r=lsalzman 2016-09-16 12:25:42 -07:00
Mason Chang 053689b4b2 Bug 1301524 - Add a preference to disable AA on text. r=lsalzman 2016-09-16 12:11:35 -07:00
Mason Chang c2791e58ec Bug 1301920. Call MarkChanged before getting bitmap for surface in skia. r=lsalzman 2016-09-16 08:03:48 -07:00
Mason Chang f76f0efdc8 Bug 1300025. Fix build bustage on non-windows. r=me. CLOSED TREE 2016-09-08 09:55:42 -07:00
Mason Chang b4407fab22 Bug 1300025. Use embedded bitmaps in CJK fonts with skia on Windows. r=lsalzman 2016-09-08 09:34:10 -07:00
Lee Salzman 5abbe17848 Bug 1301136 - make Skia VerifyRGBXFormat assertions give more useful information. r=mchang
MozReview-Commit-ID: 2En9Unt2LMM
2016-09-07 14:42:15 -04:00
Mason Chang e6c63d0931 Bug 1298484. Use cleartype and convert to grayscale AA for skia windows fonts if cleartype is disabled system wide. r=lsalzman 2016-09-02 15:00:29 -07:00
Lee Salzman 8e129f50b3 Bug 1299738 - warn instead of crash if DrawTargetSkia's GetBitmapForSurface fails. r=mchang 2016-09-01 21:17:03 -04:00
Lee Salzman 0716a90344 Bug 1299485 - fix USE_SKIA_GPU ifdefs. r=mchang 2016-09-01 21:10:39 -04:00
Ethan Lin c6d0866a58 Bug 1297031 - Force to use group in DrawTargetSkia::DrawSurface when colorType is kAlpha_8_SkColorType. r=lsalzman
MozReview-Commit-ID: 7It9JP4WLh5
2016-08-26 12:42:12 +08:00
Lee Salzman 0de02db832 Bug 1297201 - apply offset after pattern matrix in DrawTargetSkia::MaskSurface. r=mchang
MozReview-Commit-ID: 9fjb0jAhlm3
2016-08-25 14:27:24 -04:00
Lee Salzman 0519f8e461 Bug 1294337 - add DrawSurface fast path for DrawTargetSkia::FillRect. r=mchang
MozReview-Commit-ID: LSEvJKmKi2n
2016-08-23 13:36:45 -04:00
Lee Salzman 1c19e4af27 Bug 1296301 - use getClipDeviceBounds instead of getClipBounds in DrawTargetSkia. r=jrmuizel
MozReview-Commit-ID: BEIAGS0hLzB
2016-08-18 11:25:38 -04: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
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
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
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
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
Ethan Lin ac71a5c4d7 Bug 1287652 - Add error handling while colorstop is empty. r=mchang 2016-07-19 00:59:00 -04: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
Lee Salzman 5b4d7640b1 Bug 1280635 - use drawBitmap instead of drawBitmapRect for DrawTargetSkia::CopySurface. r=jrmuizel 2016-06-21 16:14:28 -04: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
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
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
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 493ea699e5 Bug 1265131, part 3 - update Moz2d for Skia m51. r=jrmuizel 2016-04-28 22:55:27 -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
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
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
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
Lee Salzman 4c1b0ad4f8 Bug 1259621 - use AlphaBoxBlur in DrawTargetSkia::DrawSurfaceWithShadow. r=mchang 2016-03-25 22:14:50 -04: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
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
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
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
Mason Chang 4ab8d2c595 Bug 1239152 Memset RGBX surfaces to opaque white. r=nical 2016-02-17 07:34:37 -08: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
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
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
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
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
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
Lee Salzman f9d4573bec Bug 1082598 - Part 2: Fix Moz2D Skia usage for Skia update. r=jrmuizel 2015-12-18 13:53:25 -05: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
Mason Chang 4cd6379278 Bug 1230357. Enable subpixel text on skia content backends. r=lsalzman 2015-12-16 12:43:49 -08: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
Lee Salzman b8d98433fb Bug 1225977 - fix DrawTargetSkia::MaskSurface with non-zero offset. r=jmuizelaar 2015-11-19 10:25:15 -05: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
Nathan Froyd 01583602a9 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

--HG--
rename : mfbt/nsRefPtr.h => mfbt/RefPtr.h
2015-10-18 01:24:48 -04:00
Nathan Froyd 583afa0965 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 dd33849286 Bug 998042 - 4-byte align Skia surfaces to interoperate with Cairo r=jrmuizel 2015-10-08 12:16:46 -04:00
Lee Salzman 3188abf696 Bug 1201272 - use a SkBlurImageFilter for Skia canvas shadows so we can better control composite operations. r=gwright
--HG--
extra : rebase_source : 3c9269cd9fa28f0b8f4c30c376f5a573e2851e7e
2015-09-04 15:29:11 -04:00
Lee Salzman 01cdb40ced Bug 1004489 - propagate Cairo font AA settings to Skia font. r=gw280 2015-09-02 14:12:32 -04:00
Lee Salzman f15be30759 Bug 1188462 - Fix inclusion of skia headers to use correct directory prefixes. r=jrmuizel 2015-07-29 16:31:40 -04:00
Matt Woodrow 2d1a5c1f9d Bug 1034370 - Make sure we release the SkImageFilter in DrawTargetSkia::DrawSurfaceWithShadow. r=gw280 2015-07-29 16:35:55 -04:00
Wes Kocher ec1078c65a Backed out 6 changesets (bug 1150944, bug 1034370) for build failures in WebGLContext.cpp CLOSED TREE
Backed out changeset e2a6160242e5 (bug 1150944)
Backed out changeset 1c510537d20b (bug 1150944)
Backed out changeset 7ae813666ed5 (bug 1150944)
Backed out changeset 2f29ac2e31cd (bug 1150944)
Backed out changeset bf7681b1567e (bug 1150944)
Backed out changeset 79c6b8d014d2 (bug 1034370)
2015-07-29 14:16:17 -07:00
Matt Woodrow cd44f4ee9d Bug 1034370 - Make sure we release the SkImageFilter in DrawTargetSkia::DrawSurfaceWithShadow. r=gw280 2015-07-29 16:35:55 -04:00
Birunthan Mohanathas a8939590de Bug 1182996 - Fix and add missing namespace comments. rs=ehsan
The bulk of this commit was generated by running:

  run-clang-tidy.py \
    -checks='-*,llvm-namespace-comment' \
    -header-filter=^/.../mozilla-central/.* \
    -fix
2015-07-13 08:25:42 -07:00
Nathan Froyd 974d8120f2 Bug 1161627 - part 2 - machine-convert TemporaryRef<T> to already_AddRefed<T>; r=ehsan
This conversion was done with the script:

  find . -name '*.cpp' -o -name '*.h' -o -name '*.mm' -o -name '*.idl' | \
    egrep -v 'cairo-win32-refptr.h|RefPtr.h|TestRefPtr.cpp' | \
    xargs sed -i -e 's/mozilla::TemporaryRef</already_AddRefed</g' \
                 -e 's/TemporaryRef</already_AddRefed</g'

Manual fixups were performed in the following instances:

- We handled mfbt/RefPtr.h manually so as to not convert TemporaryRef itself
  into already_AddRefed.

- The following files had explicit Move() calls added to make up for the lack
  of a copy constructor on already_AddRefed:

  dom/base/ImageEncoder.cpp
  dom/media/MediaTaskQueue.{h,cpp}
  dom/media/webaudio/PannerNode.cpp

- A redundant overload for MediaTaskQueue::Dispatch was deleted.

- A few manual fixups were required in mfbt/tests/TestRefPtr.cpp.

- Comments, using declarations, and forward declarations relating to
  TemporaryRef in dom/canvas/ and gfx/layers/ were changed to refer to
  already_AddRefed.
2015-06-17 10:00:52 -04:00
Carsten "Tomcat" Book 6838712a26 Backed out changeset af2af798ad8f (bug 1165710) for OS X 10.6 crashes 2015-05-26 09:00:19 +02:00
Matt Woodrow 1dada312ad Bug 1165710 - Make DrawTargetSkia own its snapshot instead of the other way around. r=gw280
--HG--
extra : rebase_source : 3183fae0715d29a6ebc6eaa5f649a222cc0d4470
2015-05-26 15:10:25 +12:00
Nathan Froyd c24f5f4e7c Bug 1116905 - part 3 - remove dependence on implicit conversion from T* to TemporaryRef<T>, gfx changes; r=jrmuizel 2015-04-30 15:20:30 -04:00
Markus Stange 6d1154e100 Bug 1160789 - Make DrawTargetSkia support subpixel antialiasing for text. r=jrmuizel
--HG--
extra : rebase_source : e9b2808120831abbe6fba630b1a5bd0263583d18
2015-05-04 13:23:54 -04:00
Lee Salzman e38cad0b37 Bug 1127752 - fixes for using Skia and OMTC with GTK3. r=jrmuizel 2015-05-13 11:54:17 +09:00
Markus Stange a3d313d208 Bug 1097776 - Don't leak the SkBitmapDevice. r=jrmuizel 2014-11-18 17:22:01 -05:00
chiajung hung 4b10f218ab Bug 880114 - Enhance render video-to-SkiaGL performance by GPU-based color space conversioni, r=gw280 2014-11-11 21:14:00 +01:00
Chris Jones 54281ff17a Bug 1082997 - Add an option to explicitly disable skia-gpu and fix the build when it's disabled. r=mattwoodrow 2014-10-14 20:55:37 -07:00
jdashg ca85c23987 Bug 1066280 - Review fixes. - r=kamidphish,mattwoodrow 2014-10-08 13:04:19 -07:00
jdashg fbd3252fc0 Bug 1066280 - Fixes for SurfaceStream removal. - r=kamidphish,mattwoodrow 2014-10-07 21:16:14 -07:00
Matt Woodrow c336e18dee Bug 1062723 - Part 4: Implement source clipping for DrawTargetSkia. r=gw280
--HG--
extra : rebase_source : 8dc98b36fa84fd23e76daf9251f81960a56b2ca0
2014-09-12 17:18:22 +12:00
George Wright ff91eeec59 Bug 1061241 - Unref our LocalMatrixShader when building our mask SkPaint r=mattwoodrow 2014-09-02 15:18:15 -04:00
Wes Kocher 99dc2ed530 Backed out changeset 89f165978438 (bug 1061241) for mochitest-4 orange 2014-09-02 18:56:40 -07:00
George Wright ca1463059f Bug 1061241 - Unref our LocalMatrixShader when building our mask SkPaint r=mattwoodrow 2014-09-02 15:18:15 -04:00
George Wright 2131560b58 [PATCH 15/15] Bug 1017113 - Use RefPtrSkia instead of SkRefPtr as it no longer exists. r=mattwoodrow 2014-08-06 12:01:44 -04:00
George Wright b10548389f [PATCH 03/15] Bug 1017113 - Update DrawTargetSkia to use the new SkDropShadowImageFilter::Create() r=mattwoodrow 2014-07-27 20:51:32 -04:00
George Wright 9b00d18c49 [PATCH 02/15] Bug 1017113 - Calling save on an SkCanvas no longer takes any parameters r=mattwoodrow 2014-07-27 20:51:09 -04:00
George Wright 2ba75ff85d [PATCH 01/15] Bug 1043745 - Use SkColorType and SkImageInfo instead of SkBitmap::Config r=mattwoodrow 2014-07-27 20:47:43 -04:00
George Wright 258cd60ddb Bug 1034257 - Implement CreateSourceSurfaceForNativeSurface for Cairo surface types, to enable Xlib surfaces to be drawn properly when using Skia content rendering r=jrmuizel 2014-07-03 17:06:48 -04:00
Ryan VanderMeulen 3f9e56aab8 Backed out changeset 3f079d36c620 (bug 1034257) for non-unified bustage. 2014-07-03 20:36:14 -04:00
George Wright 4a6bad38d6 Bug 1034257 - Implement CreateSourceSurfaceForNativeSurface for Cairo surface types, to enable Xlib surfaces to be drawn properly when using Skia content rendering r=jrmuizel 2014-07-03 17:06:48 -04:00
Walter Litwinczyk 62a5a3ddf4 Bug 1004375 - Removed use of legacy skia compatible device API - r=gw280 2014-06-24 15:35:07 -07:00
Jeff Muizelaar 79b9bee6a7 Bug 1025133. Be more consistent about rounding colors with the skia backend. r=mwoodrow
--HG--
rename : toolkit/devtools/discovery/tests/moz.build => toolkit/devtools/moz.build
extra : rebase_source : 2db3c43532a30db90326c3903d8fe5c96d077d97
2014-06-18 10:16:30 -04:00
Jonathan Watt 11950fdff5 Bug 1027763, part 4 - Add a new DrawTarget::GetType() method and three generic type enum values for it to return. r=Bas, r=jrmuizel 2014-06-27 10:17:49 +01:00
Walter Litwinczyk 96d1e15fd8 Bug 1004374 - Removed Moz2D usage of deprecated skia api: SK_SUPPORT_LEGACY_LAYERRASTERIZER_API. r=gw280 2014-06-20 11:47:27 -07:00
Jonathan Watt c90e727466 Bug 1024983 - Stop addrefing and releasing excessively in the Moz2D code in functions that return a TemporaryRef. r=mstange 2014-06-13 17:09:23 +01:00
Jeff Muizelaar d0cf3e22fa Bug 1023691. Support Data surfaces in DrawTargetSkia::CopySurface. r=mwoodrow
--HG--
extra : rebase_source : 99278192158953367d79c9b87470b69546d12d09
2014-06-11 11:38:41 -04:00
Jeff Muizelaar 6647b1a976 Bug 1020629. DrawTargetSkia::CopySurface is broken with A8 surfaces. r=gw280
If we clear the surface before doing drawBitmap we end up with
the right results. This also adds some writePixels code
that we could try out later.

--HG--
rename : content/base/test/xcsp/chrome.ini => content/base/test/csp/chrome.ini
rename : content/base/test/xcsp/file_CSP.sjs => content/base/test/csp/file_CSP.sjs
rename : content/base/test/xcsp/file_CSP_evalscript_main.html => content/base/test/csp/file_CSP_evalscript_main.html
rename : content/base/test/xcsp/file_CSP_evalscript_main.html^headers^ => content/base/test/csp/file_CSP_evalscript_main.html^headers^
rename : content/base/test/xcsp/file_CSP_evalscript_main.js => content/base/test/csp/file_CSP_evalscript_main.js
rename : content/base/test/xcsp/file_CSP_evalscript_main_getCRMFRequest.html => content/base/test/csp/file_CSP_evalscript_main_getCRMFRequest.html
rename : content/base/test/xcsp/file_CSP_evalscript_main_getCRMFRequest.html^headers^ => content/base/test/csp/file_CSP_evalscript_main_getCRMFRequest.html^headers^
rename : content/base/test/xcsp/file_CSP_evalscript_main_getCRMFRequest.js => content/base/test/csp/file_CSP_evalscript_main_getCRMFRequest.js
rename : content/base/test/xcsp/file_CSP_evalscript_no_CSP_at_all.html => content/base/test/csp/file_CSP_evalscript_no_CSP_at_all.html
rename : content/base/test/xcsp/file_CSP_evalscript_no_CSP_at_all.html^headers^ => content/base/test/csp/file_CSP_evalscript_no_CSP_at_all.html^headers^
rename : content/base/test/xcsp/file_CSP_evalscript_no_CSP_at_all.js => content/base/test/csp/file_CSP_evalscript_no_CSP_at_all.js
rename : content/base/test/xcsp/file_CSP_frameancestors.sjs => content/base/test/csp/file_CSP_frameancestors.sjs
rename : content/base/test/xcsp/file_CSP_frameancestors_main.html => content/base/test/csp/file_CSP_frameancestors_main.html
rename : content/base/test/xcsp/file_CSP_frameancestors_main.js => content/base/test/csp/file_CSP_frameancestors_main.js
rename : content/base/test/xcsp/file_CSP_inlinescript_main.html => content/base/test/csp/file_CSP_inlinescript_main.html
rename : content/base/test/xcsp/file_CSP_inlinescript_main.html^headers^ => content/base/test/csp/file_CSP_inlinescript_main.html^headers^
rename : content/base/test/xcsp/file_CSP_inlinestyle_main.html => content/base/test/csp/file_CSP_inlinestyle_main.html
rename : content/base/test/xcsp/file_CSP_inlinestyle_main.html^headers^ => content/base/test/csp/file_CSP_inlinestyle_main.html^headers^
rename : content/base/test/xcsp/file_CSP_main.html => content/base/test/csp/file_CSP_main.html
rename : content/base/test/xcsp/file_CSP_main.html^headers^ => content/base/test/csp/file_CSP_main.html^headers^
rename : content/base/test/xcsp/file_CSP_main.js => content/base/test/csp/file_CSP_main.js
rename : content/base/test/xcsp/file_csp_bug768029.html => content/base/test/csp/file_csp_bug768029.html
rename : content/base/test/xcsp/file_csp_bug768029.sjs => content/base/test/csp/file_csp_bug768029.sjs
rename : content/base/test/xcsp/file_csp_bug773891.html => content/base/test/csp/file_csp_bug773891.html
rename : content/base/test/xcsp/file_csp_bug773891.sjs => content/base/test/csp/file_csp_bug773891.sjs
rename : content/base/test/xcsp/file_csp_redirects_main.html => content/base/test/csp/file_csp_redirects_main.html
rename : content/base/test/xcsp/file_csp_redirects_page.sjs => content/base/test/csp/file_csp_redirects_page.sjs
rename : content/base/test/xcsp/file_csp_redirects_resource.sjs => content/base/test/csp/file_csp_redirects_resource.sjs
rename : content/base/test/xcsp/file_csp_report.sjs => content/base/test/csp/file_csp_report.sjs
rename : content/base/test/xcsp/file_multi_policy_injection_bypass.html => content/base/test/csp/file_multi_policy_injection_bypass.html
rename : content/base/test/xcsp/file_multi_policy_injection_bypass.html^headers^ => content/base/test/csp/file_multi_policy_injection_bypass.html^headers^
rename : content/base/test/xcsp/file_multi_policy_injection_bypass_2.html => content/base/test/csp/file_multi_policy_injection_bypass_2.html
rename : content/base/test/xcsp/file_multi_policy_injection_bypass_2.html^headers^ => content/base/test/csp/file_multi_policy_injection_bypass_2.html^headers^
rename : content/base/test/xcsp/file_redirect_content.sjs => content/base/test/csp/file_redirect_content.sjs
rename : content/base/test/xcsp/file_redirect_report.sjs => content/base/test/csp/file_redirect_report.sjs
rename : content/base/test/xcsp/file_subframe_run_js_if_allowed.html => content/base/test/csp/file_subframe_run_js_if_allowed.html
rename : content/base/test/xcsp/file_subframe_run_js_if_allowed.html^headers^ => content/base/test/csp/file_subframe_run_js_if_allowed.html^headers^
rename : content/base/test/xcsp/mochitest.ini => content/base/test/csp/mochitest.ini
rename : content/base/test/xcsp/moz.build => content/base/test/csp/moz.build
rename : content/base/test/xcsp/test_301_redirect.html => content/base/test/csp/test_301_redirect.html
rename : content/base/test/xcsp/test_302_redirect.html => content/base/test/csp/test_302_redirect.html
rename : content/base/test/xcsp/test_303_redirect.html => content/base/test/csp/test_303_redirect.html
rename : content/base/test/xcsp/test_307_redirect.html => content/base/test/csp/test_307_redirect.html
rename : content/base/test/xcsp/test_CSP.html => content/base/test/csp/test_CSP.html
rename : content/base/test/xcsp/test_CSP_evalscript.html => content/base/test/csp/test_CSP_evalscript.html
rename : content/base/test/xcsp/test_CSP_evalscript_getCRMFRequest.html => content/base/test/csp/test_CSP_evalscript_getCRMFRequest.html
rename : content/base/test/xcsp/test_CSP_frameancestors.html => content/base/test/csp/test_CSP_frameancestors.html
rename : content/base/test/xcsp/test_CSP_inlinescript.html => content/base/test/csp/test_CSP_inlinescript.html
rename : content/base/test/xcsp/test_CSP_inlinestyle.html => content/base/test/csp/test_CSP_inlinestyle.html
rename : content/base/test/xcsp/test_csp_bug768029.html => content/base/test/csp/test_csp_bug768029.html
rename : content/base/test/xcsp/test_csp_bug773891.html => content/base/test/csp/test_csp_bug773891.html
rename : content/base/test/xcsp/test_csp_redirects.html => content/base/test/csp/test_csp_redirects.html
rename : content/base/test/xcsp/test_multi_policy_injection_bypass.html => content/base/test/csp/test_multi_policy_injection_bypass.html
rename : content/base/test/xcsp/test_subframe_run_js_if_allowed.html => content/base/test/csp/test_subframe_run_js_if_allowed.html
rename : js/src/parjs-benchmarks/obsolete/README.txt => js/src/parjs-benchmarks/README.txt
extra : rebase_source : 5dcfaa47c4e4305f2c2c4fdec46cf68e07fc9166
2014-06-10 23:42:32 -04:00
Matt Woodrow 0c71819122 Bug 1011865 - Create optimized source surfaces when skia-gl is enabled since we want to cache the GPU texture. r=gw280 2014-05-23 17:09:34 +12:00
Jeff Muizelaar 7db7c28ba4 Bug 1011062. Add a fast path to DrawTargetSkia::MaskSurface(). r=gw280
This should speed things up significantly by avoid a bunch
of unneeded work.

--HG--
extra : rebase_source : 1194a825a5a9e5e86a94ba6c6c67f959051f1da3
2014-05-16 21:31:43 -04:00
Jeff Muizelaar adc31c670f Bug 1011011. DrawTargetSkia: Round alpha properly when creating Paint. r=mattwoodrow
This fixes some off by one errors in content reftests

--HG--
extra : rebase_source : 38a7aaed5600431f2c75005e1b71b8e572c3685d
2014-05-15 22:12:42 -04:00
Matt Woodrow 6b0c6f1f73 Bug 996929 - Implement OptimizeSourceSurface for all Moz2D backends. r=Bas 2014-04-17 12:45:25 +12:00
Jonathan Watt fcf60755cc Bug 995832 - Make DrawTargetSkia::DrawSurface accept any surface type. r=gw280 2014-04-15 13:55:48 +01:00
Matt Woodrow e378b02005 Bug 990357 - Don't push layer for OPERATOR_SOURCE when the drawing operation covers the entire clip for DrawTargetSkia. r=gw280 2014-04-01 16:59:20 +08:00
Ryan VanderMeulen a852688935 Backed out changeset 32ce387c5487 (bug 987010) for crashes.
CLOSED TREE
2014-03-26 15:58:07 -04:00
James Willcox 8f21634db7 Bug 987010 - Ignore alpha in Skia BGRX source surfaces r=gwright 2014-03-26 13:22:42 -05:00
James Willcox 83c16f28e8 Bug 981621 - Don't crash if we fail to create SkiaGL backing texture r=gwright 2014-03-26 13:21:50 -05:00
Ed Morley b6b21ffe8c Backed out changeset 08c58214f01f (bug 987010) for xpcshell crashes; CLOSED TREE 2014-03-26 15:15:18 +00:00
Ed Morley 9ba6fe2dd0 Backed out changeset a0827d7c8a02 (bug 981621) 2014-03-26 15:14:57 +00:00
James Willcox 41af8c05dd Bug 981621 - Don't crash if we fail to create SkiaGL backing texture r=gwright 2014-03-26 09:10:12 -05:00
James Willcox 41323022ff Bug 987010 - Ignore alpha in Skia BGRX source surfaces r=gwright 2014-03-26 09:08:27 -05:00
James Willcox 52b762a06a Bug 981621 - Guard against null GrContext r=gwright 2014-03-24 09:13:55 -05:00
George Wright e7aad60492 [PATCH 3/6] Bug 985217 - Minor changes to gfx/2d for API changes in Skia r=snorp 2014-03-20 14:07:36 -04:00
George Wright b81189a43e Bug 976184 - Apply a drop shadow image filter to our SkPaint when drawing a surface with a shadow r=mattwoodrow 2014-03-06 16:33:39 -05:00
James Willcox dfee0058ef Bug 939276 - Use a single GLContext for all SkiaGL canvases r=jgilbert,vlad,gwright,bjacob
--HG--
rename : gfx/gl/GLContextSkia.cpp => gfx/gl/SkiaGLGlue.cpp
2014-03-05 15:49:37 -06:00
Ehsan Akhgari e1b60f2947 Bug 935778 - Part 0.6: Add support for MOZ_DECLARE_REFCOUNTED_VIRTUAL_TYPENAME and use it in moz2d
X-Git-Commit-ID: bc256ac44cbba52b04f8f0390965632ec4507608
2014-02-24 08:23:37 -05:00
Wes Kocher 8d647a6ec0 Backed out changeset cf6a31bca4e0 (bug 939276) for webgl reftest crash
--HG--
rename : gfx/gl/SkiaGLGlue.cpp => gfx/gl/GLContextSkia.cpp
2014-02-20 15:23:52 -08:00
James Willcox 91032a3dca Bug 939276 - Use a single GLContext for all SkiaGL canvases r=vlad,gwright,bjacob
--HG--
rename : gfx/gl/GLContextSkia.cpp => gfx/gl/SkiaGLGlue.cpp
extra : rebase_source : 8e85dd34a67c2e193480e9f1f5baf68a898790fe
2014-02-20 16:20:28 -06:00
George Wright 5161656935 Bug 910754 - Update gfx/2d's Skia code to use the new Skia APIs r=snorp 2013-12-05 23:01:53 -05:00
George Wright 309648f662 Back out changesets from bug 910754 due to build bustage 2014-02-18 17:54:04 -05:00
George Wright c3a3b1167b Bug 910754 - Update gfx/2d's Skia code to use the new Skia APIs r=snorp 2013-12-05 23:01:53 -05:00
Ehsan Akhgari 5643b79842 Backed out 2 changesets (bug 939276) because of build bustage
Backed out changeset 1cedc759f877 (bug 939276)
Backed out changeset 61cef3b533ba (bug 939276)

--HG--
rename : gfx/gl/SkiaGLGlue.cpp => gfx/gl/GLContextSkia.cpp
2014-02-14 18:48:05 -05:00
James Willcox ee9a1556e5 Bug 939276 - Use a single GLContext for all SkiaGL canvases r=bjacob,gwright,dglastonbury
--HG--
rename : gfx/gl/GLContextSkia.cpp => gfx/gl/SkiaGLGlue.cpp
2014-02-14 15:55:58 -06:00
Peter Chang af028873e7 Bug 956432 - Fix the rounding inside DrawTargetSkia::DrawSurface(), r=gw280 2014-01-15 15:16:39 +08:00
James Kolb b312293c9b Bug 603488 part 3: Modified DrawTargetSkia to accept non-skia sourcesurfaces. r=nrc
--HG--
extra : rebase_source : f7f084a373d738ffcc58cbbf165fcfd86148d5ce
2014-01-13 13:29:48 +13:00
Benoit Jacob f447d87c57 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 6660086ef4 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 ccaa35314d 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 a1e7c32630 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 80ebacd7e6 Bug 958375 - 1/9 - Make SurfaceType 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 13:55:24 -05:00
Kevin Simons d7d0f83bb0 Bug 951686 - Set the SkBitmapDevice to opaque for BGRX surfaces. r=gwright 2014-01-06 10:03:55 -05:00
Andreas Gal 62ef63ce40 Bug 946541 - Fix Skia cache purging. r=gw280 2013-12-04 23:52:03 -05:00
Kevin Simons 8c7b534e33 Bug 945314 - Workaround crash with Cairo surfaces in Skia backend. r=mstange
A patch for bug 924102 introduced a MOZ_CRASH assertion for surfaces
of type other than SURFACE_SKIA or SURFACE_DATA being passed to
DrawSurface. Previously surfaces of other types were simply ignored.
On Linux, there are still several hardcoded surfaces of type Cairo
(found in gfxXlibNativeRenderer and friends) and as a result, the
Skia backend crashes always on Linux currently.

This workaround ignores Cairo surfaces passed to DrawSurface.
2013-12-03 08:52:06 -05:00