Commit Graph

3488 Commits

Author SHA1 Message Date
Sotaro Ikeda
ccd1c78ece Bug 946720 - Enable new textures at ContentClient/ContentHost classes on gonk. r=nical 2014-02-13 09:46:59 -05:00
Nicolas Silva
27d133cd82 Bug 971744 - Move checks from GetAsDrawTarget to Lock in D3D9 TextureClient. r=mattwoodrow 2014-02-13 11:45:13 +01:00
Ryan VanderMeulen
37a64da0e4 Merge inbound to m-c. 2014-02-12 15:48:01 -05:00
Ali Akhtarzada
cf5f5c5cfa Bug 959121 - Moz2Dify ImageClientSingle::UpdateImage. r=nical 2014-02-12 10:24:21 -05:00
Ali Akhtarzada
8779b97143 Bug 959120 - Moz2Dify AutoLockImage contructor. r=nical
Changed the AutoLockImage constructor to take a SourceSurface
instead of a gfxASurface
2014-02-12 10:24:21 -05:00
Mason Chang
d92f7844bd Bug 958727 - Thebes textures leak memory if visible region shrinks. r=mattwoodrow 2014-02-12 10:24:20 -05:00
Sotaro Ikeda
c11af41305 Bug 968872 - Remove TEXTURE_DEALLOCATE_DEFERRED flag. r=nical 2014-02-12 09:54:23 -05:00
Bill McCloskey
414cc1efff Bug 963952 - [e10s] Don't use basic compositor when using D3D11 compositor (r=mattwoodrow) 2014-02-13 08:53:50 -08:00
Dmitry Rozhkov
2c9373d718 Bug 968222 - Update zoom scale and devPixelsPerPx in APZC upon orientation change. r=kats,botond 2014-02-12 21:27:45 +02:00
Tor Arvid Lund
471e8c6b58 Bug 948765 - Simplify (and fix issue) with CanvasLayerD3D9. r=nical
There seemed to be some duplication of code in the UpdateSurface method,
as well as an issue with updating that caused some reftests to fail.

In this patch, I remove the mSurface member variable from
CanvasLayerD3D9.h, and instead call mDrawTarget->Snapshot() as needed.

I also reuse the code to draw into the D3DLOCKED_RECT so that we don't
duplicate that portion anymore. It seems now to be more similar to the way
CanvasLayerD3D10 works.

The reftests now pass.
2014-02-12 10:07:47 -05:00
Tor Arvid Lund
19730a14f2 Bug 948765 - Implement BasicImageLayer::Paint. r=nical 2014-02-12 10:07:47 -05:00
Tor Arvid Lund
ea7fb02614 Bug 948765 - Implement BasicColorLayer::Paint. r=nical 2014-02-12 10:07:47 -05:00
Tor Arvid Lund
edf342c191 Bug 948765 - Port CopyableCanvasLayer to Moz2D. r=nical
This patch deprecates the UpdateSurface and PaintWithOpacity methods in the
CCL class. To do this, many other changes were made in the process.

BasicImplData::Paint was deprecated, and its mOperator was ported to Moz2D.
This caused changes in several *Layer subclasses.

GLScreenBuffer::Readback was deprecated.

I want to change the usages of the (now) deprecated functions, so that they
use the new Moz2D ones: CanvasClient::Update has been updated, but the big
one (BasicLayerManager::PaintSelfOrChildren) will have to be its own
project.
2014-02-12 10:07:46 -05:00
Tor Arvid Lund
3b6d00b226 Bug 948765 - Add a LayerUtils file in gfx/layers. r=nical
This file is currently just a helper for doing PremultiplySurface in
Moz2D. It corresponds to an existing Thebes one in the gfxUtils class.

An upcoming patch will require this PremultiplySurface method. The
existing one in gfxUtils has been renamed internally to
DeprecatedPremultiplyTables.
2014-02-12 10:07:46 -05:00
Kartikaya Gupta
773eff20ab Bug 970070 - Update the last-dispatched-paint metrics when we get a scroll update from layout. r=botond 2014-02-12 09:04:38 -05:00
Jacek Caban
d58401494a Bug 970429 - Don't allow using INITGUID in unified sources. r=Ehsan 2014-02-12 10:59:05 +01:00
Nicolas Silva
a98bb5a45e Bug 957560 - Fix some issues with CairoTextureClientD3D9 and DataTextureSourceD3D. r=Bas 2014-02-11 17:13:14 +01:00
Kartikaya Gupta
40bb6ba9dc Bug 965381 - Delay the single tap notification until after the touchdown is handled. r=daleharvey 2014-02-11 10:42:42 -05:00
Benoit Girard
fd8eb83796 Bug 963821 - Port FPS counter to the Compositor API. r=bas
--HG--
rename : gfx/layers/opengl/FPSCounter.h => gfx/layers/composite/FPSCounter.h
2014-02-10 17:14:11 -05:00
Doug Sherk
247f79eba5 Bug 969860: Set GEL's state back to GESTURE_NONE after spoofing a touch start on pinch end r=kats 2014-02-10 12:43:12 -05:00
Matt Woodrow
ede8359603 Bug 966679 - Follow-up to fix bustage on gcc 4.4, split Compose() into separate functions. CLOSED TREE 2014-02-11 17:58:01 +13:00
Matt Woodrow
aefec0df73 Bug 966679 - Mark Layers as Mutated if they have an invalid region. r=roc 2014-02-11 17:01:49 +13:00
Matt Woodrow
5179f9a16e Bug 966679 - Resolve RefLayers during IPDL transactions. r=nical 2014-02-11 17:01:20 +13:00
Matt Woodrow
21ada525f1 Bug 966679 - Make LayerProperties aware of RefLayers. r=roc 2014-02-11 17:00:46 +13:00
Matt Woodrow
1b9e2a7317 Bug 966679 - Make sure all RefLayers are resolved before calling BeginTransaction. r=nical 2014-02-11 17:00:16 +13:00
Matt Woodrow
2a1194062e Bug 966679 - Implement widget paint flashing for BasicCompositor. r=roc 2014-02-11 16:59:39 +13:00
Bill McCloskey
f98d7e2332 Bug 970736 - Make basic compositor handle texture wrapping correctly (r=mattwoodrow) 2014-02-10 18:46:34 -08:00
Bill McCloskey
9dc45e266e Bug 970711 - Fix typo in MemoryTextureClientData destructor (r=mattwoodrow) 2014-02-10 18:46:27 -08:00
Bill McCloskey
f9915544fb Bug 970711 - Make basic compositor respect TexturedEffect filter (r=mattwoodrow) 2014-02-10 18:45:11 -08:00
L. David Baron
fb212fb7fe Bug 969898: Make gfx/heap-textures memory reporter support 64-bit numbers on 64-bit platforms. r=njn 2014-02-10 17:03:24 -08:00
Bill McCloskey
2fde094e5b Bug 970496 - Make sure software compositor's invalid region is sane (r=mattwoodrow) 2014-02-10 16:43:32 -08:00
Wes Kocher
9ac352879f Backed out changeset bde8b5894490 (bug 965381) for APZC failures 2014-02-10 16:02:06 -08:00
Kartikaya Gupta
4fcbfd56c8 Bug 965381 - Delay the single tap notification until after the touchdown is handled. r=daleharvey 2014-02-10 17:34:24 -05:00
Sotaro Ikeda
95e52e8e66 Bug 962101 - Handle Remove Texture in Compositable level. r=nical 2014-02-10 15:52:35 -05:00
Ryan VanderMeulen
0e3dc9eb1e Merge m-c to inbound. 2014-02-10 15:43:52 -05:00
Ryan VanderMeulen
c608b2f60f Merge inbound to m-c. 2014-02-10 15:42:58 -05:00
Ryan VanderMeulen
3acb149ed6 Backed out changeset 68de70a3d9f8 (bug 969591) for assertions. 2014-02-10 11:04:20 -05:00
Mason Chang
49abbda48a Bug 969591 - Cleanup Thebes Layer if mRegionToDraw is Empty and we still have a buffer allocated. r=mattwoodrow 2014-02-10 08:56:31 -05:00
Kartikaya Gupta
02c709dbcb Bug 969455 - Update FrameMetrics logging to include scroll generation. r=drs 2014-02-10 10:27:06 -05:00
Bill McCloskey
350afc33d0 Bug 968635 - Store texture flags in the right place in TextureClientX11 (r=mattwoodrow) 2014-02-10 11:28:50 -08:00
Morris Tseng
60b21194d8 Bug 959114 - Remove websockify dependency from LayerScope. r=vlad, r=cku 2014-02-10 08:45:15 -05:00
Matt Woodrow
b656ab79ee Bug 966679 - Mark the layer as invalid when we get an async texture update. r=nical 2014-02-10 15:24:28 +13:00
Matt Woodrow
36d2cda1c2 Bug 966679 - Use correct texture format when coverting YCbCr image data back into an image surface. r=nical 2014-02-10 15:24:28 +13:00
Matt Woodrow
26e1d6e1e2 Bug 926745 - Don't call ForceRemove manually in compositable code. r=nical,sotaro 2014-02-10 15:24:27 +13:00
Ms2ger
b995cb3325 Bug 952033 - Part b: Use IntSize in CreateOffscreenSurface; r=roc 2014-02-09 09:04:38 +01:00
Bas Schouten
c532a9d43f Bug 805406: Do not validate ThebesLayers when the D2D device is invalid. r=jrmuizel 2014-02-08 19:37:38 +00:00
Doug Sherk
a1acaa79fc Bug 964421 - Add a mechanism to HandleLongTap(Up) to allow content to preventDefault touches and stop panning while long tapping. r=kats 2014-02-07 18:13:50 +01:00
Nicolas Silva
c158e0d657 Bug 967505 - Fix build bustage on a CLOSED TREE. 2014-02-10 11:50:43 +01:00
Nicolas Silva
7e8bc1363a Bug 967505 - Fix a crash with the D2D debug layer. r=Bas 2014-02-10 11:21:11 +01:00
Kartikaya Gupta
7177ac6b0f Bug 965593 - Flush repaints along the entire overscroll handoff chain on touch-end. r=botond 2014-02-07 14:11:32 -05:00
Kartikaya Gupta
d03a94c70d Bug 969072 - Move the CANCEL event handling into the pinch gesture code. r=drs 2014-02-07 11:26:32 -05:00
Kartikaya Gupta
760ee81759 Bug 969072 - Make GestureEventListener only accept MultiTouchInput types. r=drs 2014-02-07 11:25:58 -05:00
Kartikaya Gupta
cef9d5925b Bug 969072 - Only pass events to the GestureEventListener if it is a multitouch input. r=drs 2014-02-07 11:25:58 -05:00
Carsten "Tomcat" Book
e6758943ec Backed out changeset de4503ebba6a (bug 968222) for causing m2 test failures on B2G ICS Emulator Opt on a CLOSED TREE 2014-02-07 15:05:25 +01:00
Nicolas Silva
2714633f7e Bug 965096 - Use image surfaces for ARGB content with non-deprecated textures. r=BenWa 2014-02-07 14:30:01 +01:00
Nicolas Silva
3896b4682e Bug 965096 - Backed out changeset 224e15123ae0 because of wrong bug number. r=me 2014-02-07 14:24:30 +01:00
Nicolas Silva
4005c9bb4a Bug 955096 - Use image surfaces for ARGB content with non-deprecated textures. r=BenWa 2014-02-07 14:20:19 +01:00
Nicolas Silva
439a8bb2f8 Bug 968811 - TextureClientD3D11::ImplementsLocking. r=mattwoodrow 2014-02-07 12:28:49 +01:00
Dmitry Rozhkov
8ccef68c7b Bug 968222 - Update zoom scale in APZC upon orientation change. r=botond,kats
From f60ff14c5fdd1f7fef29ea5b2d7b4c8fa5710157 Mon Sep 17 00:00:00 2001
---
 gfx/layers/ipc/AsyncPanZoomController.cpp | 12 +++++++++---
 1 file changed, 9 insertions(+), 3 deletions(-)
2014-02-06 11:57:42 +02:00
Sotaro Ikeda
c3d6dbc65c Bug 966446 - Handle GrallocBufferActor::ActorDestroy for new texture. r=nical 2014-02-06 20:32:29 -05:00
Ryan VanderMeulen
7549943bac Merge m-c to inbound. 2014-02-12 15:58:22 -05:00
Benoit Girard
8ee5fc432a Bug 971875 - Fix regression to HWC on b2g. r=sotaro
--HG--
extra : rebase_source : 8aaa3818d1dbfe1e07137010a7734a2da8dc3379
2014-02-12 15:25:52 -05:00
Tor Arvid Lund
7e2593eb94 Bug 968746 - Remove unused CanvasLayer::Data::mSurface. r=nical
Since no code path ever set CanvasLayer::Data::mSurface, remove the field
entirely
2014-02-06 09:46:30 -05:00
Carsten "Tomcat" Book
7dbd13a7f9 Merge mozilla-central to mozilla-inbound 2014-02-06 13:22:35 +01:00
Carsten "Tomcat" Book
f2b92ffca9 merge b2g-inbound to mozilla-central 2014-02-06 13:17:08 +01:00
Nicolas Silva
37d70d06f6 Bug 966528 - Use a specific IPDL message for component alpha. r=mattwoodrow 2014-02-06 12:28:29 +01:00
Ryan VanderMeulen
26eab41224 Merge m-c to b2g-inbound on a CLOSED TREE. 2014-02-05 16:12:18 -05:00
Ryan VanderMeulen
4e6cca4a6d Merge b2g-inbound to m-c. 2014-02-05 15:47:36 -05:00
Bill McCloskey
3cc9c17f85 Backout bug 947045 for build failures on a CLOSED TREE 2014-02-05 09:05:25 -08:00
David Anderson
25258de3eb Bug 947045 - Use Xlib surfaces in basic compositor (r=mattwoodrow) 2014-02-05 08:39:02 -08:00
Doug Sherk
51a20e3e03 Bug 967449: Enlarge the opposite axis's displayport when an axis's scrollable rect <= composition bounds rect r=kats 2014-02-04 16:27:10 +00:00
Chris Lord
a6dc8219cb Bug 967502 - Disallow checkerboarding when using APZC. r=kats
This modifies the asynchronous scroll position so that unrendered content is
never revealed.
2014-02-05 15:12:20 +00:00
Nicolas Silva
43982b2ac9 Bug 966999 - Remove some deprecated GL textures code. r=vlad 2014-02-04 21:47:20 +01:00
Nicolas Silva
613575978b Bug 952507 - Flush the back buffer after syncing with the front buffer in the buffered ContentClient. r=Bas 2014-02-04 21:35:22 +01:00
Nicolas Silva
acfdb8a8c9 Bug 967573 - Better document TextureClient. r=sotaro 2014-02-04 21:32:02 +01:00
Nicolas Silva
ef75ee0847 Bug 967473 - Fix layer diagnostics with tiling. r=BenWa 2014-02-04 17:18:10 +01:00
Ryan VanderMeulen
a0af173362 Merge b2g-inbound to m-c. 2014-02-04 14:43:23 -05:00
Matt Woodrow
0cca6cae1f Bug 966543 - Ensure that the MacIOSurfaceTextureHost has taken a ref to the surface before letting the client side object be destroyed. r=nical 2014-02-04 12:25:22 +13:00
Fabrice Desré
9bc5d689df Bug 967098 - Expose settings to twiddle displayport prefs - followup r=me 2014-02-03 16:37:45 -08:00
Kartikaya Gupta
4dfaa1672f Bug 967098 - Add a couple of prefs to control displayport calculation behaviour at runtime. r=botond 2014-02-03 18:57:34 -05:00
Doug Sherk
2b46356e03 Bug 968112: Remove acceleration code from APZC r=kats 2014-02-05 15:15:05 +01:00
Mason Chang
5b6b7b5be5 Bug 960673 - Improve scrollgraph to track layer transform. r=benwa 2014-01-31 21:50:06 -05:00
Jeff Muizelaar
d304a50eff Bug 962721. Handle the flip for CopyTexImage2D. r=bjacob
This fixes a regression from b75d69931d4a. This call to CopyTexImage2D was
forgotten during the move to handling the flip in the compositor.
2014-01-31 10:59:14 -05:00
Benoit Jacob
4703621d85 Bug 964442 - Make CreateImage just take a plain format parameter - r=jrmuizel 2014-01-30 17:58:51 -05:00
Benoit Jacob
3ee7a2d643 Bug 962784 - Convert ImageTypes.h to typed enums - r=jrmuizel
find content/media media/webrtc gfx/layers gfx/tests dom/camera dom/plugins image/src layout/base -type f | grep -v 'gfx/layers/ImageTypes.h' | xargs sed -i 's/\(^\|[^A-Za-z0-9_]\)\(GRALLOC_PLANAR_YCBCR\|PLANAR_YCBCR\|SHARED_RGB\|CAIRO_SURFACE\|MAC_IOSURFACE\|REMOTE_IMAGE_BITMAP\|SHARED_TEXTURE\|REMOTE_IMAGE_DXGI_TEXTURE\|D3D9_RGB32_TEXTURE\)\($\|[^A-Za-z0-9_]\)/\1ImageFormat::\2\3/g'

find content/media media/webrtc gfx/layers gfx/tests dom/camera dom/plugins image/src layout/base -type f | grep -v 'gfx/layers/ImageTypes.h' | xargs sed -i 's|ImageFormat\:\:ImageFormat|ImageFormat|g'

find content/media media/webrtc gfx/layers gfx/tests dom/camera dom/plugins image/src layout/base -type f | xargs sed -i 's/\(^\|[^A-Za-z0-9_]\)STEREO_MODE_\(MONO\|LEFT_RIGHT\|RIGHT_LEFT\|BOTTOM_TOP\|TOP_BOTTOM\)\($\|[^A-Za-z0-9_]\)/\1StereoMode::\2\3/g'

find content/media media/webrtc gfx/layers gfx/tests dom/camera dom/plugins image/src layout/base -type f | grep -v 'gfx/layers/ImageTypes.h' | xargs sed -i 's|StereoMode\:\:StereoMode|StereoMode|g'
2014-01-30 17:58:49 -05:00
Kartikaya Gupta
ca953a79ea Bug 964997 - When scrolling is disabled, don't apply the velocity transformations to the displayport. r=botond 2014-01-30 13:37:06 -05:00
snigdha
463dc116e2 Bug 962826 - Return the product from GetTouchStartTolerance(). r=botond 2014-01-30 13:26:54 -05:00
Sotaro Ikeda
38e9a6c028 Bug 964976 - Prevent crash of unsupported pixel format gralloc allocation. r=nical 2014-01-30 11:17:10 -05:00
Jeff Gilbert
b6bc20817d Bug 960319 - Don't use GLTextures for non-ANGLE D3D WebGL layers. r=vlad 2014-01-30 10:59:16 -05:00
Nicholas Cameron
9c2572e5e5 Bug 959781. Ensure we are using the correct content type in BeginPaint and BorrowDrawTargetForPainting. r=mattwoodrow 2014-01-30 22:39:11 +13:00
Benoit Girard
6a537286af Bug 956263 - Add a preference to control the compositor frame-rate. r=mstange 2014-01-29 18:26:38 -05:00
Vladimir Vukicevic
99fe1819f0 b=951799, cache uniforms in OGLShaderProgram, part 3 - inline; r=bjacob 2014-01-29 17:53:38 -05:00
Vladimir Vukicevic
5a9f9c3174 b=951799, cache uniforms in OGLShaderProgram, part 2 - fix LayerProgramProjectionMatrix; r=bjacob 2014-01-29 17:53:38 -05:00
Vladimir Vukicevic
0fec1fd861 b=951799, cache uniforms in OGLShaderProgram, part 1; r=bjacob 2014-01-29 17:53:37 -05:00
Nicolas Silva
9bfe1542f1 Bug 965250 - Fix TextureHostD3D9. r=Bas 2014-01-29 17:27:01 +01:00
Nicolas Silva
7db5e38e47 Bug 964794 - Remove extra Lock and minimize DT creation/destruction in D3D11 TextureClient. r=Bas 2014-01-29 17:26:42 +01:00
Doug Sherk
f21220320e Bug 937343: Remove pan start logic on pinch end from APZC r=botond 2014-01-24 22:13:12 +00:00
Doug Sherk
7db6e5eb05 Bug 937343: Spoof a touch start event on pinch end in GestureEventListener r=botond 2014-01-24 22:13:10 +00:00
Ali Akhtarzada
dc2def3d55 Bug 964745 - GetAsSourceSurface in SharedTextureImage and DeprecatedSharedRGBImage. r=nical 2014-01-28 10:27:36 -05:00
Ali Akhtarzada
1abf911f03 Bug 961715 - Implement D3D9SurfaceImage::GetAsSourceSurface. r=nical 2014-01-28 09:14:10 -05:00