Commit Graph

357 Commits

Author SHA1 Message Date
Jeff Muizelaar
0ee07ef4d0 Bug 1064479. Redo how screen rotation is implemented on B2G/Layers. r=nical,mwoodrow
Currently we use a world transform on the LayerManager. This gets passed to the
screen render target which adjusts the gl transform to accomplish the rotation.
This causes a lot of the system to have to know about the transform.

Instead we can just bake the transform into the root layer's shadow transform.
Everything now mostly just works.

--HG--
extra : rebase_source : e0e170d191eef5887a2e6b17f71ac79037033006
2014-09-10 15:59:00 -04:00
Jonathan Watt
7740e7e3de Bug 1064084, part 1 - Convert all consumers of gfxContext::Translate() to use gfxContext::SetMatrix()/Multiply(). r=Bas 2014-09-11 07:57:38 +01:00
David Zbarsky
e0032b96bd Bug 1060165: Remove gfxPoint3D r=nical 2014-08-29 14:47:30 -04:00
Milan Sreckovic
33707ea4c4 Bug 1033310: Handle CreateDataSourceSurface* returning nullptr. f=nsilva, r=bschouten 2014-08-27 11:57:43 -04:00
Benoit Girard
83de16edc7 Bug 1010584 - Part 1: Introduce RenderTargetPixel. r=mwoodrow 2014-07-30 14:36:15 -04:00
Jeff Gilbert
9398064484 Bug 1049957 - Use UniquePtr for SharedSurface, SurfaceFactory. - r=kamidphish 2014-08-15 17:38:08 -07:00
Ehsan Akhgari
878aa1c893 Bug 1038158 - Give ReadbackResultWriter a private destructor; r=bjacob 2014-07-15 16:41:05 -04:00
Jeff Gilbert
2bcd725268 Bug 1037151 - Merge SharedSurface_GL into SharedSurface. - r=mattwoodrow 2014-07-11 15:10:49 -07:00
Jeff Gilbert
1d8a810b76 Bug 1033124 - Use correct and more precise coeffs for YCbCr->RGB conversion. - r=mattwoodrow,r=bas 2014-07-02 17:48:18 -07:00
Jeff Gilbert
df64a4a5ba Bug 1000640 - Update Gralloc and ANGLE ShSurf backends. - r=mattwoodrow 2014-06-18 17:04:05 -07:00
Jonathan Watt
b72e83de89 Bug 1025494 - Remove dead code in ThebesLayerD3D10 that creates a gfxD2DSurface. r=Bas 2014-06-17 18:35:51 +01:00
Jonathan Watt
8fd56c44b0 Bug 1022667, part 3 - Remove various bits of dead code from D3D layers code. r=Bas 2014-06-10 16:42:22 +01:00
Wes Kocher
2486c8c21e Backed out changeset cb1ea8162165 (bug 1000640) 2014-06-04 18:27:31 -07:00
Jeff Gilbert
541bb49d11 Bug 1000640 - Update Gralloc and ANGLE ShSurf backends. - r=mattwoodrow 2014-06-04 15:20:25 -07:00
Matt Woodrow
b5efb819dc Bug 1001845 - Simplify invalid regions to avoid spending excessive amounts of time in region code. r=roc 2014-04-28 16:17:31 +12:00
Nicolas Silva
2596280202 Bug 1013292 - Fix some using namespace + unified build issues in gfx code. r=kats 2014-05-22 12:11:45 +02:00
Matt Woodrow
d48272781d Bug 1008573 - Simplify D3D10 invalid region before we clear the surface. r=Bas 2014-05-13 11:46:54 +12:00
Matt Woodrow
978cad201e Bug 938395 - Enable single rect painting for d3d10. r=Bas 2014-05-08 14:56:48 +12:00
Carsten "Tomcat" Book
71063cf18c Backed out changeset 6efbbdf09c63 (bug 1001845) for refest failures 2014-05-06 14:09:56 +02:00
Matt Woodrow
a7147dc432 Bug 1001845 - Simplify invalid regions to avoid spending excessive amounts of time in region code. r=roc 2014-04-28 16:17:31 +12:00
Birunthan Mohanathas
504b581650 Bug 900908 - Part 3: Change uses of numbered macros in nsIClassInfoImpl.h/nsISupportsImpl.h to the variadic variants. r=froydnj 2014-04-27 03:06:00 -04:00
Jeff Gilbert
2513999f97 Bug 992874 - Don't try to texture from bad D3D10 texture. - r=bas 2014-04-16 11:05:48 -07:00
Kartikaya Gupta
892c72886a Bug 996768 - Remove redundant copies of HasOpaqueAncestorLayer. r=Bas 2014-04-16 13:56:52 -04:00
Jonathan Watt
61a8971526 Bug 996901 - Remove lots of gfxASurface.h and gfxImageSurface.h includes and forward declarations that are no longer needed. r=mattwoodrow 2014-04-16 01:41:40 +01:00
Jonathan Watt
d88be3bc70 Bug 960524 - Get rid of Image::DeprecatedGetAsSurface (Moz2D migration). r=mattwoodrow 2014-04-10 09:49:53 +01:00
Jonathan Watt
9210ee2835 Bug 964731 - Convert ImageLayerD3D10 and CreateOptimalSurface/CreateOptimalMaskSurface to Moz2D. r=Bas 2014-04-10 09:49:49 +01:00
Jeff Gilbert
0c3518b86d Bug 963962 - Fix use of CreateDrawTargetForData in CanvasLayerD3D9/10. r=Bas 2014-04-07 10:24:14 -04:00
Jonathan Watt
21505696c1 Bug 990752 - Make ImageLayerD3D9/ImageLayerD3D10::Render() use mSourceSurface instead of mDeprecatedSurface (Moz2D migration). r=mattwoodrow 2014-04-02 12:33:15 +01:00
snigdha
11404d6af2 Bug 798033 - Headers should generally not do "using namespace" at file scope. r=jib, r=jmathies, r=rjesup, r=ekr, r=ncameron, r=blassey 2014-04-01 08:29:25 -04:00
Jonathan Watt
e7ba4e35fb Bug 985049 - Remove gfxPlatform::SupportsAzureContent() and kill of the resulting dead code. r=mattwoodrow 2014-03-19 10:36:58 +08:00
Kyle Huey
f7eafc09a9 Bug 967364: Rename already_AddRefed::get to take. r=bsmedberg 2014-03-15 12:00:15 -07:00
Jeff Gilbert
8f4b994f55 Bug 976813 - Separate ShSurf::Texture for Prod and Cons. - r=snorp 2014-03-10 19:08:49 -07:00
Matt Woodrow
5f6ac4ba39 Bug 940455 - Add LayerManager functonality to clear out a portion of the window for the OS to paint. r=roc,Bas 2014-02-13 13:20:41 +13:00
Mike Conley
23fcc345bc Backing out bug 940455 (36e45a68452b) for numerous regressions. r=bustage-fix. 2014-03-07 16:50:30 -05:00
Matt Woodrow
64f553ecba Bug 940455 - Add LayerManager functonality to clear out a portion of the window for the OS to paint. r=roc,Bas 2014-02-13 13:20:41 +13:00
Ryan VanderMeulen
88ac28dca2 Backed out changeset 6f05267b4afc (bug 798033) for Android bustage. 2014-03-05 09:55:52 -05:00
snigdha
dde15b4b7a Bug 798033 - Headers should generally not do "using namespace" at file scope. r=jib, r=jmathies, r=rjesup, r=ekr, r=ncameron, r=blassey 2014-03-05 08:47:45 -05:00
Milan Sreckovic
588797fcdf Bug 971943: 2. webgl.force-layers-readback preference moved to gfxPrefs. r=gw280 2014-02-28 12:59:37 -05:00
Masatoshi Kimura
9f0004eb6e Bug 969918 - Use decltype to declare pointers for dynamic-loaded functions. r=jimm sr=roc 2014-02-18 07:32:52 +09: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
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
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
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
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
Ali Akhtarzada
c25cc9fe69 Bug 961714 - Implement RemoteDXGITextureImage::GetAsSourceSurface. r=nical 2014-01-28 09:00:10 -05:00
David Zbarsky
9bac52255b Bug 952977: Perform some cleanup r=nical 2014-01-27 15:25:19 -05:00
David Zbarsky
77f928fb9b Bug 952977: Convert ComputeEffectiveTransforms to gfx::Matrix4x4 r=nical 2014-01-27 10:28:04 -05:00
David Zbarsky
1a8648fa9e Bug 952977: Convert GetEffectiveTransform to gfx::Matrix4x4 r=nical 2014-01-24 17:49:19 -08:00
Ali Akhtarzada
43a832d438 Bug 962288 - Don't call DeprecatedGetAsSurface unless it's Cairo. r=mattwoodrow
Changeset from Bug 959123 caused a performance decrease because
DeprecatedGetAsSurface was being called on an image that may not
be a CAIRO_SURFACE.

Reverted CairoImage surface members to public access as they were
before the patch from bug 959123.
2014-01-24 08:42:12 -05:00
Benoit Jacob
15ef84b8b5 Bug 959448 - Convert most of LayersTypes.h to typed enums - r=nrc
find content/media dom/ipc widget/ gfx/tests gfx/ipc/ gfx/layers/ layout/ -type f | xargs sed -i 's/\(^\|[^A-Za-z0-9_]\)LAYERS_\(NONE\|BASIC\|OPENGL\|D3D9\|D3D10\|D3D11\|CLIENT\|LAST\)\($\|[^A-Za-z0-9_]\)/\1LayersBackend::LAYERS_\2\3/g'

find widget gfx/layers/ layout/ -type f | xargs sed -i 's/\(^\|[^A-Za-z0-9_]\)BUFFER_\(NONE\)\($\|[^A-Za-z0-9_]\)/\1BufferMode::BUFFER_\2\3/g'

find widget gfx/layers/ layout/ -type f | xargs sed -i 's/\(^\|[^A-Za-z0-9_]\)BUFFER_\(BUFFERED\)\($\|[^A-Za-z0-9_]\)/\1BufferMode::\2\3/g'

find gfx/layers/ layout/ -type f | xargs sed -i 's/\(^\|[^A-Za-z0-9_]\)CLIP_\(DRAW\|DRAW_SNAPPED\)\($\|[^A-Za-z0-9_]\)/\1DrawRegionClip::\2\3/g'

find gfx/layers/ layout/ -type f | xargs sed -i 's/\(^\|[^A-Za-z0-9_]\)CLIP_\(NONE\)\($\|[^A-Za-z0-9_]\)/\1DrawRegionClip::CLIP_\2\3/g'

find gfx/layers/ layout/ -type f | xargs sed -i 's/\(^\|[^A-Za-z0-9_]\)SURFACE_\(NONE\|OPAQUE\|SINGLE_CHANNEL_ALPHA\|COMPONENT_ALPHA\)\($\|[^A-Za-z0-9_]\)/\1SurfaceMode::SURFACE_\2\3/g'

find gfx/ipc/ gfx/layers/ layout/ -type f | xargs sed -i 's/\(^\|[^A-Za-z0-9_]\)SCALE_\(STRETCH\|SENTINEL\)\($\|[^A-Za-z0-9_]\)/\1ScaleMode::\2\3/g'

find gfx/ipc/ gfx/layers/ layout/ -type f | xargs sed -i 's/\(^\|[^A-Za-z0-9_]\)SCALE_\(NONE\)\($\|[^A-Za-z0-9_]\)/\1ScaleMode::SCALE_\2\3/g'
2014-01-23 13:26:41 -05:00