Commit Graph

135 Commits

Author SHA1 Message Date
Lee Salzman
6a105558e2 Bug 1201272 - use a SkBlurImageFilter for Skia canvas shadows so we can better control composite operations. r=gwright 2015-09-04 15:29:11 -04:00
Lee Salzman
77d4a117ab Bug 1004489 - propagate Cairo font AA settings to Skia font. r=gw280 2015-09-02 14:12:32 -04:00
Lee Salzman
cf925a3450 Bug 1188462 - Fix inclusion of skia headers to use correct directory prefixes. r=jrmuizel 2015-07-29 16:31:40 -04:00
Matt Woodrow
996b280895 Bug 1034370 - Make sure we release the SkImageFilter in DrawTargetSkia::DrawSurfaceWithShadow. r=gw280 2015-07-29 16:35:55 -04:00
Wes Kocher
47eb6fb630 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
ff063e25b0 Bug 1034370 - Make sure we release the SkImageFilter in DrawTargetSkia::DrawSurfaceWithShadow. r=gw280 2015-07-29 16:35:55 -04:00
Birunthan Mohanathas
a29151dc87 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
92a8124fef 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
fa61fedb12 Backed out changeset af2af798ad8f (bug 1165710) for OS X 10.6 crashes 2015-05-26 09:00:19 +02:00
Matt Woodrow
e3cbc92d50 Bug 1165710 - Make DrawTargetSkia own its snapshot instead of the other way around. r=gw280 2015-05-26 15:10:25 +12:00
Nathan Froyd
3c715f85db 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
84999741d3 Bug 1160789 - Make DrawTargetSkia support subpixel antialiasing for text. r=jrmuizel 2015-05-04 13:23:54 -04:00
Lee Salzman
db27f83933 Bug 1127752 - fixes for using Skia and OMTC with GTK3. r=jrmuizel 2015-05-13 11:54:17 +09:00
Markus Stange
0ce0a699d2 Bug 1097776 - Don't leak the SkBitmapDevice. r=jrmuizel 2014-11-18 17:22:01 -05:00
chiajung hung
352de86fed 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
6e24e2625f 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
bc7e26ddd9 Bug 1066280 - Review fixes. - r=kamidphish,mattwoodrow 2014-10-08 13:04:19 -07:00
jdashg
7faaf9266c Bug 1066280 - Fixes for SurfaceStream removal. - r=kamidphish,mattwoodrow 2014-10-07 21:16:14 -07:00
Matt Woodrow
b6b897cc15 Bug 1062723 - Part 4: Implement source clipping for DrawTargetSkia. r=gw280 2014-09-12 17:18:22 +12:00
George Wright
9999b67483 Bug 1061241 - Unref our LocalMatrixShader when building our mask SkPaint r=mattwoodrow 2014-09-02 15:18:15 -04:00
Wes Kocher
43d333212f Backed out changeset 89f165978438 (bug 1061241) for mochitest-4 orange 2014-09-02 18:56:40 -07:00
George Wright
783baa45fd Bug 1061241 - Unref our LocalMatrixShader when building our mask SkPaint r=mattwoodrow 2014-09-02 15:18:15 -04:00
George Wright
cdc4b17e17 [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
f400ab377a [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
d939ef3e5b [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
39d3ac6e16 [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
d94848a54f 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
b9c19728d6 Backed out changeset 3f079d36c620 (bug 1034257) for non-unified bustage. 2014-07-03 20:36:14 -04:00
George Wright
1dfef53983 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
fee197232c Bug 1004375 - Removed use of legacy skia compatible device API - r=gw280 2014-06-24 15:35:07 -07:00
Jeff Muizelaar
6e150ccaa6 Bug 1025133. Be more consistent about rounding colors with the skia backend. r=mwoodrow 2014-06-18 10:16:30 -04:00
Jonathan Watt
a5f2bc5bbe 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
ae36320cce 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
12ba8e81c5 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
f212cf9231 Bug 1023691. Support Data surfaces in DrawTargetSkia::CopySurface. r=mwoodrow 2014-06-11 11:38:41 -04:00
Jeff Muizelaar
cfbc84c991 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.
2014-06-10 23:42:32 -04:00
Matt Woodrow
29f12ec237 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
d076e6fd4e Bug 1011062. Add a fast path to DrawTargetSkia::MaskSurface(). r=gw280
This should speed things up significantly by avoid a bunch
of unneeded work.
2014-05-16 21:31:43 -04:00
Jeff Muizelaar
4d609fd850 Bug 1011011. DrawTargetSkia: Round alpha properly when creating Paint. r=mattwoodrow
This fixes some off by one errors in content reftests
2014-05-15 22:12:42 -04:00
Matt Woodrow
a7936d10a0 Bug 996929 - Implement OptimizeSourceSurface for all Moz2D backends. r=Bas 2014-04-17 12:45:25 +12:00
Jonathan Watt
d59441556d Bug 995832 - Make DrawTargetSkia::DrawSurface accept any surface type. r=gw280 2014-04-15 13:55:48 +01:00
Matt Woodrow
655d1acb09 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
4dc6afbd1c Backed out changeset 32ce387c5487 (bug 987010) for crashes.
CLOSED TREE
2014-03-26 15:58:07 -04:00
James Willcox
1cee659ece Bug 987010 - Ignore alpha in Skia BGRX source surfaces r=gwright 2014-03-26 13:22:42 -05:00
James Willcox
4c6cd5c93e 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
fd60d221c4 Backed out changeset 08c58214f01f (bug 987010) for xpcshell crashes; CLOSED TREE 2014-03-26 15:15:18 +00:00
Ed Morley
62b57ad7b4 Backed out changeset a0827d7c8a02 (bug 981621) 2014-03-26 15:14:57 +00:00
James Willcox
520238a12a 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
f5fbe0e5bd Bug 987010 - Ignore alpha in Skia BGRX source surfaces r=gwright 2014-03-26 09:08:27 -05:00
James Willcox
e307afda69 Bug 981621 - Guard against null GrContext r=gwright 2014-03-24 09:13:55 -05:00