Commit Graph

14337 Commits

Author SHA1 Message Date
Robert O'Callahan
05a2f9de86 Bug 1143575. Pass a picture rect with OpUseOverlaySource and OpUseTexture, and eliminate OpUpdatePictureRect. r=nical
The picture rect logically belongs with the texture, and later patches will
make OpUseTexture take multiple textures, each of which needs its own
picture rect.
2015-07-04 10:52:42 +12:00
Robert O'Callahan
db09f27c29 Bug 1143575. Move mLayer from ImageClientBridge up into its superclass ImageClient. r=nical
This simplifies code slightly.
2015-03-25 22:02:04 +13:00
Robert O'Callahan
51df6923f6 Bug 1143575. Remove unused CompositableClient::OnTransaction. r=nical 2015-03-25 21:30:25 +13:00
Robert O'Callahan
b3afb10984 Bug 1143575. Remove unused AttachAsyncCompositable overload. r=nical 2015-05-08 15:58:17 +12:00
Robert O'Callahan
dd5a99f85a Bug 1143575. LayerManagerComposite can't get END_NO_COMPOSITE. r=mattwoodrow 2015-05-15 18:33:20 +12:00
Robert O'Callahan
4ab5c86cbb Bug 1143575. Remove unused ReturnReleaseFence. r=nical 2015-05-12 09:53:22 +12:00
Robert O'Callahan
d8bbca6323 Bug 1143575. Remove unused ImageContainer::ResetPaintCount. r=nical 2015-03-23 23:39:28 +13:00
Robert O'Callahan
1a2d43cc5e Bug 1143575. Rename mAsyncTransactionTrackeres to mAsyncTransactionTrackers. r=nical 2015-03-23 23:34:41 +13:00
Robert O'Callahan
4400eae71d Bug 1143575. Remove unused CompositionNotifySink. r=nical 2015-03-22 01:02:25 +13:00
Robert O'Callahan
0f701e6020 Bug 1143575. Remove unused Image::IsSentToCompositor tracking. r=nical 2015-03-20 16:13:46 +13:00
Robert O'Callahan
a40be7876e Bug 1143575. Android's screenshotting code should invalidate the LayerManagerComposite to ensure composition will actually happen. r=nical
There is some ambiguity about whether ScheduleComposite will necessarily
trigger a composite all the way to nsWindow::DrawWindowUnderlay. Android
robocop tests assume it will, because they rely on DrawWindowOverlay
being called so they can take a screenshot and make progress,
but this is a very fragile assumption. They also rely on the entire
window being painted, which is also a fragile assumption.

This patch improves the situation by explicitly invalidating the current
window area when Android Java code needs to trigger a composite. This avoids
regressions from future patches in this series which make composition bail
out when there is nothing invalid.

The resulting setup is still a bit fragile for my taste but I'm not sure
what the ideal solution would be.
2015-06-12 03:20:04 +12:00
Robert O'Callahan
02fd1ee5fe Bug 1143575. Make GL context current before cleaning up programs. r=nical
Otherwise we can get a crash with the following stack:

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 14711]
0x5d99974e in mozilla::gl::GLContext::BeforeGLCall (this=0x6dbf0800,
    funcName=0x60f251a4 <mozilla::gl::GLContext::raw_fDeleteProgram(unsigned int)::__PRETTY_FUNCTION__> "void mozilla::gl::GLContext::raw_fDeleteProgram(GLuint)") at /home/roc/mozilla-inbound/gfx/gl/GLContext.h:683
683	        MOZ_ASSERT(IsCurrent());
(gdb) where
#0  0x5d99974e in mozilla::gl::GLContext::BeforeGLCall (this=0x6dbf0800,
    funcName=0x60f251a4 <mozilla::gl::GLContext::raw_fDeleteProgram(unsigned int)::__PRETTY_FUNCTION__> "void mozilla::gl::GLContext::raw_fDeleteProgram(GLuint)") at /home/roc/mozilla-inbound/gfx/gl/GLContext.h:683
#1  0x5d99bed6 in mozilla::gl::GLContext::raw_fDeleteProgram (this=0x6dbf0800, program=210003)
    at /home/roc/mozilla-inbound/gfx/gl/GLContext.h:2232
#2  0x5d99c10a in mozilla::gl::GLContext::fDeleteProgram (this=0x6dbf0800, program=210003)
    at /home/roc/mozilla-inbound/gfx/gl/GLContext.h:2270
#3  0x5daa0ae6 in mozilla::layers::ShaderProgramOGL::~ShaderProgramOGL (this=0x6d7df000, __in_chrg=<optimized out>)
    at /home/roc/mozilla-inbound/gfx/layers/opengl/OGLShaderProgram.cpp:491
#4  0x5da86bdc in mozilla::layers::CompositorOGL::CleanupResources (this=0x67ae4d70)
    at /home/roc/mozilla-inbound/gfx/layers/opengl/CompositorOGL.cpp:177
2015-06-12 03:18:46 +12:00
Robert O'Callahan
f99f603344 Bug 1143575. Add some #includes to avoid more unified-build issues on Windows. r=nical 2015-06-09 14:35:04 +12:00
Robert O'Callahan
b03bc99164 Bug 1143575. Add some #includes to avoid unified-build issues on Windows. r=nical 2015-06-09 05:27:37 +12:00
Robert O'Callahan
e23366ece4 Bug 1143575. Avoid including Android's GraphicBuffer.h from LayersTypes.h. r=nical
On some Android versions, GraphicBuffer.h ends up including libui's
hardware.h, which #defines the symbols version_minor and version_major, which
are used as field names in Ogg Theora's th_info struct. Later patches will
require some files to include both Theora headers and LayerTypes.h.
2015-06-08 21:27:23 +12:00
Robert O'Callahan
5b84875398 Bug 1143575. #include nsDebug.h in YCbCrImageDataSerializer.cpp for NS_WARN_IF. r=nical 2015-06-08 22:19:11 +12:00
Tom Klein
d1862fef11 Bug 1143303 - extend D2D circle workaround to work for small circles. r=bas 2015-07-06 22:46:00 +02:00
Kartikaya Gupta
49cce06c18 Bug 1169802 - Temporary workaround for a deeper bug, to prevent an assertion from firing. r=botond 2015-07-06 15:36:56 -04:00
Kartikaya Gupta
d4b11ffbea Bug 1180780 - Enable handling of pixel-scrolling wheel events with APZ on Windows and Linux. r=mstange 2015-07-06 14:10:35 -04:00
Mason Chang
252332b5d8 Bug 1179049. Properly null check for draw target in box shadow code. r=mstange 2015-07-06 08:58:22 -07:00
Nicolas Silva
bb9aef341d Bug 1178816 - Fix a crash when DrawTargetD2D1 fails to initialize. r=milan 2015-07-06 17:57:03 +02:00
Kartikaya Gupta
fa9c7e68df Bug 1176798 - Increase the content response timeout to prevent intermittently failing. r=botond 2015-07-06 09:53:11 -04:00
Lee Salzman
29638db104 Bug 1180246 - Part 4 - reduce Cairo dependencies where safe in TextureClientD3D9. r=bas 2015-07-03 11:54:35 -04:00
Lee Salzman
f2c9badec6 Bug 1180246 - Part 3 - remove usage of cairo_d2d_device. r=bas 2015-07-02 17:44:53 -04:00
Lee Salzman
94f9867660 Bug 1180246 - Part 2 - kill gfxD2DSurface with fire. r=bas 2015-07-02 08:02:59 -04:00
Lee Salzman
54afeb6c7a Bug 1180246 - Part 1 - remove dependencies on gfxD2DSurface. r=bas 2015-07-02 08:02:51 -04:00
Karl Tomlinson
6649094fd6 bug 1180012 remove unused GetPrefFonts() r=jdaggett 2015-05-19 19:39:51 +12:00
Karl Tomlinson
4ed1715566 bug 1180010 make some methods protected and non-virtual r=jdaggett 2015-03-13 16:00:10 +13:00
John Daggett
000255f459 Bug 1171357 - log font matching for textruns. r=m_kato 2015-07-06 10:11:19 +09:00
Sotaro Ikeda
0782cc9b9f Bug 1112219 - Implement platform independent MediaResourceManager r=cpearce,bwu,nical 2015-07-05 11:56:04 -07:00
Kartikaya Gupta
33d69969fc Bug 1145295 - Add some debug logging to try and trace an intermittent assertion. r=nical 2015-03-31 08:50:14 -04:00
Juan Gomez
21d73728f3 Bug 1171931 - Refactor duplicated code using XRE_IsParent/ContentProcess. r=froydnj 2015-07-03 18:29:00 -07:00
Lynn Tran
6e524f1798 Bug 1031443 - Allow panning in the pinching state even if zooming is
disabled;r=botond
2015-07-01 14:58:32 -04:00
Kevin Wern
b4ac13dd45 Bug 1120683 - Properly handle unapplying 3D projective transforms throughout APZ code. r=botond
Whenever the inverse of a 3D projective transform is applied to a point, only use the result if it has a positive w-coordinate.

When transforming by a matrix that we know should be 2D, assert to that effect.

Transformations of rectangles (as opposed to points) remain to be audited.
2015-07-03 15:06:26 -04:00
Jeff Muizelaar
73c3107c18 Bug 1180322. Add a document describing the history of layers 2015-07-03 18:10:12 -04:00
Benoit Girard
4109137521 Bug 1132467 - Adjust qcms lut inverse binary search of non monotonic TRC. r=jrmuizel 2015-06-04 19:30:52 -04:00
Hamzata Diallo
9a79d7372b Bug 1178513 - Export libxul symbols needed by ACL. r=mattwoodrow 2015-07-02 15:19:35 -07:00
Nishad P
b4f1b16eab Bug 1178513 - Added RGBA8888 to RGB565 converter. r=mattwoodrow 2015-07-02 13:53:06 -07:00
Kyle
bf4c74166f Bug 1168189 - Force D2D1 CopySurface to use DrawBitmap like D2D. r=bas 2015-06-19 16:05:51 -04:00
Timothy Nikkel
7afb4241f1 Bug 1179298. ClientTiledPaintedLayer should allow empty transactions to succeed if it doesn't need to draw anything. r=mattwoodrow
ClientTiledPaintedLayer::RenderLayer was returning false immediately if there was no callback. It should check if it actually has to draw anything first, and then if it needs to paint it can return false if there is no callback.
2015-07-02 12:50:15 -05:00
Matt Woodrow
0af15741ff Bug 1175104 - Enable multithread support on our d3d11 content device. r=Bas 2015-04-24 15:30:46 +12:00
John Daggett
376663e9b2 Bug 1165179 - use all style matched faces within a font family. r=heycam 2015-07-02 10:44:14 +09:00
Markus Stange
c7e2ac0dc2 Bug 1148582 - Support multiple mask layers per layer in LayerManagerComposite. 2015-07-01 17:32:19 -04:00
David Anderson
b1bf38d87f Bug 1148582 - Apply async transforms to (ancestor) mask layers correctly. r=botond 2015-06-30 21:07:09 -04:00
David Anderson
a3ffcf73bf Bug 1148582 - Add mask layers to FrameMetrics for ancestor scroll frame clips. r=mattwoodrow 2015-06-21 12:27:31 -04:00
Ted Mielczarek
3f1f4d6f0a bug 1178733 - enable APZ for iOS. r=kats 2015-06-23 15:03:44 -07:00
Ted Mielczarek
ee856c1875 bug 1174705 - add GLContext::GetDefaultFramebuffer. r=jgilbert 2015-05-11 15:10:06 -04:00
Ted Mielczarek
94337e6cfe bug 1174701 - Don't use NEON assembly for ARM iOS in gfx/ycbcr. r=jrmuizel 2015-03-17 14:22:03 -04:00
Ted Mielczarek
f79beb91ba bug 1171642 - Disable some skia arm assembly for iOS. r=gw280 2015-06-15 11:47:43 -04:00
Ryan VanderMeulen
b83ecb4a8d Bug 1179287 - Skip TestTiledLayerBuffer due to Linux PGO bustage.
CLOSED TREE
2015-07-01 13:42:48 -04:00