Matt Woodrow
125c1ad96b
Bug 892966 - Implement CreateSourceSurfaceFromNativeSurface for DrawTargetCG and use it instead of copying pixel data. r=jrmuizel
2013-07-12 17:19:28 -04:00
Matt Woodrow
a452904bad
Bug 892966 - Setup dashing correctly in DrawTargetCG::StrokeRect. r=jrmuizel
2013-07-12 17:19:28 -04:00
Matt Woodrow
704e428266
Bug 892966 - Take a reference to the CGContext when constructing a DrawTargetCG from one. r=jrmuizel
2013-07-12 17:19:27 -04:00
Jeff Muizelaar
d2982ae47f
Bug 892964. Rewrite DrawTargetCG::MaskSurface to avoid using FillRect(). r=mattwoodrow
...
With FillRect we were setting the transform twice.
The patch looks really bad because I needed to move the implementation of
MaskSurface so that it was below the helper methods.
The actual change is:
- FillRect(Rect(aOffset.x, aOffset.y, size.width, size.height), aSource, aDrawOptions);
-
+ if (isGradient(aSource)) {
+ // we shouldn't need to clip to an additional rectangle
+ // as the cliping to the mask should be sufficient.
+ DrawGradient(cg, aSource);
+ } else {
+ SetFillFromPattern(cg, mColorSpace, aSource);
+ CGContextFillRect(cg, CGRectMake(aOffset.x, aOffset.y, size.width, size.height));
+ }
This also avoids setting up other state like alpha and the unboundness fixer twice.
--HG--
extra : rebase_source : 762f2d94ddaff129d584aab1e1f429ddfea99277
2013-07-08 17:35:56 -04:00
James Kolb
19692ba689
Bug 889693 - Implement MaskSurface in DrawTargetCairo. r=Bas
2013-07-11 10:43:34 -04:00
Jeff Muizelaar
9000441a55
Bug 891660. Add support for Azure on Mac with OMTC. r=mattwoodrow
...
This is not the best approach but it works for now. We basically pull the cg
context from gfxASurface and wrap a DrawTarget around it. In the end we'll need
to plumb the DrawTarget through more.
--HG--
rename : dom/ipc/PTabContext.ipdlh => dom/ipc/PContent.ipdl
extra : rebase_source : 49eac0354864ae9f2e7434b8b1efacc37d69fc23
2013-07-09 21:02:41 -04:00
Jeff Muizelaar
dfb3ac3543
Bug 891388. Implement Arc() in PathCG. r=joe
...
--HG--
extra : rebase_source : 3ebc541ce7407eba02165366bcc754484f65fcaa
2013-07-08 14:28:21 -04:00
Jeff Muizelaar
273bf40ece
Bug 790673. Add BorrowedCGContext. r=bas
...
This can be used to safely get at the underlying CGContext.
2013-07-09 18:55:02 -04:00
Markus Stange
30c87eb8a8
Bug 888288 - Fix some typos in GFX header comments. r=nrc
2013-07-08 21:21:06 -07:00
Emanuel Hoogeveen
a278970cd3
Bug 890714 - Fix mixed line endings. r=joe, r=jesup
2013-07-08 16:33:15 -04:00
Joey Armstrong
a6b9800cfb
bug 870407: cleanup bug. r=mshal
2013-07-08 11:53:00 -04:00
Benoit Girard
bc2d13d376
Bug 775459 - Implement hit testing on layer tree + tests. r=kats
...
--HG--
extra : rebase_source : c596cc4c4dd9810319830ec8105a5e251e9b0ddb
2013-07-02 12:27:17 -04:00
James Willcox
8891401313
Bug 887927 - Hold a ref to DrawTargetSkia within SourceSurfaceSkia r=mattwoodrow
2013-06-28 22:59:19 -04:00
Benoit Jacob
16c6979f6b
Bug 875218 - Fix all the Skia leaks! By avoiding addref'ing a second time the GrGLInterface and GrContext r=mattwoodrow
2013-06-17 13:45:04 -04:00
Benoit Jacob
019e7f80e4
Bug 875218 - Refactor the ownership model under DrawTargetSkia, so that DrawTargetSkia now owns a GLContext, and the only reference that the Skia GrGLInterface gets to the non-Skia world is a pointer back to the DrawTargetSkia r=mattwoodrow
2013-06-16 22:07:18 -04:00
Benoit Jacob
d6d404c2d3
Bug 882561 - Add a GenericRefCounted base class to moz2d, will allow moz2d to hold strong references to external objects without adding a dependency r=jwalden
2013-06-16 22:05:14 -04:00
George Wright
deca695bd7
Bug 869178 - Use SkCanvas::drawBitmapRect instead of a bitmap SkShader; it's slightly faster r=snorp
2012-11-15 19:57:40 -05:00
George Wright
d2b4508586
Bug 736276 - Ensure we can never double addref a cairo scaled font in ScaledFontBase r=mattwoodrow
2013-06-28 22:50:59 -04:00
George Wright
050d2d58af
Bug 736276 - Only create the SkTypeface in ScaledFontCairo when necessary r=jrmuizel
2013-06-28 22:50:09 -04:00
George Wright
3cc9485feb
Bug 736276 - Rename ScaledFontFreeType to ScaledFontCairo, and use Skia's API to create an SkTypeface from a cairo_scaled_font_t r=jrmuizel
2013-06-05 13:48:59 -04:00
George Wright
8ca610b51c
Bug 875218 - Ensure the GrContext's lifetime is managed properly by DrawTargetSkia r=bjacob
2013-05-29 14:04:25 -04:00
George Wright
b05c1cf852
Bug 848491 - Update DrawTarget and gfxPlatform to use the new Skia APIs r=mattwoodrow
2013-04-09 15:57:22 -04:00
Joey Armstrong
2e19c976cc
bug 870407: move CMMSRCS to mozbuild (file batch #2 ) r=mshal
2013-07-01 12:32:40 -04:00
Jacek Caban
b3cb48347d
Bug 887821 - GCC compilation failure in RadialGradientEffectD2D1.cpp r=jmuizelaar
2013-06-29 12:13:42 +02:00
Jacek Caban
a1d8801b86
Bug 880836 - Fixed 'extra qualification' error on GCC.
2013-06-29 12:13:17 +02:00
Bas Schouten
8cafae9a88
Bug 887916: Implement recording for MaskSurface calls. r=jrmuizel
2013-06-27 20:20:30 +00:00
Jeff Muizelaar
2c1144af61
Bug 886531. Fix MaskSurface implementation on CG. r=bas
...
The offsets were wrong.
--HG--
extra : rebase_source : 810f88c587e4fbcef377c53c13ee59a4b59cbe66
2013-06-24 17:28:21 -04:00
Justin Wood
c8ef983178
Bug 885855 - [Build bustage] gfx\2d\RadialGradientEffectD2D1.h(9) : fatal error C1083: Cannot open include file: 'd2d1_1.h': No such file or directory. r=gps, f=InvisibleSmiley, f=Bas
...
--HG--
extra : rebase_source : aea4bba00ffa4701315ff563f31be6425a439a23
2013-06-24 13:29:09 -04:00
Phil Ringnalda
b462ad2131
Merge birch to m-c
2013-06-22 15:50:24 -07:00
Kartikaya Gupta
e6d307eeca
Bug 883646 - Propagate the ScaleFactor classes far and wide. r=kentuckyfriedtakahe
2013-06-21 17:03:56 -04:00
Bas Schouten
9a59bfc1f7
Bug 883004 - Part 1: Add radial gradient effect code. r=jrmuizel
2013-06-21 05:53:23 +02:00
Ryan VanderMeulen
89cd9674cd
Backed out 7 changesets (bug 883646) for reftest-ipc failures.
...
Backed out changeset 2272804a8e71 (bug 883646)
Backed out changeset e39d3bdf847a (bug 883646)
Backed out changeset bf46fc332efe (bug 883646)
Backed out changeset 6bb558c3136f (bug 883646)
Backed out changeset d7d5d16e27e0 (bug 883646)
Backed out changeset 14c73096a132 (bug 883646)
Backed out changeset 89f6185a271b (bug 883646)
2013-06-20 17:36:39 -04:00
Mike Hommey
a8858bb659
Bug 885985 - Missing format string in printf call in gfx/2d/unittest/TestBase.cpp. r=bas
2013-06-22 20:29:39 +09:00
Kartikaya Gupta
bc7a93a250
Bug 883646 - Propagate the ScaleFactor classes far and wide. r=kentuckyfriedtakahe
2013-06-20 16:10:58 -04:00
Bas Schouten
178c9b506d
Bug 878032 - Part 2: Factor out partial bitmap uploading and scaling. r=jrmuizel
2013-06-19 22:48:40 +02:00
Bas Schouten
339613f6ba
Bug 878032 - Part 1: Factor out some simle none-RenderTarget dependent functions. r=jrmuizel
2013-06-19 22:48:40 +02:00
Ehsan Akhgari
87dd79fd6e
Backed out 2 changesets (bug 878032) because of Windows build bustage
...
Backed out changeset 3cb61a7d5746 (bug 878032)
Backed out changeset 627c03f469d8 (bug 878032)
Landed on a CLOSED TREE
2013-06-19 17:35:21 -04:00
Bas Schouten
533345357e
Bug 878032 - Part 2: Factor out partial bitmap uploading and scaling. r=jrmuizel
2013-06-19 22:48:40 +02:00
Bas Schouten
20fd8ab1d8
Bug 878032 - Part 1: Factor out some simle none-RenderTarget dependent functions. r=jrmuizel
2013-06-19 22:48:40 +02:00
Bas Schouten
1a57f2aa38
Bug 883352 - With OMTC enabled on Metro Firefox, we crash when scrolling. r=jmuizelaar
2013-06-19 08:57:59 -04:00
Jeff Muizelaar
f582fb2011
Bug 880836. Fix a typo caught by joe.
...
--HG--
extra : rebase_source : deabe5a79c8ac27497cfbeb42d5f98b7b882a7a3
2013-06-18 20:31:17 -04:00
Jeff Muizelaar
6fc104ba83
Bug 880836. Add MaskSurface() to Azure. r=bas
...
This gives a substantial performance improvement over the more general Mask():
Test (MaskSurface10x10): 1.93042ms +/- 0.305028
Test (MaskSurface100x100): 2.33435ms +/- 1.00807
Test (MaskSurface500x500): 28.0472ms +/- 0.820744
Test (MaskSurface1000x1000): 107.656ms +/- 6.44615
Test (Mask10x10): 13.5237ms +/- 0.0932034
Test (Mask100x100): 14.0742ms +/- 1.21005
Test (Mask500x500): 96.5596ms +/- 1.81415
Test (Mask1000x1000): 356.891ms +/- 9.30592
--HG--
extra : rebase_source : a3031305302fb4abe93aa480df35ed0936d68cd8
2013-06-12 23:57:51 -04:00
James Willcox
9ebe1f9867
Bug 883201 - Make SourceSurfaceSkia::GetData keep pixels alive as necessary r=gal
2013-06-18 12:49:05 -04:00
Ryan VanderMeulen
01296b90c1
Backed out changeset 8dcb029b9ca5 (bug 880836) for asserts.
...
CLOSED TREE
2013-06-18 12:08:19 -04:00
Jeff Muizelaar
f7aa0ef397
Bug 880836. Add MaskSurface() to Azure. r=bas
...
This gives a substantial performance improvement over the more general Mask():
Test (MaskSurface10x10): 1.93042ms +/- 0.305028
Test (MaskSurface100x100): 2.33435ms +/- 1.00807
Test (MaskSurface500x500): 28.0472ms +/- 0.820744
Test (MaskSurface1000x1000): 107.656ms +/- 6.44615
Test (Mask10x10): 13.5237ms +/- 0.0932034
Test (Mask100x100): 14.0742ms +/- 1.21005
Test (Mask500x500): 96.5596ms +/- 1.81415
Test (Mask1000x1000): 356.891ms +/- 9.30592
--HG--
rename : layout/reftests/svg/text/dynamic-non-scaling-stroke-ref.svg => layout/reftests/svg/non-scaling-stroke-03-ref.svg
rename : layout/reftests/svg/text/dynamic-non-scaling-stroke.svg => layout/reftests/svg/non-scaling-stroke-03.svg
extra : rebase_source : a1218b8bc5cdcec7d4dd94561d841fb6e2a8ce5d
2013-06-12 23:57:51 -04:00
Kartikaya Gupta
a53496f124
Bug 880676 - Remove ToCSSIntRectRoundIn and convert APZC::CalculateResolution to return a ScaleFactor. r=kentuckyfriedtakahe
2013-06-14 16:11:44 -04:00
Kartikaya Gupta
3c498464ed
Bug 880676 - Introduce a ScaleFactor struct and use it to type conversions between units. r=BenWa,kentuckyfriedtakahe
2013-06-14 16:11:31 -04:00
Kartikaya Gupta
5ce3e1c211
Bug 880676 - Move the RoundToInt functions to be standalone in the gfx headers. r=BenWa
2013-06-14 16:11:31 -04:00
Benoit Girard
7853228760
Bug 844288 - Dual link libxul.so and libxul-unit.so and replace enable-gtest by enable-test r=ted,glandium
...
- Remove enable GTest
- Add a general target to create gtestxul
- Update mach target
- Run GTest from make check
--HG--
rename : gfx/2d/unittest/GTestMain.cpp => gfx/tests/gtest/TestMoz2D.cpp
rename : gfx/layers/TestTiledLayerBuffer.cpp => gfx/tests/gtest/TestTiledLayerBuffer.cpp
extra : rebase_source : 862c39b9145328c8e9f85ae9d1963af374af76f1
2013-03-11 14:47:40 -04:00
Kartikaya Gupta
fa8050e549
Bug 879011 - Convert nsIntPoint instances in InputData.h to types with units. r=kentuckyfriedtakahe
2013-06-11 18:13:11 -04:00
Martin Stransky
a32d506ac3
Bug 877626 - Port GTK2 to GTK3 - build config, gfx dir. r=karlt
2013-06-11 13:40:27 -04:00
Kartikaya Gupta
8cf123d18d
Bug 879004 - Convert mDisplayport and mCriticalDisplayport in FrameMetrics to CSSRects. r=BenWa
2013-06-10 09:05:42 -04:00
Bas Schouten
a2627198c4
Bug 829954 - Part 2: Check for allocation success inside AlphaBoxBlur::Blur. r=jrmuizel
2013-06-04 03:13:53 +02:00
Bas Schouten
0bdbcac645
Bug 829954 - Part 1: Make AlignedArray fallible. r=jrmuizel
2013-06-04 03:13:53 +02:00
Kartikaya Gupta
e1db212150
Bug 877728 - Convert some CSS rects passed to Java from gfx::Rect to CSSRect. r=BenWa
2013-06-03 09:52:44 -04:00
Phil Ringnalda
c6b0156488
Merge m-c to a CLOSED TREE m-i
2013-05-31 07:41:20 -07:00
Phil Ringnalda
29fb49d007
Back out dc76402b8471 (bug 844288) on suspicion of breaking dep builds
...
CLOSED TREE
2013-05-31 07:39:56 -07:00
Kartikaya Gupta
99a4283e34
Bug 877726 - Convert FrameMetrics.mScrollOffset to be a CSSPoint. r=kentuckyfriedtakahe
2013-05-30 21:30:13 -04:00
Anthony Jones
a97740f473
Bug 831237 - Reduce APZC buffer churn; r=BenWa
...
Prevents the display port from getting smaller as the visible region
approaches the edges of the scrollable rect.
2013-05-28 16:17:09 +12:00
Benoit Girard
6adb6cba1f
Bug 844288 - Dual link libxul.so and libxul-unit.so and replace enable-gtest by enable-test r=ted,glandium
...
- Remove enable GTest
- Add a general target to create gtestxul
- Update mach target
- Run GTest from make check
--HG--
rename : gfx/2d/unittest/GTestMain.cpp => gfx/tests/gtest/TestMoz2D.cpp
rename : gfx/layers/TestTiledLayerBuffer.cpp => gfx/tests/gtest/TestTiledLayerBuffer.cpp
extra : rebase_source : 5b9be0892323195d4e24f11ae785f0663ff38fd0
2013-03-11 14:47:40 -04:00
Phil Ringnalda
68025a3c2f
Back out 816311e43409 (bug 844288) on suspicion of causing dep OS X universal builds to fail in packaging
...
CLOSED TREE
2013-05-29 23:42:20 -07:00
Benoit Girard
9bd97dc15d
Bug 844288 - Dual link libxul.so and libxul-unit.so and replace enable-gtest by enable-test r=ted,glandium
...
- Remove enable GTest
- Add a general target to create gtestxul
- Update mach target
- Run GTest from make check
--HG--
rename : gfx/2d/unittest/GTestMain.cpp => gfx/tests/gtest/TestMoz2D.cpp
rename : gfx/layers/TestTiledLayerBuffer.cpp => gfx/tests/gtest/TestTiledLayerBuffer.cpp
extra : rebase_source : 04c9c2efbc7db1c04c121cf3022612b488f83eb4
2013-03-11 14:47:40 -04:00
Jeff Gilbert
ea987c7dd2
Bug 877382 - Remove THEBES_API decorator. - r=BenWa
2013-05-29 14:59:24 -07:00
James Willcox
a71d3a5593
Bug 854556 - Only hold SkCanvas in DrawTargetSkia r=mattwoodword
2013-05-29 12:49:40 -04:00
Kartikaya Gupta
8d97eb65cb
Bug 865735 - Add a units template parameter to the gfx Point, Size, and Rect classes. r=bas,roc
2013-05-29 09:32:30 -04:00
Mike Shal
994cfe0b6b
Bug 864774 - Part 2: Move CPPSRCS to moz.build as CPP_SOURCES; r=joey CLOSED TREE
...
From 9e0ba7f425143f545eb6c4b26a9a96b5ade4d8e9 Mon Sep 17 00:00:00 2001
2013-04-23 17:54:15 -04:00
Ted Mielczarek
110919af49
bug 871712 - make MSVC PGO opt-in per-directory, and opt-in in the directories that matter. r=glandium
2013-05-16 09:33:26 -04:00
Ryan VanderMeulen
66bdaa755a
Backed out 2 changesets (bug 736276) for reftest crashes on a CLOSED TREE.
...
Backed out changeset 1bd02a8da04f (bug 736276)
Backed out changeset 120285554c44 (bug 736276)
2013-05-15 16:14:56 -04:00
George Wright
07869a86f2
[PATCH 2/2] Bug 736276 - Rename ScaledFontFreeType to ScaledFontCairo, and use Skia's API to create an SkTypeface from a cairo_scaled_font_t r=jrmuizel
2012-08-05 02:29:18 -04:00
Mark Banner
cb92e38e0c
Bug 863069 - Part 2: Sort lists in moz.build files (mac specific); r=gps
2013-05-08 19:31:52 +01:00
Benoit Jacob
4245a75a70
Bug 869188 - Avoid mixing CheckedInt and float in Blur code - r=Bas
2013-05-07 08:14:26 -04:00
Jeff Muizelaar
d578d15fd7
Bug 845125. Fix impromper use of CheckedInt.
...
Previously we're missing the multiplication.
2013-04-30 15:46:22 -04:00
Jonathan Kew
48470aacff
bug 866747 - stroke glyphs individually instead of making a single path for the entire text run. r=bas
2013-04-30 19:26:28 +01:00
Milan Sreckovic
2662270c23
Bug 845125 - Add gfxImageSurface constructor that allocates more space than needed, change AlphaBoxBlur to not hold on to the data and let the callers manage it. r=jmuizelaar
2013-04-19 12:13:18 +02:00
Chris Lord
6b4ae93176
Bug 853867 - Allow --enable-gtest on Android and fix build issues. NPOTB r=bas,bgirard
...
--HG--
extra : rebase_source : 2e870fd157ea7e9a4de4cf8f4d465784eab0ff8e
2013-04-25 15:39:33 -04:00
Matt Woodrow
af1950b9c6
Bug 863922 - Use the device pixel size of plugin IOSurfaces since layers handles resolution scaling already. r=BenWa
2013-04-25 10:31:12 +12:00
Mike Shal
77cdb6567d
Bug 846634 - Part 2: Move EXPORTS to moz.build; r=joey
2013-04-16 15:24:43 -04:00
Bas Schouten
341383c413
Bug 825928: Land layers refactoring. r=jrmuizel,bas,nical,mattwoodrow,roc,nrc,benwa,bjacob,jgilbert,kchen CLOSED TREE
...
Please contact Bas Schouten <bschouten@mozilla.com>, Nicolas Silva <nsilva@mozilla.com> or Nicholas Cameron <ncameron@mozilla.com> with general questions. Below is a rough list of authors to contact with specific questions.
Authors:
gfx/layers/Compositor.* gfx/layers/Effects.h - Compositor Interface - bas,nrc,nical
gfx/layers/d3d* - D3D9/D3D10 - bas
gfx/layers/ThebesLayer* - ThebesLayers - nrc,bas
gfx/layers/composite/* - CompositeLayers - nrc,nical
gfx/layers/client/* - Client - nrc,nical,bas
gfx/layers/*Image* - nical
gfx/layers/ipc ipc - IPC - nical
gfx/layers/opengl - CompositorOGL - nrc,nical
gfx/2d - bas,nrc
gfx/gl - GLContext - bjacob
dom/* layout/* - DOM - mattwoodrow
2013-04-10 09:20:52 +00:00
Daniel Holbert
fdfaaeabb3
Bug 858304: Fix 2 signed/unsigned comparison warnings in QuartzSupport.mm. r=smichaud
2013-04-04 18:20:44 -07:00
Daniel Holbert
1d8144f611
Bug 857740: Use MOZ_STATIC_ASSERT instead of COMPILE_ASSERT in convolver.h. r=jrmuizel
2013-04-04 14:42:07 -07:00
Nathan Froyd
c93b3fbd34
Bug 839383 - part 3 - inline AssignSurfaceParametersFromFormat into its only caller; r=jrmuizel
2013-03-12 17:02:19 -04:00
Nathan Froyd
87c72109b6
Bug 839383 - part 2 - factor out CGImageRef creation code in SourceSurfaceCG.cpp; r=jrmuizel
2013-03-12 16:59:26 -04:00
Nathan Froyd
980d33fb4c
Bug 839383 - part 1 - fix unhandled enumeration values in SourceSurfaceCG.cpp; r=jrmuizel
2013-03-06 11:11:18 -05:00
Kyle Machulis
5aa83c3e11
Bug 855465 - Add emacs python mode comments to moz.build files; r=gps
2013-04-01 11:36:59 -07:00
Kyle Machulis
c79ccc0693
Backout for changeset 03452b187c14 (Bug 855465) due to bustage on a CLOSED TREE; r=qdot
2013-03-29 15:12:58 -07:00
Kyle Machulis
a59d40f143
Bug 855465 - Add emacs python mode comments to moz.build files; r=gps
...
--HG--
extra : rebase_source : 004a756492323e1a049586e85b3be5037159df20
2013-03-29 13:56:18 -07:00
Landry Breuil
4641abbd9e
Bug 849253 - Followup to really unbreak BE archs: use USE_SKIA_GPU in HelpersSkia.h too r=gwright
2013-03-26 22:13:12 +01:00
George Wright
bbbab52ed9
Bug 849253 - Make SkiaGL a build-time option independent of Skia, and disable it on PPC[64] r=mattwoodrow
2013-03-13 19:29:47 -04:00
Steve Singer
68e0638cba
Bug 844883 - Use a signed value for the stride. r=jmuizelaar
2013-03-20 15:42:51 -04:00
Milan Sreckovic
757d011762
Bug 825721 - Clamp negative box starts and disallow negative sizes. r=jmuizelaar
2013-03-07 10:13:28 -05:00
Mike Shal
9680b82df6
Bug 844654 - Part 2: Move MODULE to moz.build; rs=gps
2013-03-19 11:47:00 -07:00
Bas Schouten
249037f0d4
Bug 828157 - Properly offset gradient origin when using D2D to draw moderately complex gradients. r=jmuizelaar
2013-03-12 15:55:50 -04:00
Jacek Caban
d708ac8932
Bug 849207 - Use __declspec(dllexport) for exporting skia C++ symbols. r=gwright
...
--HG--
extra : rebase_source : 333c7fcc334db6f6969995f0ff5fac8bb9607e74
2013-03-12 11:33:36 +01:00
Chris Lord
81f0522af9
Bug 716403 - Annotate layers with the fixed margins from the PresShell. r=nrc,roc
...
This annotates fixed layers with the margins that have been applied from
nsIPresShell->GetContentDocumentFixedPositionMargins. Using SyncViewportInfo
in CompositorParent, this allows for async fixed position margin setting.
2013-03-07 10:17:33 +00:00
Ryan VanderMeulen
893d8d351a
Backed out 9 changesets (bug 716403) for Android 4.0 robocop bustage on a CLOSED TREE.
2013-03-06 16:11:05 -05:00
Chris Lord
f223199f29
Bug 716403 - Annotate layers with the fixed margins from the PresShell. r=nrc,roc
...
This annotates fixed layers with the margins that have been applied from
nsIPresShell->GetContentDocumentFixedPositionMargins. Using SyncViewportInfo
in CompositorParent, this allows for async fixed position margin setting.
2013-03-06 16:56:00 +00:00
Daniel Holbert
1859a93138
Bug 843719: Reorder params in Margin constructors and SizeTo() methods to match CSS's top,right,bottom,left ordering. r=seth
2013-03-06 00:05:55 -08:00
George Wright
85199c3edd
[PATCH 8/9] Bug 751418 - Plumb through GL-backed CanvasLayers for Skia/GL r=mattwoodrow
...
From ac18dd134e69cc734dc6a9e16498e43207de4e9a Mon Sep 17 00:00:00 2001
---
content/canvas/src/CanvasRenderingContext2D.cpp | 42 +++++++++++++++++++++++--
content/canvas/src/CanvasRenderingContext2D.h | 5 +++
gfx/2d/2D.h | 8 +++++
gfx/2d/Factory.cpp | 10 ++++++
gfx/thebes/gfxPlatform.cpp | 34 ++++++++++++++++++++
gfx/thebes/gfxPlatform.h | 12 +++++++
6 files changed, 109 insertions(+), 2 deletions(-)
2012-11-30 18:58:00 -05:00
George Wright
5563171991
[PATCH 7/9] Bug 751418 - Add support for the Skia/GL backend to DrawTargetSkia r=mattwoodrow
...
From 0792589a5679ba3af020708233bacbd83a0c611e Mon Sep 17 00:00:00 2001
---
gfx/2d/DrawTargetSkia.cpp | 24 ++++++++++++++++++++++++
gfx/2d/DrawTargetSkia.h | 4 ++++
gfx/2d/HelpersSkia.h | 20 ++++++++++++++++++++
3 files changed, 48 insertions(+)
2012-11-30 18:57:38 -05:00
George Wright
9a7d9e3192
[PATCH 4/9] Bug 751418 - Ensure we define USE_SKIA globally r=ted
...
From f0e2d2aa3f9a5738369ce9e0e8cd00d937ac77ab Mon Sep 17 00:00:00 2001
---
configure.in | 4 ++++
gfx/2d/Makefile.in | 7 -------
gfx/skia/Makefile.in | 3 ---
3 files changed, 4 insertions(+), 10 deletions(-)
2013-02-26 18:29:33 -05:00
Ed Morley
d4f164b2da
Backed out changeset c1f4eff03e82 (bug 840693) for causing bug 838563
2013-03-04 14:38:11 +00:00
Robert O'Callahan
fd02ebad7e
Bug 840695. Make aAntialiasMode default to AA_DEFAULT, because, well, it's the default. r=bas
...
--HG--
extra : rebase_source : f22329337aa120573efc13fa6ac0bb111ff0dba2
2013-02-25 12:01:16 +13:00
Anthony Jones
a867d6ab73
Bug 840693 - Add ZoomScale; r=Bas
2013-03-04 13:25:22 +13:00
Ryan VanderMeulen
5d849d0751
Backed out 8 changesets (bug 716403) for frequent Android mochitest-8 failures on a CLOSED TREE.
2013-03-01 16:09:59 -05:00
Chris Lord
f56a95adbd
Bug 716403 - Annotate layers with the fixed margins from the PresShell. r=nrc,roc
...
This annotates fixed layers with the margins that have been applied from
nsIPresShell->GetContentDocumentFixedPositionMargins. Using SyncViewportInfo
in CompositorParent, this allows for async fixed position margin setting.
2013-03-01 15:46:34 +00:00
Gregory Szorc
21460a71f3
Bug 784841 - Part 18o: Convert /gfx; r=jrmuizel f=Ms2ger
2013-02-25 12:47:21 -08:00
Benoit Girard
13c81ffaed
Bug 839740 - Add Moz2D Unit Tests to gtest. r=bas
2013-02-22 19:28:08 -05:00
Daniel Holbert
c571e822b3
Bug 839265: Remove unused enum value OP_ARCTO from the PathOp::OpType enum. r=Bas
2013-02-17 00:49:50 -08:00
Daniel Holbert
4e78a9ab0a
Bug 839257: Mark Factory.cpp's HasCPUIDBit() as inline, to fix build warnings on some configurations about the function being defined but not used. r=Bas
2013-02-17 00:45:10 -08:00
Daniel Holbert
f25534b79f
Bug 839384: Fix build warnings for DrawTargetCG. r=jrmuizel
2013-02-12 20:00:54 -08:00
Robert O'Callahan
70ccb25043
Bug 8203709. Handle failure to create a snapshot surface in GetImageDataArray. r=mattwoodrow
2013-02-12 17:56:28 +13:00
Phil Ringnalda
cb79659a5f
Back out 1b98c119cbfb (bug 8203709) for bustage
...
CLOSED TREE
2013-02-09 07:15:43 -08:00
Robert O'Callahan
af668db99e
Bug 8203709. Handle failure to create a snapshot surface in GetImageDataArray. r=mattwoodrow
2013-02-10 00:28:18 +13:00
Timothy Nikkel
8233bb1988
Bug 827946. GCC 4.5 with PGO miscompiles the ConvolveHorizontally function, so add an annotation to tone down the optmization on that function with GCC 4.5 only. r=joe
2013-02-08 14:01:19 -06:00
Timothy Nikkel
c4442c2ae2
Backout 1b5a4a4cf267 (bug 827946) for build breakage on CLOSED TREE.
2013-02-08 10:55:17 -06:00
Timothy Nikkel
f66897f82e
Bug 827946. GCC 4.5 with PGO miscompiles the ConvolveHorizontally function, so add an annotation to tone down the optmization on that function with GCC 4.5 only. r=joe
2013-02-08 10:39:16 -06:00
Matt Woodrow
49493327db
Bug 836892 - Add new skia blending modes to GfxOpToSkiaOp. r=gw280
2013-02-08 10:54:59 +13:00
Matt Woodrow
0a967062f9
Bug 831529 - Stop using SkPath::contains for now since it doesn't match the canvas spec. r=jrmuizel
2013-02-08 10:54:59 +13:00
Milan Sreckovic
2c6ea06f4c
Bug 818241 - Initialize mCg to nullptr. r=jmuizelaar
2013-01-29 10:22:52 -05:00
Mats Palmgren
f039793929
Bug 834896 - Replace uses of gfx_min/gfx_max with std::min/std::max. r=joe
2013-01-30 17:02:27 +01:00
Mats Palmgren
9398ca3f40
Bug 834896 - Remove the gfx_min/gfx_max templates. r=joe
2013-01-30 17:02:27 +01:00
Filippo Cristofoletti
38c8e0af02
Bug 755031 - Fix some other warnings in gfx/2d. r=jmuizelaar
2013-01-28 10:09:29 -05:00
Filippo Cristofoletti
04732008ec
Bug 755031 - Clear warnings in gfx/2d/ScaledFontDWrite.cpp. r=jmuizelaar
2013-01-15 07:21:00 -05:00
Usurelu Catalin
1218974f91
Bug 817846 - Add BaseSize::IsEmpty() member function. r=cjones
2013-01-24 18:10:27 -05:00
Steven Michaud
6aced240ae
Bug 829284 - Unity plugin doesn't display in HiDPI mode. r=bgirard
2013-01-23 16:19:15 -06:00
Milan Sreckovic
5cae08eb28
Bug 803568: Check for Cairo surface creation failure. r=bas
2013-01-17 14:38:38 +01:00
Mats Palmgren
6c53161814
Bug 786533 - Replace NS_MIN/NS_MAX with std::min/std::max and #include <algorithm> where needed. r=ehsan
2013-01-15 13:22:03 +01:00
Bas Schouten
445908818b
Bug 817019: Don't push ClearType layers to Transparent rendertargets. r=jrmuizel
2013-01-15 02:20:10 +01:00
Trevor Saunders
10701d89a1
no bug - mark several classes final to avoid warnings about deleting objects of polymorphic type
2013-01-11 04:43:29 -05:00
Chris Peterson
34d009dfe8
Bug 829685 - Remove #include "prtypes.h" from some files that no longer use PR types. r=ehsan
2013-01-10 08:19:36 -08:00
Anthony Jones
84c559a422
Bug 811950 - Add scaling operators to BaseSize and gfxPoint. r=roc
2012-12-23 10:50:30 -05:00
Steven Michaud
ed8fe1f53d
Bug 821304 - Unbreak plugins that use subclasses of CALayer in CoreAnimation mode. r=bgirard
2012-12-20 15:14:20 -06:00
Jeff Muizelaar
47cdb5bcdd
Bug 823393. Breakage fix for partially commited Bug 823148.
...
Only some hunks of the patch for bug 823148 made it into the
tree. I've no idea why.
--HG--
extra : rebase_source : 629e6d74e2e6cf4255e7875a8a1eb044241eec23
2012-12-20 01:16:45 -05:00
Jeff Muizelaar
1a3fed9d72
Bug 823148. Make IsPatternSupportedByD2D match its name. r=bgirard
...
The name of this function got inverted but its implementation stayed the same.
2012-12-19 23:19:45 -05:00
Yazen Ghannam
a5cf56118a
Bug 795378 - Clean up the high-quality scaler - Merge upstream changes to image_operations.cpp. r=joe
2012-12-18 16:25:07 -05:00
Rik Cabanier
db7b579813
Bug 748433: Adds support for blending to the canvas globalCompositeOperator. r=jrmuizel
2012-12-12 21:28:17 +01:00
Rik Cabanier
3024c6e42a
Bug 809927: Add new blend modes and implement them for Direct2D. r=bas
2012-12-12 21:28:17 +01:00
Steve Singer
d4a2df7f43
Bug 817356. the skia image resizers need to respect endian order when finding the alpha values. r=joedrew
2012-12-09 21:20:41 +01:00
Tobias Netzel
6dd2b0c4ea
Bug 818004 - New Blurring code isn't big endian compatible. r=joedrew
2012-12-04 21:00:39 -05:00
Bas Schouten
9053be203b
Bug 789933: Support non-D2D targets for getting a Path off ScaledFontDWrite. r=nrc
2012-12-05 01:11:02 +01:00
Nicholas Cameron
dfe2a0e5d8
Bug 814828. DEST_OUT has no affect outside the source; r=bas
...
--HG--
extra : rebase_source : 098f3e3e64ba5504530264016d7fa9425c065f99
2012-12-05 13:02:52 +13:00
Joe Drew
2ce483ef86
Bug 813090 - Fix license block on imported Chromium code. r=gerv
2012-12-03 18:04:22 -05:00
Mats Palmgren
25edff24aa
Bug 815489 - Don't let Blur() swap mData since the buffer is also used by the image surface. r=roc
2012-11-28 19:55:36 +01:00
Brian R. Bondy
317076c311
Bug 793719 - Fix for D2D error on shutdown with VS2012. r=bas
2012-11-25 14:00:31 -05:00
George Wright
19c88d3a3a
Bug 751418 - Move common functions from DrawTargetSkia to HelpersSkia r=mattwoodrow
2012-10-16 17:16:45 -04:00
Bas Schouten
bf4c845d16
Bug 814101: Respect system-wide cleartype setting. r=jrmuizel,jfkthame
2012-11-23 02:53:12 +01:00
Yury
0b958ef865
Bug 812039 - mozIsPointInPath leaks CGPath objects. r=jmuizelaar
2012-11-15 20:34:57 -05:00
Jeff Muizelaar
6140a7e334
Bug 811919. Include the pattern transform when painting patterns in DrawTargetCG. r=benwa
...
This fixes a lot of azure content bugs.
--HG--
extra : rebase_source : be84084aa7753862920ddd7b04fbfb0bd0b54ded
2012-11-14 16:52:02 -08:00
Bas Schouten
c90c33f2b7
Bug 811850: Fix gfx 2d recording to be 64-bit neutral. r=jrmuizel
2012-11-14 20:55:02 +00:00
Nathan Froyd
bba74c6646
Bug 809967 - include ostream instead of iostream in PathRecording.h to avoid static initializers; r=Bas
2012-11-08 14:22:16 -05:00
Bas Schouten
2566a9e172
Bug 509052: Add new, faster blurring code. r=derf
2012-11-07 09:29:54 +01:00
Ed Morley
b9ac8afd08
Backout e89f1fce980d (bug 509052) for an assortment of timeouts and crashes
2012-11-07 10:47:27 +00:00
Bas Schouten
66209d86a7
Bug 509052: Add new, faster blurring code. r=derf
2012-11-07 09:29:54 +01:00
Tobias Schneider
d0adae1591
Bug 803124 - Implement mozIsPointInStroke. r=jmuizelaar
2012-10-29 16:54:53 +01:00
Tobias Schneider
fc6933fb87
Bug 806780 - PathSkia::ContainsPoint should use SkPath::contains(x, y). r=jmuizelaar
2012-10-30 10:19:16 +01:00
Nicholas Cameron
fa39284713
Bug 801465; DataSourceSurfaceD2D; r=Bas
2012-10-31 12:30:25 +13:00
Nathan Froyd
bd55a07f0e
Bug 806618 - rewrite PR_NewLogModule calls to not generate static initializers; r=ehsan
2012-10-29 19:32:10 -04:00
Daniel Holbert
ab5cc3cd7d
Bug 795655: Mark "StringFromPtr()" in RecordedEvent.h as inline, not static, so that it doesn't trigger build warnings in cpp files that don't use it. r=bas
2012-10-29 16:15:31 -07:00
Bas Schouten
4f15d944ba
Bug 805831: Add a cache for border corner gradients. r=joedrew
2012-10-27 06:32:52 +02:00
Phil Ringnalda
698c871d74
Back out fbd8fdb7c544 (bug 805831) for build failures
2012-10-26 21:53:41 -07:00
Bas Schouten
ed3c6b2dd4
Bug 805831: Add a cache for border corner gradients. r=joedrew
2012-10-27 06:32:52 +02:00
Matt Joras
2549497ae7
Bug 798033 - Removes "using namespace" directive from gfx headers - r=jmuizelaar
2012-10-25 16:12:59 -04:00
Markus Stange
75394ce10f
Bug 770524 - Fix FuzzyEqual to not return false for equal floats which are smaller than -2048.0f. r=roc
2012-10-25 12:54:15 +02:00
Anthony Jones
68095a6134
Bug 796418 - Check cairo matrix before drawing. r=joe
2012-10-24 22:03:21 -04:00
Jonathan Kew
7a6fc2753d
bug 715798 pt 3 - support Color Emoji font in the gfx/2d quartz backend. r=jrmuizel
2012-10-23 10:07:14 +01:00
Joe Drew
0cddcc1188
Bug 798053 - Do a more accurate test for the return value of Scale(). r=gw280
...
--HG--
extra : rebase_source : c26a57f060f172e9b7864eef69fa782064b4fae5
2012-10-10 11:35:23 -04:00
Steven Michaud
5038f543ad
bug 794038 pt 3 - plugins support for resolution change. r=bgirard
2012-10-16 20:41:21 +01:00
Benoit Jacob
15decb515e
back out 621cfd13ceaf for build failures
2012-10-15 13:34:42 -04:00
Matt Joras
ce980ce123
Bug 798033 - Removes "using namespace" directive from gfx headers - r=jmuizelaar
2012-10-15 13:02:21 -04:00
Anthony Jones
fc45f4771a
Bug 795763 - Support extend mode for gradient patterns in DrawTargetCairo. r=joe
2012-10-10 06:32:36 -04:00
Jacek Caban
a44b667f3a
Bug 795839 - Include iostream in PathRecording.h r=bas
...
--HG--
extra : rebase_source : 3774e2bdd21b05b009301269e8241acac8468003
2012-10-09 11:44:11 +02:00
Bas Schouten
e77095ab40
Bug 798931: Push clip layers to the correct render targets. r=roc
2012-10-08 12:17:17 +02:00
Oleg Romashin
61e94a51ca
Bug 796927 - Gfx Build fix, missing cstring include for memcpy. r=joe
2012-10-06 13:59:01 -07:00
Joe Drew
821fa45bcb
Bug 798061 - Fix mismatched malloc vs delete[] in mozilla::gfx::AlphaBoxBlur::~AlphaBoxBlur(). r=jmuizelaar
2012-10-06 21:53:23 -04:00
Bas Schouten
d4bc6c631b
Bug 784382 - Part 2: Use new ID2D1DeviceContext interface in Azure. r=jrmuizel
2012-10-07 01:43:16 +02:00
Ehsan Akhgari
5ade3f493b
Bug 797612 - Remove PathCG::mFigureActive; r=jrmuizel
...
--HG--
extra : rebase_source : 4ce5161c5ffee297ab55ad7a980dbb74f0051ded
2012-10-03 19:43:03 -04:00
Ehsan Akhgari
4902ff889c
Bug 797219 - Make OutputMessage in gfx/2d/Logging.h static inline; r=joe
2012-10-03 13:43:37 -04:00
Robert O'Callahan
6efae9e62b
Bug 793690. Fix the obvious typos for infinite rects in SetScissorRect. r=bas
2012-10-04 00:30:56 +13:00
Nicholas Cameron
33aba51702
Bug 753237 - Implement DrawTargetCairo::Mask(). r=joe
2012-10-02 20:14:38 -04:00
Steven Michaud
c109a6325b
Bug 785667 - Make plugins work with HiDPI mode on the Mac. r=bgirard
2012-10-02 14:48:05 -05:00
Anthony Jones
0cd96f1f5e
Bug 795135 - Fix CairoTempMatrix restore. r=joe
2012-10-01 22:12:13 -04:00
Joe Drew
86a50c618d
Bug 486918. Part 1: Import Chromium's higher-quality image scalers, since we know those to be good and shippable. r=jrmuizel
2012-08-23 15:36:04 -04:00
Ms2ger
a72f8370a2
Bug 795862 - Back out bug 486918 for build bustage in unreviewed code.
2012-10-01 14:16:03 +02:00
Joe Drew
0877c3403b
Bug 486918. Part 1: Import Chromium's higher-quality image scalers, since we know those to be good and shippable. r=jrmuizel
2012-08-23 15:36:04 -04:00
Doug Sherk
c0e08ee726
Bug 784908: Part 1: Change names of FrameMetrics variables to be more descriptive, add documentation, change some coordinate spaces. r=roc
2012-09-28 22:16:34 -04:00
Ed Morley
722b933229
Backout 92530b29ac24, 42e659956dc6 & 38277196c099 (bug 486918), d3b69fe15ac3 & b2dba2108722 (bug 786444), e7381ac9e30a (bug 786449) on suspicion of causing Android reftest failures on a CLOSED TREE
2012-09-28 23:00:28 +01:00
Andrew Quartey
f55a37c1ba
Bug 793201 - Fix compiler warnings in Azure with MSVC r=bas
2012-09-28 13:21:40 -04:00
Joe Drew
7ba5def5a6
Bug 486918. Part 1: Import Chromium's higher-quality image scalers, since we know those to be good and shippable. r=jrmuizel
...
--HG--
extra : rebase_source : afcbe4f2b8fac985d836b038fb42156d27dc1c29
2012-08-23 15:36:04 -04:00
Chris Jones
428139de39
Remove this .rej that didn't merge properly. No bug.
...
--HG--
extra : rebase_source : de991a63653dba7575448676cb855b29fb3d66c4
2012-09-25 23:44:39 -07:00
Bas Schouten
1cbd658d18
Bug 792207 - Part 5: Add code to Azure to allow initializing recording. r=jrmuizel
2012-09-24 15:02:50 +00:00
Bas Schouten
608b6fc192
Bug 792207 - Part 4: Add Azure recording code. r=jrmuizel
2012-09-24 15:02:50 +00:00
Bas Schouten
8cf02dc4f8
Bug 792207 - Part 3: Add UserData to ScaledFont. r=jrmuizel
2012-09-24 15:02:49 +00:00
Bas Schouten
97f01fd610
Bug 792207 - Part 2: Add method to store and create from TrueType data. r=jrmuizel
2012-09-24 15:02:49 +00:00
Bas Schouten
e84586dbf4
Bug 722269: Make DrawTargetD2D::DrawSurface deal with any SourceSurface convertible to a DataSourceSurface. r=joedrew
2012-09-20 21:24:12 +00:00
Robert O'Callahan
7efeb9262e
Bug 772726. Part 14: Nudge pattern transform components to integers to avoid rounding errors. Also nudge rects to integers when we retransform them due to a CTM change. r=bas
2012-09-08 00:32:21 +12:00
Robert O'Callahan
58aea04535
Bug 772726. Part 8: Add Rect::NudgeToIntegers and share improved nudging code among all nudging APIs. r=bas
2012-09-12 17:24:09 +12:00
Robert O'Callahan
ff8935ad31
Bug 772726. Part 6: Add NudgeToIntegers operation to Azure Matrix, add MultiplyAndNudgeToIntegers to gfxContext, and call it from SVG when we render path geometry, to ensure that small internal rounding errors in transforms don't cause unnecessary differences in rasterization of paths. r=bas
2012-09-05 12:15:52 +12:00
Bas Schouten
c2c8bcf85c
Bug 772726: Factor out pixel-aligned clip handling in DrawTargetD2D. r=jrmuizel
2012-09-18 23:04:42 +00:00
George Wright
515afdf53b
Bug 777614 - Handle BGRX SourceSurfaces in Skia by converting them to BGRA r=nrc
2012-09-18 15:41:37 -04:00
George Wright
d4e6777676
Bug 777614 - Use Skia's Conical gradient shader instead of Radial to be in line with the canvas spec. r=nrc
2012-09-18 15:41:37 -04:00