Commit Graph

9169 Commits

Author SHA1 Message Date
Markus Stange
b211c2d217 Bug 958550 - Use ScopedGLState for scissor test + blend state in two more places. r=bjacob 2014-01-13 15:29:10 +01:00
guozhu cheng
63f2dff3c2 Bug 907196 - Split CreateCMSOutputProfile profile loading into GetCMSOutputProfileData. r=BenWa, r=jmuizelaar 2013-11-07 18:20:08 +08:00
Ali Akhtarzada
e95469b62c Bug 958490 - Implement ImageContainer::Lock/GetAsCurrentSurface. r=nical
Added member functions GetCurrentAsSourceSurface and
LockCurrentAsSourceSurface to return a gfx::SourceSurface instead
of a gfxASurface.

Deprecated LockCurrentAsSurface and GetCurrentAsSurface
2014-01-15 10:06:43 -05:00
Ali Akhtarzada
d03468c1ae Bug 958489 - Implement base Image::GetAsSourceSurface. r=nical
Added an Image::GetAsSourceSurface to return a gfx::SourceSurface
and implemented in terms of gfxPlatform::GetSourceSurfaceForSurface.

Deprecated GetAsSurface.
2014-01-15 10:06:43 -05:00
Nick Lebedev
74c26e30db Bug 795567 - Part 7: Add gtests for the apzc to cover touch-action stuff. r=kats 2014-01-15 10:03:16 -05:00
Nick Lebedev
182400607b Bug 795567 - Part 5: Add zoom prevention based on the touch-action value. r=kats 2014-01-15 10:03:16 -05:00
Nick Lebedev
9658ee90e0 Bug 795567 - Part 4: Rework apzc to wait for touch-action value from content as it waits for preventDefault value from listeners. r=kats 2014-01-15 10:03:15 -05:00
Nick Lebedev
7ee05aa952 Bug 795567 - Part 3: Add panning restriction and retrieving of touch-action value to apzc. r=kats 2014-01-15 10:03:15 -05:00
Benoit Jacob
891756510c Bug 950113 - Avoid destroying our texture everytime we composite a ImageHost - r=nical 2014-01-15 07:45:28 -05:00
Chris Lord
be78778251 Bug 950993 - Fix async scrolling of fixed layers within scrollable sub-layers. r=roc
Fixed layers are relative to their nearest scrollable ancestor, so when we
encounter a scrollable layer in AlignFixedAndStickyLayers, reset the transform
and sub-tree root to start from that scrollable layer.

This fixes async scrolling of the fixed header in the Firefox marketplace on
B2G.
2014-01-15 12:15:50 +00:00
Brian Smith
7afb7d46ab Bug 958906: Remove reliance on implicit conversion from enum types to integers to fix VS2013 build bustage, r=bjacob
--HG--
extra : rebase_source : 2e197e5f74cf20eae6f9b1801056d0438e527696
2014-01-11 22:26:20 -08:00
Nicholas Cameron
ca5667544b Bug 956967. Don't use direct2d if we forcing d3d9. r=Bas
--HG--
extra : rebase_source : 5a4505f9fe043cce965b11a0d1c33815d2b0be3e
2014-01-12 17:02:30 +13:00
Nicholas Cameron
956cec3e3b Bug 956967. If we have to fallback to our default Azure backend, we must support that backend. r=nical
--HG--
extra : rebase_source : 2cc8d34078df6db64353cf5236572f085c2be72e
2014-01-12 17:02:18 +13:00
Xavier Fung
79cfe6f9b1 Bug 892859 - Fix Angle to build on Visual Studio 2013. r=bjacob 2014-01-12 05:09:29 +09:00
Benoit Jacob
4c1ecd5cc0 Bug 943925 - Fix the loading of the glDrawBuffers symbol - r=jgilbert 2014-01-10 22:14:17 -05:00
Benoit Jacob
62136dc55f Bug 958256 - Mark standard_derivatives as unsupported on Vivante drivers - r=jgilbert,snorp 2014-01-10 14:50:25 -05:00
Benoit Jacob
873406e3f0 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
d73dfad4ba 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
300f4ba3a9 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
84374236d8 Bug 958375 - 5/9 - Make FilterType 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
535a216635 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
1d401ace71 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
Benoit Jacob
d1458b6337 Bug 958369 - 5/5 - Make ContextType a typed enum - r=jgilbert 2014-01-10 13:55:24 -05:00
Benoit Jacob
0061fc3d55 Bug 958369 - 4/5 - remove the ContextFlags enum - r=jgilbert 2014-01-10 13:55:23 -05:00
Benoit Jacob
290dc2d8f5 Bug 958369 - 3/5 - Make SharedTextureShareType and SharedTextureBufferType typed enums - r=jgilbert 2014-01-10 13:55:23 -05:00
Benoit Jacob
3e8029331c Bug 958369 - 2/5 - Make GLVendor and GLRenderer typed enums - r=jgilbert 2014-01-10 13:55:23 -05:00
Benoit Jacob
c15d7a8ebe Bug 958369 - 1/5 - Make GLFeature a typed enum - r=jgilbert 2014-01-10 13:55:23 -05:00
Benoit Jacob
685a9f25c6 Bug 958368 - Remove the code paths to load a custom Mesa/llvmpipe build instead of system OpenGL (sadface) - r=jgilbert 2014-01-10 13:55:23 -05:00
Tom Schuster
21327fd2ce Bug 939294 - Handlify all the rest. r=terrence 2014-01-09 18:39:37 +01:00
Markus Stange
1fe1f9e192 Bug 958025 - Only enable GL_SCISSOR_TEST when we know that we have a useful scissor rect. r=bjacob 2014-01-09 17:59:32 +01:00
Mike Shal
f463dc9014 Bug 875013 - Remove VPATH in gfx/; r=joey 2014-01-07 17:50:44 -05:00
Bas Schouten
a82c4164bc Bug 941585: Better dealing with degenerate beziers. r=jrmuizel 2014-01-09 17:04:17 +01:00
Daniel Holbert
aa0fe015df Bug 957784: Mark gfx/layers as FAIL_ON_WARNINGS. r=nical 2014-01-09 06:26:28 -08:00
Daniel Holbert
f20f3c0053 Bug 957904: Fix signed/unsigned comparison build warnings in CompositorD3D11.cpp. r=nrc 2014-01-09 06:26:20 -08:00
Daniel Holbert
5e99c198aa Bug 957858: Drop unnecessary 'switch' in CreateTextureHostBasic, to fix MSVC C4065 warning. r=nical 2014-01-09 06:26:20 -08:00
Daniel Holbert
8e71085a99 Bug 957884: Add return statement to default case in SurfaceFormatToDXGIFormat(), to address build warning. r=nical 2014-01-09 06:26:20 -08:00
Daniel Holbert
aedfdeb947 Bug 957859: Add "f" suffix to some numeric literals in Compositor.cpp and ContainerLayerComposite.cpp, to fix MSVC C4305 warnings. r=nical 2014-01-09 06:26:19 -08:00
Daniel Holbert
dd642a8df5 Bug 957783: Drop unused variable 'compositable' from CompositableParentManager::ReceiveCompositableUpdate. r=nical 2014-01-09 06:26:19 -08:00
Daniel Holbert
61d7416f60 Bug 957499: Fix SetCompositor() signature in subclasses of NewTextureSource, to actually override the parent's impl (and to fix -Woverloaded-virtual build warnings). r=nical 2014-01-08 11:25:52 -08:00
Nicholas Cameron
7dbbad3a27 Bug 951556. Don't do multiple flushes due to DrawBufferWithRotation. r=mattwoodrow 2014-01-09 13:57:52 +13:00
Wes Kocher
3e635439d4 Backed out changeset 010f5faed9cf (bug 956796) for build bustage 2014-01-08 15:03:23 -08:00
Kartikaya Gupta
518d47feb6 Bug 907179 - Rewrite the displayport calculation to be simpler and more effective. r=botond 2014-01-08 17:55:33 -05:00
Kartikaya Gupta
a3d5b19c53 Bug 907179 - Label the velocity vector as being in screen units. r=botond 2014-01-08 17:53:58 -05:00
Milan Sreckovic
6967c61375 Bug 956796 - A bad assertion and a typo in the pref name cancelled each other. Fix, and create #defines for the pref names in this file to avoid problems like this. r=bgirard 2014-01-06 14:14:39 -05:00
Jeff Muizelaar
a76d484d60 Bug 953334. Clear the clip on the surface when we get a new DC. r=BenWa
Currently we can think that we have a clip set on the DC when we actually
don't. Calling _cairo_win32_surface_set_clip_region(NULL) clears this so that
when we call it with the a region we will set it properly on the new DC that
doesn't have the clip set on it.

--HG--
extra : rebase_source : c9ca3d57bbd99aacdee5c0b3f581376792cd1893
2014-01-08 16:02:22 -05:00
Jonathan Kew
373db61725 bug 951009 - update graphite2 library to upstream v1.2.4. r=jdaggett 2014-01-08 17:49:32 +00:00
Markus Stange
9d2935a7ed Bug 956266 - Don't rebuffer quad vertex + texture coordinates when drawing simple quads in CompositorOGL. r=nrc 2014-01-08 13:00:04 +01:00
Markus Stange
d8a934661f Backing out changeset 1ff04cca465b (bug 956266) due to compilation failures on Android. 2014-01-08 11:36:13 +01:00
Markus Stange
caa0777649 Bug 951443 - Don't attempt to create 0x0-sized CGContexts when the UnboundnessFixer encounters an empty clip. r=jrmuizel 2014-01-08 10:31:17 +01:00
Markus Stange
48ff985804 Bug 956266 - Don't rebuffer quad vertex + texture coordinates when drawing simple quads in CompositorOGL. r=nrc 2014-01-08 10:31:07 +01:00
Markus Stange
c1ee39df36 Bug 941887. r=roc 2014-01-08 10:30:03 +01:00
Nicholas Cameron
ee3fdfe0f9 Fix bustage from bug 933549 because I am an idiot who forgot to qref, on a CLOSED TREE 2014-01-08 14:21:56 +13:00
Nicholas Cameron
100d053c89 Bug 933549. Change PaintState to use a DrawTarget instead of a gfxContext. r=mattwoodrow 2014-01-08 10:09:34 +13:00
Nicholas Cameron
a44e014503 Bug 933549. Preqrequisites - Matrix::HasNonIntegerTranslation and SetAntialiasingFlags. r=mattwoodrow 2014-01-08 10:06:08 +13:00
Nicholas Cameron
632494d218 backed out bug 933549 on a CLOSED TREE 2014-01-08 10:27:14 +13:00
Nicholas Cameron
0b741cefca Bug 933549. Change PaintState to use a DrawTarget instead of a gfxContext. r=mattwoodrow 2014-01-08 10:09:34 +13:00
Nicholas Cameron
a5ff98613f Bug 933549. Preqrequisites - Matrix::HasNonIntegerTranslation and SetAntialiasingFlags. r=mattwoodrow 2014-01-08 10:06:08 +13:00
Benoit Jacob
262c6719b9 Bug 956401 - 9/9 - Optimization: cache the scissor rect in GLContext - r=vladv 2014-01-07 15:02:19 -05:00
Benoit Jacob
011fc0dca7 Bug 956401 - 8/9 - Remove GLContext's scissor stack - r=jgilbert 2014-01-07 15:02:19 -05:00
Benoit Jacob
2e02a1fbed Bug 956401 - 7/9 - CompositorOGL::{Begin,End}Frame do not need to touch the scissor rect - r=nrc 2014-01-07 15:02:19 -05:00
Benoit Jacob
85ac0b59a7 Bug 956401 - 6/9 - Remove Compositor::SaveState and Compositor::RestoreState - r=nrc 2014-01-07 15:02:19 -05:00
Benoit Jacob
c3bd0d0486 Bug 956401 - 5/9 - Let DrawWindow{Under,Over}lay take care of saving and restoring GL state - r=nrc 2014-01-07 15:02:18 -05:00
Benoit Jacob
31532918d7 Bug 956401 - 4/9 - Add ScopedGLState ctor without value parameter, leaving state unchanged - r=jgilbert 2014-01-07 15:02:18 -05:00
Benoit Jacob
32804b1954 Bug 956401 - 3/9 - Let DrawQuadInternal use ScopedScissorRect - r=nrc 2014-01-07 15:02:18 -05:00
Benoit Jacob
4225ba5b82 Bug 956401 - 2/9 - Add ScopedScissorRect helper - r=jgilbert 2014-01-07 15:02:18 -05:00
Benoit Jacob
03d16ba92e Bug 956401 - 1/9 - SetRenderTarget doesn't need to touch the scissor rect - r=nrc 2014-01-07 15:02:18 -05:00
Benoit Jacob
7165a98955 Bug 956154 - 2/2 - Optimization: cache the viewport rect - r=vladv 2014-01-07 15:02:18 -05:00
Benoit Jacob
331773ccee Bug 956154 - 1/2 - Remove GLContext's viewport stack - r=jgilbert 2014-01-07 15:02:18 -05:00
Benoit Jacob
5beca4573d Bug 956141 - Move y-flipping feature out of GLContext, into CompositorOGL - r=jgilbert,nrc 2014-01-07 15:02:18 -05:00
Benoit Jacob
e5f9daacd0 Bug 950903 - 8/8 - Make CanvasLayerD3D10 not try to use ANGLE shared handles with WGL - r=jgilbert 2014-01-07 15:02:18 -05:00
Benoit Jacob
7438273a3f Bug 950903 - 7/8 - Simplifications around EGLSurface override - r=jgilbert 2014-01-07 15:02:18 -05:00
Benoit Jacob
c1f0c05cb0 Bug 950903 - 6/8 - Remove GLContext::GetNativeData - r=jgilbert 2014-01-07 15:02:18 -05:00
Benoit Jacob
19409e921d Bug 950903 - 5/8 - Add static Cast methods to allow getting the backend-specific object from a GLContext - r=jgilbert 2014-01-07 15:02:18 -05:00
Benoit Jacob
829edabdf3 Bug 950903 - 4/8 - Expose GLContextWGL publicly - r=jgilbert 2014-01-07 15:02:18 -05:00
Benoit Jacob
d3cc19513c Bug 950903 - 3/8 - Expose GLContextCGL publicly - r=jgilbert 2014-01-07 15:02:18 -05:00
Benoit Jacob
5ace57f451 Bug 950903 - 2/8 - Expose GLContextGLX publicly - r=jgilbert 2014-01-07 15:02:18 -05:00
Benoit Jacob
174b06912b Bug 950903 - 1/8 - Expose GLContextEGL publicly - r=jgilbert 2014-01-07 15:02:18 -05:00
Nicolas Silva
4d46ad1708 Bug 938591 - Fix a test on a CLOSED TREE. r=me 2014-01-07 19:00:26 +01:00
Nicolas Silva
909730f4fa Bug 900244 - Implement the D3D9 specific TextureClients. r=nrc 2014-01-07 17:20:40 +01:00
Matt Woodrow
b6d62a28f6 Bug 900244 - Implement a shared D3D9 TextureClient. r=nical 2014-01-07 17:20:22 +01:00
Nicolas Silva
ad476e2176 Bug 938591 - Use texture flags in DataTextureSource + D3D9/11 fixes. r=nrc 2014-01-07 17:20:11 +01:00
Nicolas Silva
db6939af11 Bug 900244 - New D3D9 Textures for BufferTextures. r=nrc 2014-01-07 17:20:03 +01:00
Nicolas Silva
8aba9aaa4a Bug 938591 - New D3D11 TextureClient/Host. r=nrc 2014-01-07 17:19:52 +01:00
Ryan VanderMeulen
a7ec0e89f6 Backed out changeset 403ab3213879 (bug 893304) for bustage. 2014-01-07 10:07:32 -05:00
Morris Tseng
af6ed80837 Bug 893304 - Convert CanvasClient to new TextureClint/Host and replace SurfaceDescriptors with TextureClients inside SharedSurfaces. r=nical, r=snorp, r=jgilbert, r=bjacob 2014-01-07 09:58:03 -05:00
Matt Woodrow
4c56177515 Bug 952235 - Handle device offset when applying pattern transform. r=bas 2014-01-07 10:25:05 +09:00
Nicholas Cameron
3255d2032d Bug 950550. Test. r=jrmuizel
--HG--
extra : rebase_source : b5d2cc463f423127948a65ddd9567671a67e9250
2014-01-07 11:27:07 +13:00
Nicholas Cameron
e2ed561e72 Bug 950550. Restore the transform in DrawTargetCairo::PopClip. r=jrmuizel
--HG--
extra : rebase_source : 999f2d3794de202f68bf4adee8f4b0034e5f91b6
2014-01-07 11:27:03 +13:00
Neil Rashbrook
c1e7ed6e6b Restore the string header included previous to bug 918923 so that this file can be used with the external string API again (c.f. bug 920073) r=ehsan 2014-01-06 19:35:42 +00:00
Kartikaya Gupta
73446f3e6c Bug 915985 - Refactoring to introduce a ZoomConstraints class. r=botond 2014-01-06 13:26:44 -05:00
Birunthan Mohanathas
dfbad43639 Bug 784739 - Switch from NULL to nullptr in remaining directories; r=ehsan
--HG--
extra : rebase_source : 1ff19b2c8fd0e77fa8e822f5007a9fa3a6b6d474
2014-01-06 10:06:04 -05:00
Anthony Jones
ffb3cc0bf2 Bug 951463 - Rename ClampRect to ForceInside; r=botond 2014-01-06 10:05:07 -05:00
Kevin Simons
148b139c96 Bug 951686 - Set the SkBitmapDevice to opaque for BGRX surfaces. r=gwright 2014-01-06 10:03:55 -05:00
Ehsan Akhgari
eaa7491d77 Bug 927728 - Part 1: Replace PRUnichar with char16_t; r=roc
This patch was automatically generated by the following script:

#!/bin/bash
# Command to convert PRUnichar to char16_t

function convert() {
echo "Converting $1 to $2..."
find . ! -wholename "*nsprpub*" \
       ! -wholename "*security/nss*" \
       ! -wholename "*modules/libmar*" \
       ! -wholename "*/.hg*" \
       ! -wholename "obj-ff-dbg*" \
       ! -name prtypes.h \
       ! -name Char16.h \
         -type f \
      \( -iname "*.cpp" \
         -o -iname "*.h" \
         -o -iname "*.c" \
         -o -iname "*.cc" \
         -o -iname "*.idl" \
         -o -iname "*.ipdl" \
         -o -iname "*.ipdlh" \
         -o -iname "*.mm" \) | \
    xargs -n 1 sed -i -e "s/\b$1\b/$2/g"
}

convert PRUnichar char16_t
2014-01-04 10:02:17 -05:00
Nicholas Nethercote
ed423fbdef Bug 955942 (part 2) - Remove MemoryUniReporter. r=mccr8.
--HG--
extra : rebase_source : 9d70016cb19637ffece6409a184bf41d574cc6b4
2013-12-07 22:09:10 -08:00
Nicholas Nethercote
a228c41d0b Bug 955942 (part 1) - Remove unnecessary nsIMemoryReporter qualifiers from UNITS_* and KIND_* constants. r=mccr8.
--HG--
extra : rebase_source : f760568c08af03d9fec316bf95e7d4388078a03d
2013-12-11 11:59:39 -08:00
Benoit Jacob
cfbfd4618e Bug 949347 - Temporary strong reference to the actor in case mActor might be nulled concurrently - r=nical 2014-01-02 17:54:13 -05:00
Alessandro Decina
2704a7592d Bug 952769 - Add explicit strides to YCbCrImageDataSerializer. r=nical 2014-01-02 10:50:14 -05:00
Benoit Jacob
47e5f6dc26 Bug 949819 - Move remaining ReadPixels and GetTexImage helpers out of GLContext - r=jgilbert 2014-01-02 10:17:29 -05:00
Benoit Jacob
ffb2d08f4f Bug 949816 - Move override-EGLSurface feature out of GLContext - r=jgilbert 2014-01-02 10:17:28 -05:00