Commit Graph

4186 Commits

Author SHA1 Message Date
Nicolas Silva
7547bdadd5 Bug 997121 - Mark CompsoitorOGL MOZ_FINAL to prevent future problems with the virtual call in its destructor. r=bjacob 2014-04-28 16:10:35 +02:00
Nicolas Silva
57653a79d1 Bug 924622 - Make sure gfx's ipc shutdown happens before shutting down xpcom threads. r=bsmedberg, sotaro 2014-04-28 16:03:12 +02:00
Jerry Shih
10b9bf0872 Bug 993019 - Handle scheduling rendering task for cross-process rotation. r=mattwoodrow, r=nical 2014-04-27 22:22:00 -04:00
Nicolas Silva
a3e5e131b2 Bug 997699 - fixup some #includes of ipdl actors in layers. r=bjacob 2014-04-28 13:29:13 +02:00
Nicolas Silva
1762a07762 Bug 1001458 - Rename TileIterator ino BigImageIterator. r=BenWa 2014-04-28 13:27:25 +02:00
John Schoenick
cd277d150b Bug 977963 - Fix and re-enable linux glX texture_from_pixmap support r=mattwoodrow 2014-04-27 21:52:55 -07:00
Birunthan Mohanathas
ff8ce9bd42 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
Blair McBride
3b0373f215 Backed out 9 changesets (bug 987311, bug 989027, bug 989144). r=sheriff
Backed out changeset 046c061d91c2 (bug 989144)
Backed out changeset 3f1b41adeaef (bug 987311)
Backed out changeset 8d5a171564bd (bug 987311)
Backed out changeset dcc0d016de7a (bug 987311)
Backed out changeset 27f338fbc835 (bug 989027)
Backed out changeset 4a67f5144ea4 (bug 989027)
Backed out changeset 62ba0a377450 (bug 987311)
Backed out changeset 6a2542a5c865 (bug 987311)
Backed out changeset 1dfd9a457f34 (bug 987311)
2014-04-27 19:45:08 +12:00
Timothy Nikkel
31c72ce0d1 Bug 1000350. Don't overwrite a layout set display port base with an APZC-guessed one. r=kats
APZC set ones are only meant to fill in the gaps, use them only if we have nothing else.
2014-04-26 00:13:36 -05:00
Benoit Jacob
90c1d6c82b Bug 989145 - Convert ImageContainer::mBackendData to be an EnumeratedArray - r=nical 2014-04-25 22:34:06 -04:00
Benoit Jacob
c4a910a1bd Bug 989144 - Convert EffectChain::mSecondaryEffects to be an EnumeratedArray - r=nical 2014-04-25 22:34:06 -04:00
Benoit Jacob
9a5c85f26f Bug 987311 - 6/6 - Convert the rest of CompositorTypes.h to typed enums, final manual changes - r=nical 2014-04-25 22:34:06 -04:00
Benoit Jacob
1eb595b102 Bug 987311 - 5/6 - Convert the rest of CompositorTypes.h to typed enums, auto regex changes - r=nical 2014-04-25 22:34:06 -04:00
Benoit Jacob
8b0eada640 Bug 987311 - 4/6 - Convert the rest of CompositorTypes.h to typed enums, initial manual changes - r=nical 2014-04-25 22:34:05 -04:00
Benoit Jacob
b942b5da42 Bug 989027 - 2/2 - Make LayerRenderStateFlags a typed enum, auto regex changes - r=nical
find gfx -type f | xargs sed -i 's/\(^\|[^A-Za-z0-9_]\)LAYER_RENDER_STATE_\(Y_FLIPPED\|BUFFER_ROTATION\|FORMAT_RB_SWAP\)\($\|[^A-Za-z0-9_]\)/\1LayerRenderStateFlags::\2\3/g'
2014-04-25 22:34:05 -04:00
Benoit Jacob
6b8477f27a Bug 989027 - 1/2 - Make LayerRenderStateFlags a typed enum, manual changes - r=nical 2014-04-25 22:34:05 -04:00
Benoit Jacob
f069a1b4e7 Bug 987311 - 3/6 - Make TextureFlags a typed enum, final manual changes - r=nical 2014-04-25 22:34:05 -04:00
Benoit Jacob
b7bee0617e Bug 987311 - 2/6 - Make TextureFlags a typed enum, auto regex changes - r=nical 2014-04-25 22:34:05 -04:00
Benoit Jacob
eca6b6dd13 Bug 987311 - 1/6 - Make TextureFlags a typed enum, initial manual changes - r=nical 2014-04-25 22:34:04 -04:00
Jeff Gilbert
ee5fd3c43d Bug 998742 - Switch to MOZ_LITTLE_ENDIAN, and assert correctness. - r=bjacob 2014-04-25 17:35:36 -07:00
Ed Morley
551fcae876 Backed out changeset fbb86a21aba0 (bug 924622) for leaks on OS X 10.6; CLOSED TREE 2014-04-25 17:51:42 +01:00
Ed Morley
9cdfe0cb96 Backed out changeset 1a6ada013610 (bug 959089) 2014-04-25 17:51:15 +01:00
Ed Morley
43f0aad8bb Backed out changeset d58403b60c77 (bug 959089) 2014-04-25 17:51:11 +01:00
chiajung hung
ddbdc88968 Bug 959089 - Part 2: Use the new protocol to do buffer allocation. r=nical 2014-04-25 02:29:00 -04:00
chiajung hung
3c4bb6f838 Bug 959089 - Part 1: Implement a new protocol for manage shared buffers' allocation. r=vlad, r=gal 2014-04-25 02:28:00 -04:00
Nicolas Silva
8bb527f234 Bug 997699 - Move CompositableParent to the .cpp. r=bjacob 2014-04-25 17:15:58 +02:00
Kartikaya Gupta
8907ae425f Bug 992218 - Don't flag texture clients for reuse if they're actually still being used. r=nical 2014-04-25 09:39:20 -04:00
Nicolas Silva
1dff22e584 Bug 993004 - Fix missing #include on a CLOSED TREE 2014-04-25 14:00:52 +02:00
Nicolas Silva
96601efc35 Bug 924622 - Make sure gfx's ipc shutdown happens before shutting down xpcom threads. r=bsmedberg, sotaro 2014-04-25 13:55:36 +02:00
Nicolas Silva
5461b39924 Bug 993004 - Fix the clipping of tiles when the screen is rotated. r=botond 2014-04-25 13:38:17 +02:00
Carsten "Tomcat" Book
aa22e50ce8 Backed out changeset 3d116167774f (bug 993004) for bustage on a CLOSED TREE 2014-04-25 12:19:45 +02:00
Nicolas Silva
b0515a9619 Bug 993004 - Fix the clipping of tiles when the screen is rotated. r=botond 2014-04-25 11:51:17 +02:00
Nicolas Silva
8d838ce0bf Bug 997699 - Move CompositableChild to the .cpp. r=bjacob 2014-04-24 20:13:59 +02:00
Vivien Nicolas
b7ade0eb9c Bug 997235 - Followup to bug 986752 - CSS :active states get stuck with multiple on-screen touches. r=botond 2014-04-23 08:16:00 -04:00
Jerry Shih
8d68e90d59 Bug 993019 - [Camera] [Gallery] Orientation response is slow after launching from Camera app. r=kats 2014-04-24 05:43:00 -04:00
Carsten "Tomcat" Book
71f3e5ce17 Backed out changeset 87f6ee3f86c1 (bug 997367) for mochitest assertions on a CLOSED TREE 2014-04-24 10:40:35 +02:00
Peter Chang
333249dccc Bug 997367 - fix crash at CrossProcessCompositorParent::GetCompositionManager. r=roc 2014-04-22 19:07:00 +02:00
Matt Woodrow
48f1b997f8 Bug 994282 - Apply mask layer transforms in the correct order. r=roc 2014-04-24 19:38:35 +12:00
Benoit Jacob
e24e077e6a Bug 1000161 - No more crashy asserts in LayerTransactionParent - r=nical 2014-04-23 10:46:50 -04:00
Benoit Jacob
289d3578ea Bug 999697 - Make CreatedIncrementalTexture fail gracefully and return bool - r=nical 2014-04-23 10:46:02 -04:00
Benoit Jacob
cf6f7bcbfe Bug 1000104 - Fix error handling in RecvSetAsyncScrollOffset - r=kats 2014-04-23 10:42:40 -04:00
Benoit Jacob
8c9619e4b1 Bug 999686 - Don't MOZ_CRASH in CompositableHost on bad IPC message params - r=sotaro 2014-04-23 10:41:18 -04:00
Kartikaya Gupta
c9d1d817a2 Bug 1000170 - Remove reference to nonexistent class. r=nical 2014-04-23 14:12:31 -07:00
Kartikaya Gupta
256d2110e8 Bug 1000170 - Make ClientTiledThebesLayer report itself as such in layer dumps. r=BenWa 2014-04-23 14:12:31 -07:00
Ryan VanderMeulen
579398469c Backed out 3 changesets (bug 1000170, bug 1000370) for landing with the wrong patch author.
Backed out changeset a3f42079e69c (bug 1000370)
Backed out changeset e4e33370b648 (bug 1000170)
Backed out changeset bca2faf314bf (bug 1000170)
2014-04-23 14:20:54 -07:00
Brian Hackett
ccd7a0f0fe Bug 1000170 - Remove reference to nonexistent class. r=nical 2014-04-23 14:12:31 -07:00
Brian Hackett
8bd1143356 Bug 1000170 - Make ClientTiledThebesLayer report itself as such in layer dumps. r=BenWa 2014-04-23 14:12:31 -07:00
Maksim Lebedev
39d6a3538b Bug 979345 - Implement "touch-action: manipulation" CSS value for Pointer Events. r=kats,botond,dbaron,mbrubeck 2014-04-23 09:56:46 -04:00
Kartikaya Gupta
0b32f92022 Bug 993554 - Prevent clipping sync-scrollable subframes to the critical displayport on Fennec. r=BenWa,botond 2014-04-23 09:27:58 -04:00
Nicolas Silva
8222a3caee Bug 999736 - Add a null check in ContentHostTexture::Lock. r=bjacob 2014-04-23 14:19:29 +02:00
Jeff Gilbert
11c989b444 Bug 999713 - Kill WS in files we want to touch. - r=kamidphish 2014-04-22 16:23:18 -07:00
Wes Kocher
5abf643c50 Backed out changeset 039b15c9b84e (bug 979345) for build bustage on a CLOSED TREE 2014-04-22 15:29:11 -07:00
Maksim Lebedev
7906420c60 Bug 979345 - Implement "touch-action: manipulation" CSS value for Pointer Events. r=kats, r=botond, r=dbaron, r=mbrubeck 2014-04-22 14:27:02 -07:00
Cervantes Yu
1961f9cae4 Bug 977359 Part 1: Fix ImageBridgeChild deadlock in the Nuwa process by freezing the thread after the actor is opened. r=gal,nical,khuey 2014-04-11 18:37:12 +08:00
Botond Ballo
a2ab4d5433 Bug 997287 - Access AsyncPanZoomController::mGeckoContentController safely. r=kats
--HG--
extra : source : cf71c9301548157b0b92f1443290273ac8a45f28
2014-04-16 17:02:22 -04:00
Carsten "Tomcat" Book
f5d5b17a94 Backed out changeset b032a90ee083 (bug 983489) for m-e10s test failures 2014-04-17 14:04:26 +02:00
Kartikaya Gupta
e7e7d59c58 Bug 995411 - Move various pieces of APZ code into gfx/layers/apz. r=jrmuizel,botond
--HG--
rename : gfx/layers/ipc/GeckoContentController.h => gfx/layers/apz/public/GeckoContentController.h
rename : gfx/layers/composite/APZCTreeManager.cpp => gfx/layers/apz/src/APZCTreeManager.cpp
rename : gfx/layers/composite/APZCTreeManager.h => gfx/layers/apz/src/APZCTreeManager.h
rename : gfx/layers/ipc/AsyncPanZoomController.cpp => gfx/layers/apz/src/AsyncPanZoomController.cpp
rename : gfx/layers/ipc/AsyncPanZoomController.h => gfx/layers/apz/src/AsyncPanZoomController.h
rename : gfx/layers/ipc/Axis.cpp => gfx/layers/apz/src/Axis.cpp
rename : gfx/layers/ipc/Axis.h => gfx/layers/apz/src/Axis.h
rename : gfx/layers/ipc/GestureEventListener.cpp => gfx/layers/apz/src/GestureEventListener.cpp
rename : gfx/layers/ipc/GestureEventListener.h => gfx/layers/apz/src/GestureEventListener.h
rename : gfx/layers/ipc/TaskThrottler.cpp => gfx/layers/apz/src/TaskThrottler.cpp
rename : gfx/layers/ipc/TaskThrottler.h => gfx/layers/apz/src/TaskThrottler.h
rename : widget/xpwidgets/APZCCallbackHelper.cpp => gfx/layers/apz/util/APZCCallbackHelper.cpp
rename : widget/xpwidgets/APZCCallbackHelper.h => gfx/layers/apz/util/APZCCallbackHelper.h
rename : widget/xpwidgets/ActiveElementManager.cpp => gfx/layers/apz/util/ActiveElementManager.cpp
rename : widget/xpwidgets/ActiveElementManager.h => gfx/layers/apz/util/ActiveElementManager.h
2014-04-17 07:54:25 -04:00
Kartikaya Gupta
4121958127 Bug 997383 - Avoid using the base namespace since it causes problems in unified builds. r=nical 2014-04-17 07:53:36 -04:00
Vincent Chen
c4ea350928 Bug 983489 - Crash on nsIAppStartup.quit() - application crashed [@ mozilla::gl::GLContext::MakeCurrent(bool)]. r=nical 2014-04-17 02:11:00 +02:00
Jeff Gilbert
7fae189111 Bug 992874 - Don't try to texture from bad D3D10 texture. - r=bas 2014-04-16 11:05:48 -07:00
Kartikaya Gupta
3ad5b85cf7 Bug 996768 - Remove redundant copies of HasOpaqueAncestorLayer. r=Bas 2014-04-16 13:56:52 -04:00
Carsten "Tomcat" Book
f65baeda20 merge b2g-inbound to mozilla-central 2014-04-16 15:12:44 +02:00
Kartikaya Gupta
4ee76dece4 Bug 996738 - Change #define to const int to work better with unified builds. r=mattwoodrow 2014-04-15 10:58:00 +02:00
Kartikaya Gupta
a7b7e54571 Bug 996742 - Remove unused forward declare in the wrong namespace. r=nrc 2014-04-15 11:02:00 +02:00
Ryan VanderMeulen
2f337dce19 Merge m-c to b2g-inbound. 2014-04-15 23:29:32 -04:00
Ryan VanderMeulen
04f8f51173 Merge inbound to m-c. 2014-04-15 23:26:35 -04:00
Phil Ringnalda
1b97f98ee4 Back out e17d61d6acf6 (bug 924622) for apparently making the mismatched CxxStackFrame aborts more frequent rather than less 2014-04-15 20:00:59 -07:00
Sotaro Ikeda
48ccf4a8dc Bug 989408 - Add checking IPCOpen to ShadowLayerForwarder r=nical,bjacob 2014-04-15 18:59:09 -07:00
Nicolas Silva
ee2c3eec19 Bug 924622 - Make sure gfx's ipc shutdown happens before shutting down xpcom threads. r=bsmedberg, sotaro 2014-04-15 11:34:33 +02:00
Carsten "Tomcat" Book
bd2330e021 Backed out changeset f52300725e6f (bug 924622) for Linux Test Bustage 2014-04-15 12:46:25 +02:00
Kyle Huey
b6957123df Bug 991812: Remove uses of AtomicRefCounted<T> that live in Gecko. r=ehsan
--HG--
extra : rebase_source : 0d14e02c64d548fd3177681248d722683aaa87c3
2014-04-14 12:04:25 -07:00
Kyle Huey
4b25f94dc9 Bug 991812: Remove uses of RefCounted<T> that live in Gecko. r=ehsan
--HG--
extra : rebase_source : 239ff77ec3765a3f190ed75b1645c6011e5d1dbd
2014-04-14 12:04:24 -07:00
Botond Ballo
b674de9ffc Bug 976605 - Fix up APZ gtests to call APZC::SetAllowedTouchBehavior() at the correct time. r=kats
--HG--
extra : source : f168fc394c3d61b7375530d0d294d84cecc6207a
2014-04-14 14:59:20 -04:00
Botond Ballo
5649872991 Bug 976605 - Have APZ notify GeckoCC on end of touch. r=kats
--HG--
extra : source : c815d10b688544345265e91705dacd67108abbc1
2014-04-08 15:41:11 -04:00
Botond Ballo
47e174a2b4 Bug 976605 - Increase code reuse between AsyncPanZoomController::OnSingleTapUp and OnSingleTapConfirmed. r=kats
--HG--
extra : source : c6eeea0ea23c723a41116ccee8ca06a1a9877230
2014-04-08 19:01:44 -04:00
Botond Ballo
a3cf9d58ed Bug 976605 - Group some fields of AsyncPanZoomController into a TouchBlockState structure. r=kats
--HG--
extra : source : 4e331873022e7da32f0c1fc08bd52ec0a4b9b883
2014-04-08 15:17:09 -04:00
Botond Ballo
6d96cba5d0 Bug 976605 - Have APZ notify GeckoCC on start of pan. r=kats
--HG--
extra : source : e582f25a254ef4349f08d2b70db53a5babc69f19
2014-04-14 14:57:09 -04:00
Botond Ballo
c984ba0b2c Bug 976605 - Have APZ notify GeckoCC on start of touch. r=kats
--HG--
extra : source : c5796c5db151579dfd229010865c23ba7986b802
2014-04-09 14:07:47 -04:00
Botond Ballo
955f10bf77 Bug 976605 - Make AsyncPanZoomController::mMonitor 'mutable' to allow entering it from 'const' methods. r=kats
--HG--
extra : source : 2cbc69f1a7c07e26568dc228a83d9443ab4d4233
2014-04-09 14:07:33 -04:00
Botond Ballo
e235befc24 Bug 976605 - Turn GeckoCC::NotifyTransform[Begin|End] into an extensible APZ state change notification mechanism. r=kats
--HG--
extra : source : 5353e86dcfe8b2ff6f02e577a4c69a1de6808d9b
2014-04-15 13:39:20 -04:00
Botond Ballo
ce3fe384ba Bug 976605 - Make Axis more const-correct. r=kats
--HG--
extra : source : 50988abb501db2d04a1b5446e2553c61708628f0
2014-04-11 14:38:34 -04:00
Nicolas Silva
bcecbebe18 Bug 924622 - Make sure gfx's ipc shutdown happens before shutting down xpcom threads. r=bsmedberg, sotaro 2014-04-15 11:34:33 +02:00
Ed Morley
dd27021e51 Backed out changeset 3486a7a210a1 (bug 976605) for build failures; CLOSED TREE 2014-04-15 17:46:20 +01:00
Ed Morley
6a0c514644 Backed out changeset d5c38470ac06 (bug 976605) 2014-04-15 17:45:48 +01:00
Ed Morley
f9aba2fee4 Backed out changeset ab6dbbd9fa3e (bug 976605) 2014-04-15 17:45:44 +01:00
Ed Morley
6fca18d657 Backed out changeset cb8973818578 (bug 976605) 2014-04-15 17:45:41 +01:00
Ed Morley
4a76853977 Backed out changeset f5877d3b95ea (bug 976605) 2014-04-15 17:45:37 +01:00
Ed Morley
f7dbe6aa7a Backed out changeset f29f702a5e1e (bug 976605) 2014-04-15 17:45:34 +01:00
Ed Morley
e1160f1b83 Backed out changeset 924ce232443c (bug 976605) 2014-04-15 17:45:30 +01:00
Ed Morley
1ffc212f95 Backed out changeset 0781ca65c354 (bug 976605) 2014-04-15 17:45:27 +01:00
Ed Morley
af222c635b Backed out changeset 037f46cdfd80 (bug 976605) 2014-04-15 17:45:10 +01:00
Botond Ballo
3098266152 Bug 976605 - Fix up APZ gtests to call APZC::SetAllowedTouchBehavior() at the correct time. r=kats
--HG--
extra : source : f299251a7c7ba65a8dca6443a1ab695a89c9230b
2014-04-14 14:59:20 -04:00
Botond Ballo
b5c74215ac Bug 976605 - Have APZ notify GeckoCC on end of touch. r=kats
--HG--
extra : source : e6ff5a48c5e3fd36a8a7b12b7f116a50e4d255db
2014-04-08 15:41:11 -04:00
Botond Ballo
8a62b9ad6b Bug 976605 - Increase code reuse between AsyncPanZoomController::OnSingleTapUp and OnSingleTapConfirmed. r=kats
--HG--
extra : source : 133dbc9a5d930a42c9929e1210aad436d8092745
2014-04-08 19:01:44 -04:00
Botond Ballo
f43f502a76 Bug 976605 - Group some fields of AsyncPanZoomController into a TouchBlockState structure. r=kats
--HG--
extra : source : 80ac8ba2dec8939065411e86526bcdfa1c4b3f6d
2014-04-08 15:17:09 -04:00
Botond Ballo
eb76e485c4 Bug 976605 - Have APZ notify GeckoCC on start of pan. r=kats
--HG--
extra : source : 7f86fea5f8c3330336fc4d66dd15c9e87ac138fc
2014-04-14 14:57:09 -04:00
Botond Ballo
6921189527 Bug 976605 - Have APZ notify GeckoCC on start of touch. r=kats
--HG--
extra : source : ff72d81b063a4d37d9934f0c05d86a69681a99db
2014-04-09 14:07:47 -04:00
Botond Ballo
13c4c46c3b Bug 976605 - Make AsyncPanZoomController::mMonitor 'mutable' to allow entering it from 'const' methods. r=kats
--HG--
extra : source : c25666782c6027f114ffe29508bff32e94444266
2014-04-09 14:07:33 -04:00
Botond Ballo
87beae3674 Bug 976605 - Turn GeckoCC::NotifyTransform[Begin|End] into an extensible APZ state change notification mechanism. r=kats
--HG--
extra : source : bfb4af538271dc2e3148caa461f594715529021a
2014-04-11 20:27:57 -04:00
Botond Ballo
9230f9fd72 Bug 976605 - Make Axis more const-correct. r=kats
--HG--
extra : source : d06484dc840a914415c5fa96020483787a2bfd0d
2014-04-11 14:38:34 -04:00
Ryan VanderMeulen
c71414c58b Merge m-c to inbound. 2014-04-15 23:30:15 -04:00
Jonathan Watt
0a0470e24e 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
Matt Woodrow
cde7f29c88 Bug 974197 - Fire MozAfterPaint after the compositor has composited the frame. r=roc 2014-03-07 16:24:32 +13:00
Ryan VanderMeulen
601b02224e Backed out changesets ddbac34527fe and fa82f32d0c39 (bug 991812) for B2G bustage.
CLOSED TREE
2014-04-14 16:16:18 -04:00
Nicolas Silva
9e8cef9fee Bug 990876 - Remove TextureClientSurface. r=mattwoodrow 2014-04-14 21:29:42 +02:00
Kyle Huey
acd8c16b76 Bug 991812: Remove uses of AtomicRefCounted<T> that live in Gecko. r=ehsan 2014-04-14 12:04:25 -07:00
Kyle Huey
d7199fa836 Bug 991812: Remove uses of RefCounted<T> that live in Gecko. r=ehsan 2014-04-14 12:04:24 -07:00
L. David Baron
c47ecde7e8 Bug 995721 patch 1 - Honor the translation on mShadowTarget in ClientLayerManager::MakeSnapshotIfRequired. r=mattwoodrow
This switches from DrawTarget::CopySurface (which ignores the transform)
to DrawSurface (which honors the transform).
2014-04-14 11:12:00 -07:00
Nicolas Silva
f03b5c5290 Bug 995143 - Add missing CanExposeDrawTarget in CairoTextureClientD3D9. r=mattwoodrow 2014-04-14 18:45:34 +02:00
Nicolas Silva
bdb01d9e0f Bug 994024 - Discard TextureClients that we failed to allocate or lock. r=bjacob 2014-04-11 18:48:10 +02:00
Nicolas Silva
496e94e973 Bug 994024 - Add assertions in ImageBridgeChild. r=bjacob 2014-04-11 18:48:01 +02:00
Nicolas Silva
73d84fe695 Bug 994024 - Add assertions in ShadowLayers.cpp. r=bjacob 2014-04-11 18:47:56 +02:00
Benoit Jacob
5ffda8542b Bug 987305 - Refactor EnumSerializer - r=nfroyd 2014-04-14 10:17:40 -04:00
Ryan VanderMeulen
be657e134d Merge m-c to inbound on a CLOSED TREE. 2014-04-13 22:52:50 -04:00
Sotaro Ikeda
b7840a582d Bug 990080 - Prepare for the next reycle, only if TextureClient request it r=BenWa 2014-04-11 17:42:35 -07:00
Ryan VanderMeulen
411811f032 Merge m-c to inbound on a CLOSED TREE. 2014-04-11 16:24:56 -04:00
Sotaro Ikeda
1b4322d27c Bug 994903 - Copy mRecycleCallback on top of Release() r=jrmuizel 2014-04-11 07:24:14 -07:00
Sotaro Ikeda
8305355d18 Bug 990310 - Remove SurfaceDescriptor from media and GrallocImage r=nical,cajbir 2014-04-11 06:13:12 -07:00
James Willcox
4f4c92a20d Bug 989375 - Fix basic layer readback with SkiaGL canvases r=gwright 2014-04-10 14:19:02 -05:00
Chris Lord
f8cf8f11e8 Bug 993475 - Consolidate masking code in BasicCompositor and BasicLayersImpl. r=mattwoodrow 2014-04-11 13:23:09 +01:00
Chris Lord
734f540069 Bug 993475 - Support masks on color layers in BasicCompositor. r=mattwoodrow 2014-04-11 13:23:09 +01:00
Chris Lord
626e405dba Bug 994548 - Fix masks being affected by partial updates in BasicCompositor. r=mattwoodrow 2014-04-11 13:23:08 +01:00
Benoit Girard
2236938162 Bug 916812 - Part 1: Make RenderTile private. r=jmuizelaar 2014-04-13 14:18:03 -04:00
Jonathan Watt
0a3e4f5955 Bug 995454 - Kill off TextureClientSurface's GetAsSurface and UpdateSurface methods (Moz2D migration). r=mattwoodrow 2014-04-13 11:07:12 +01:00
Nicolas Silva
931d87f4b9 Bug 991032 - Cleanup X11 TextureClient/Host. r=mattwoodrow 2014-04-11 16:15:01 +02:00
Nicolas Silva
266db399dd Bug 990871 - Move TextureClientDrawTarget into TextureClient. r=mattwoodrow 2014-04-10 10:14:28 +02:00
Carsten "Tomcat" Book
f39d10cc48 Backed out changeset 3747c80a1cde (bug 990871) for bustage on a CLOSED TREE 2014-04-10 13:15:47 +02:00
Nicolas Silva
7713255f54 Bug 990933 - Moz2Dify SimpleTiledContentClient. r=jrmuizel 2014-04-10 10:14:33 +02:00
Nicolas Silva
f09851069a Bug 990871 - Move TextureClientDrawTarget into TextureClient. r=mattwoodrow 2014-04-10 10:14:28 +02:00
Jonathan Watt
3e160b2c76 Bug 960524 - Get rid of Image::DeprecatedGetAsSurface (Moz2D migration). r=mattwoodrow 2014-04-10 09:49:53 +01:00
Jonathan Watt
1aa33ab749 Bug 964731 - Convert ImageLayerD3D10 and CreateOptimalSurface/CreateOptimalMaskSurface to Moz2D. r=Bas 2014-04-10 09:49:49 +01:00
Matt Woodrow
15c07b67c1 Bug 992486 - Part 5: Fix copying the front buffer to back buffer. r=roc 2014-04-10 20:42:29 +12:00
Carsten "Tomcat" Book
8ee1938a44 Backed out changeset e6126e815061 (bug 992486) windows bustage 2014-04-10 10:09:25 +02:00
Matt Woodrow
a39910a35a Bug 992486 - Part 5: Fix copying the front buffer to back buffer. r=roc 2014-04-10 19:44:10 +12:00
Nicolas Silva
13e06cf7e2 Bug 993417 - Make TextureClient::ToSurfaceDescriptor protected and document it's quirk. r=Bas 2014-04-10 09:24:59 +02:00
Nicolas Silva
1ba45cb6e3 Bug 993417 - Fix race between CairoTextureClientD3D9's destruction and it's TextureHost creation. r=Bas 2014-04-10 09:24:55 +02:00
Nicolas Silva
dfc805e39c Bug 993428 - Fix masks with d3d9 component alpha layers. r=Bas 2014-04-09 19:17:13 +02:00
Kartikaya Gupta
e41e21f214 Bug 989054 - Update the rendertrace output to handle displayport margins. r=botond 2014-04-10 03:15:09 -04:00
Kartikaya Gupta
3a23d34549 Bug 989054 - Update repaint deduplication code to use displayport margins. r=botond 2014-04-10 03:15:08 -04:00
Kartikaya Gupta
65e8605d26 Bug 980500 - Allow scrollbars to be children of the scrollable container layer. r=botond 2014-04-11 19:12:44 -05:00
Kartikaya Gupta
3ccd0c913f Bug 982888 - Some cleanup/rearranging of stuff in AsyncPanZoomController.h. r= 2014-04-11 19:39:22 -04:00
Kartikaya Gupta
0aed75ce84 Bug 982888 - Use the scroll handoff parent field while building the handoff chain. r= 2014-04-11 19:39:22 -04:00
Kartikaya Gupta
7e99c6f57e Bug 982888 - Add a mScrollHandoffParent field to ContainerLayers. r= 2014-04-11 19:39:21 -04:00
Ryan VanderMeulen
5de13f836a Backed out changeset c81707878977 (bug 974197) for Gaia integration test failures on a CLOSED TREE. 2014-04-09 22:14:13 -04:00
Matt Woodrow
23d9392934 Bug 974197 - Fire MozAfterPaint after the compositor has composited the frame. r=roc 2014-03-07 16:24:32 +13:00
Matt Woodrow
83fe7356ab Bug 993784 - Part 4: Remove a bunch of dead thebes code in BasicLayers. r=roc 2014-04-09 21:15:19 +12:00
Matt Woodrow
b9e0bb7c64 Bug 993784 - Part 3: Use Moz2D SourceSurfaces for masking with BasicLayers. r=roc 2014-04-09 21:15:19 +12:00
Matt Woodrow
82aca77140 Bug 993784 - Part 1: Use Moz2D mask data for BasicThebesLayer drawing. r=roc 2014-04-09 21:15:19 +12:00
Matt Woodrow
cab17b499b Bug 991513 - Part 3: Combine BeginPaint/PrepareFrame and EndPaint/OnTransaction. r=nrc 2014-04-09 21:15:19 +12:00
Matt Woodrow
e1bcde7e2c Bug 991513 - Part 2: Don't lock ContentClientSingleBuffered's textures until we need the buffers. r=nrc 2014-04-09 21:15:18 +12:00
Matt Woodrow
7f5d17124b Bug 991513 - Part 1: Don't lock ContentClientDoubleBuffered's texture until we need the buffers. r=nrc 2014-04-09 21:15:18 +12:00
Matt Woodrow
4fb665e081 Bug 992486 - Part 4: Make ClientThebesLayer use multiple draws. r=roc 2014-04-09 21:15:18 +12:00
Matt Woodrow
85f537988a Bug 992486 - Part 3: Clean up ClientThebesLayer a bit. r=roc 2014-04-09 21:15:18 +12:00
Matt Woodrow
762c7716b4 Bug 992486 - Part 2: Make ContentHostSingleBuffered able to handle updates that cross the rotation boundary. r=nical 2014-04-09 21:15:17 +12:00
Matt Woodrow
52993e5933 Bug 992486 - Part 1: Add API to RotatedContentBuffer for drawing in multiple passes. r=roc 2014-04-09 21:15:17 +12:00
Kyle Huey
8465d25d7c Back out bug 991812 for bustage on a CLOSED TREE. r=me 2014-04-08 17:26:33 -07:00
Kyle Huey
1ce2792b2d Backed out changeset e0af6a6d220a 2014-04-08 17:25:12 -07:00
Kyle Huey
7d8768d59c Bug 991812: Followup for non-unified builds on a CLOSED TREE. r=me 2014-04-08 17:09:38 -07:00
Kyle Huey
7d49ea1ba1 Bug 991812: Remove uses of RefCounted in code that lives solely in Gecko. r=ehsan 2014-04-08 16:37:05 -07:00
Nicolas Silva
c1caaa0096 Bug 993360 - Don't crash when a region is passed to DataTextureSourceD3D*::Update. r=mattwoodrow 2014-04-08 15:17:26 +02:00
Nicolas Silva
8d9fc4c39b Bug 993360 - Check for the max texture size when allocating d3d TextureClients. r=mattwoodrow 2014-04-08 14:50:49 +02:00
Nicolas Silva
5cc041e5b2 Bug 993360 - Don't try to lock a texture if it failed to allocate. r=mattwoodrow 2014-04-08 14:50:41 +02:00
Nicolas Silva
d7990211e2 Bug 993360 - Always use DXGI_FORMAT_B8G8R8A8_UNORM with d3d11 OMTC. r=mattwoodrow 2014-04-08 14:50:36 +02:00
Nicolas Silva
8fac79b2e1 Bug 993067 - Fix crash in GrallocTextureSourceOGL::GetAsSurface. r=Cwiiis 2014-04-08 10:04:08 +02:00
Chris Lord
4b3c68d60c Bug 990608 - Make tile size configurable. r=tn,nical,bgirard 2014-04-04 18:42:44 +01:00
Jeff Gilbert
f54bf7467b Bug 963962 - Fix use of CreateDrawTargetForData in CanvasLayerD3D9/10. r=Bas 2014-04-07 10:24:14 -04:00
Chris Lord
5728c877b7 Backout 941bee559cd7 (Bug 980647) due to critical regressions on b2g 2014-04-07 13:09:44 +01:00
Tom Schuster
97f5591dbc Bug 980582 - Fall back to the slow 2d path for cross process webgl. r=jrmuizel 2014-04-07 11:01:45 +02:00
Matt Woodrow
f74a47057a Bug 904890 - Fix windows build bustage caused by mozzconf/unified builds. r=me 2014-04-07 20:58:03 +12:00
Matt Woodrow
e50dfc56e4 Bug 991067 - Null check mSurface in BasicCanvasLayer to match previous behaviour. r=roc 2014-04-07 20:57:27 +12:00
Matt Woodrow
f67caf0664 Bug 904890 - Part 5: Add a d3d9 texture host for DXGI surfaces. r=nical 2014-04-07 15:23:06 +12:00
Matt Woodrow
e205c4c136 Bug 904890 - Part 3: Add a layers API to expose the compositor backend. r=roc 2014-04-07 15:11:17 +12:00
Matt Woodrow
6d7ae2aa1e Bug 904890 - Part 2: Don't crash if our d3d11 texture doesn't have a mutex. r=Bas 2014-04-07 15:09:22 +12:00
Matt Woodrow
d5a0cef05b Bug 904890 - Part 1: Implement ISharedImage for D3D9SurfaceImage. r=nical
* * *
[mq]: fix-things
2014-04-07 15:09:08 +12:00
Matt Woodrow
b93f84571b Bug 991028 - Remove deprecated IPDL SurfaceDescriptor types. r=nical 2014-04-07 13:32:49 +12:00
Matt Woodrow
a9b43e4ed3 Bug 991028 - Get rid of OpenDescriptor/CloseDescriptor. r=nical 2014-04-07 13:32:49 +12:00
Matt Woodrow
b236972144 Bug 991028 - Stop using OpenDescriptor in ContentClientIncremental. r=nical 2014-04-07 13:32:49 +12:00
Matt Woodrow
7eef44b9f5 Bug 991028 - Remove AutoOpenSurface. r=nical 2014-04-07 13:32:48 +12:00
Peter Chang
9b952453a0 Bug 988713 - Fix the race condition between TextureClient::Finalize() and TextureChild::ActorDestroy(), r=nical 2014-04-07 10:02:31 +08:00
Phil Ringnalda
18f873ac9e Backed out 4 changesets (bug 991028) for nonunified bustage
CLOSED TREE

Backed out changeset 147581a518c3 (bug 991028)
Backed out changeset e5bacc566e58 (bug 991028)
Backed out changeset 6dc852777a4d (bug 991028)
Backed out changeset 780bec5571b9 (bug 991028)
2014-04-06 21:21:38 -07:00
Matt Woodrow
0851e5c863 Bug 991028 - Remove deprecated IPDL SurfaceDescriptor types. r=nical 2014-04-07 13:32:49 +12:00
Matt Woodrow
49d74266e5 Bug 991028 - Get rid of OpenDescriptor/CloseDescriptor. r=nical 2014-04-07 13:32:49 +12:00
Matt Woodrow
3e992116e2 Bug 991028 - Stop using OpenDescriptor in ContentClientIncremental. r=nical 2014-04-07 13:32:49 +12:00
Matt Woodrow
a64bf46575 Bug 991028 - Remove AutoOpenSurface. r=nical 2014-04-07 13:32:48 +12:00
Ryan VanderMeulen
0b24e10f19 Backed out changeset bf184a7a1d63 (bug 990608) for Android crashes.
CLOSED TREE
2014-04-04 15:20:49 -04:00
Chris Lord
20780839a2 Bug 990608 - Make tile size configurable. r=tn,nical,bgirard 2014-04-04 18:42:44 +01:00
Daniel Holbert
652ce79f6e Bug 984786 part 8: Give NS_INLINE_DECL_*REFCOUNTING classes private destructor & MOZ_FINAL annotation where appropriate, in /gfx and /content/canvas. r=bjacob 2014-04-04 09:27:02 -07:00
Sushil Chauhan
b1ff3ae4f1 Bug 965102 - Gecko changes to set HWC_GEOMETRY_CHANGED flag appropriately. r=mattwoodrow 2014-04-03 18:59:13 -07:00
Phil Ringnalda
d592724cf0 Backed out 5 changesets (bug 991032, bug 990933, bug 990876, bug 990871) for build bustage
CLOSED TREE

Backed out changeset c28e1344a6da (bug 991032)
Backed out changeset c85326be7e94 (bug 990876)
Backed out changeset 7cd1a8c883cb (bug 990876)
Backed out changeset 3052e8a3c505 (bug 990933)
Backed out changeset 6685770cf674 (bug 990871)
2014-04-03 20:28:52 -07:00
Nicolas Silva
2e4231e5f3 Bug 991032 - Cleanup X11 TextureClient/Host. r=mattwoodrow 2014-04-04 11:15:47 +08:00
Nicolas Silva
7127c26263 Bug 990876 - Remove TextureClientSurface. r=mattwoodrow 2014-04-04 11:15:34 +08:00
Nicolas Silva
79951d5cea Bug 990933 - Moz2dify SimpleTiledContentClient. r=jrmuizel 2014-04-04 11:15:25 +08:00
Nicolas Silva
dafdcc684d Bug 990871 - Move TextureClientDrawTarget into TextureClient. r=mattwoodrow 2014-04-04 11:15:18 +08:00
Nicolas Silva
e3b0430659 Bug 989904 - Remove the remaining deprecated textures code. r=mattwoodrow 2014-04-03 14:04:04 +08:00
Masayuki Nakano
ff8b968574 Bug 990855 part.2 Remove dom/events from local includes of moz.build files r=smaug 2014-04-03 13:18:38 +09:00
Botond Ballo
4187310007 Bug 984490 - Use the correct clip rect when determining whether to skip rendering a tile. r=nical 2014-04-02 03:23:04 -04:00
Botond Ballo
a250e38342 Bug 984490 - Make Compositor::GetCurrentRenderTarget() const. r=nical 2014-04-02 03:27:42 -04:00
Andreas Gal
98a1b26a3b Bug 978479 - Remove flipped quad texture from mQuadVBO. r=bjacob 2014-04-02 09:02:07 -04:00
Jonathan Watt
0f938e4df0 Bug 990752 - Make ImageLayerD3D9/ImageLayerD3D10::Render() use mSourceSurface instead of mDeprecatedSurface (Moz2D migration). r=mattwoodrow 2014-04-02 12:33:15 +01:00
Jonathan Watt
3976b3243c Bug 964732 - Remove calls to DeprecatedGetAsSurface in ImageLayerD3D9 (Moz2D migration). r=mattwoodrow 2014-04-02 12:32:54 +01:00
Matt Woodrow
66a003fa8f Bug 990437 - Fix windows build by moving implicit AddRef/Release calls to the cpp file 2014-04-02 15:08:31 +08:00
Matt Woodrow
51f772d89b Bug 990437 - Convert ContentHostIncremental to inherit from ContentHostBase. r=nical 2014-04-02 14:45:02 +08:00
Matt Woodrow
927daa42a6 Bug 990437 - Split texture host ownership out from ContentHostBase. r=nical 2014-04-02 14:45:02 +08:00
Matt Woodrow
320178fba7 Bug 990437 - Rename the Incremental texture created function. r=nical 2014-04-02 14:45:01 +08:00
Nicolas Silva
e7a2f8f2e8 Bug 980647 - Part 2 - Use the PerFrame pool with all layer types on b2g. r=Cwiiis 2014-04-02 10:37:49 +08:00
Ryan VanderMeulen
6a3fa988ca Merge inbound to m-c. 2014-04-01 16:45:00 -04:00
Sotaro Ikeda
88f833a47f Bug 990305 - Move IsInEmulator() from GrallocImage to gfxPlatform r=nical 2014-04-01 06:33:49 -07:00
Sotaro Ikeda
718f48c2ff Bug 989215 - clear recycle callback in TextureParent::ActorDestroy() r=nical 2014-03-31 20:24:55 -07:00
Ryan VanderMeulen
28f6465e9a Merge b2g-inbound to m-c. 2014-03-31 17:27:57 -04:00
Ryan VanderMeulen
8636d21ab3 Backed out changesets 0b596070fe54 and ed6969e4fb6f (bug 957560) for causing bug 990027 on a CLOSED TREE. 2014-03-31 14:31:52 -04:00
Chris Lord
39c1e80d93 Bug 988370 - Don't use progressive/low precision rendering on fixed layers. r=mattwoodrow
Fixed layers don't async scroll, so it doesn't make sense for them to have
a low precision region or for them to be rendered progressively.
2014-03-31 17:42:32 +01:00
Sotaro Ikeda
54d13a5e10 Bug 985772 - Remove SurfaceDescriptor around GonkNativeWindow r=nical,pchang,schiu,mikeh,gal 2014-03-31 08:24:28 -07:00
Matt Woodrow
f521c52eb9 Bug 988771 - Remove DeprecatedCanvasClient. r=nical
--HG--
extra : rebase_source : 3dbca3237e08a6ab18e2d5805cacf18659a40d69
2014-03-31 22:50:27 +08:00
Carsten "Tomcat" Book
07d08b2895 merge b2g-inbound to mozilla-central 2014-03-31 12:46:42 +02:00
Phil Ringnalda
fd31f007a5 Back out 2f5e6cd1cc9c (bug 989829) for assertion failures 2014-03-30 23:26:43 -07:00
Sotaro Ikeda
7d4ce23155 Bug 989561 - Remove min size limitation since JB gonk r=gal 2014-03-30 22:23:52 -07:00
Kartikaya Gupta
a9c29c2636 Bug 989829 - Move all APZ prefs into gfxPrefs and move all documentation into AsyncPanZoomController.cpp. r=botond 2014-03-31 13:05:38 +08:00
Kartikaya Gupta
5430c8fb5c Bug 989407 - Stop treating mouse events as touch events because it interferes with gesture detection. r=botond 2014-03-31 13:03:00 +08:00
Nicolas Silva
0b275eb92e Bug 957560 - Fix WError build bustage on a CLOSED TREE. 2014-03-31 11:31:39 +08:00
Nicolas Silva
db25bebbdc Bug 957560 - Fix new textures on windows (OMTC). r=mattwoodrow 2014-03-31 11:07:40 +08:00
Wes Kocher
ab88e0d360 Merge m-c to inbound 2014-03-28 17:04:03 -07:00
Wes Kocher
3e4da18062 Merge b2g-inbound to m-c 2014-03-28 16:38:35 -07:00
Nicolas Silva
80d7fc4a9c Bug 977255 - Backout for build bustage on a CLOSED TREE 2014-03-28 17:01:52 +01:00
Sotaro Ikeda
27223aa396 Bug 983971 - Do not use gralloc for small size on ICS gonk r=nical 2014-03-28 07:35:21 -07:00
Chris Lord
687be7aed2 Bug 983169 - Fix handling of tile resolution in TiledContentClient. r=bas 2014-03-27 18:52:09 +00:00
Chris Lord
4e165082f4 Bug 983169 - Fix up TiledLayerHost rendering method. r=BenWa
A few parts of this function weren't quite right. The major change is to use
the TiledLayerBuffer's valid region instead of the layer's valid region.
These are the same, except when progressive rendering is enabled, where the
former may differ from the layyer (and will represent what has actually been
updated).
2014-03-27 18:52:08 +00:00
Nicolas Silva
67c7d18fcd Bug 977255 - Initialize the gralloc memory reporter in gfxPlatform. r=cwiiis 2014-03-28 15:40:30 +01:00
Kartikaya Gupta
31afc0a194 Bug 948377 - Remove unwanted rounding in CalculateCompositedRectInCssPixels; add a CalculateCompositedSizeInCssPixels also. r=botond 2014-03-28 10:36:47 -04:00
Bill McCloskey
c0cc71b861 Bug 980122 - Recomposite entire screen in basic compositor (r=mattwoodrow) 2014-03-28 11:25:23 -07:00
snigdha
90f0f64d5b 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
Dmitry Rozhkov
275ecc3b0c Bug 985541 - Turn GestureEventListener into Finite-state machine. r=kats,drs 2014-03-27 14:04:39 +02:00
Carsten "Tomcat" Book
5876d0c898 Merge mozilla-central to mozilla-inbound 2014-03-31 12:50:17 +02:00
Benoit Jacob
e708bac914 Bug 987311 - Fix a bad enum conversion bug found by converting TextureFlags to typed enums - r=nical 2014-03-31 05:10:49 -04:00
Benoit Jacob
89317548d7 Bug 987828 - 3/4 - Use IsGLES instead of IsGLES2 - r=jgilbert 2014-03-31 05:10:49 -04:00
Nicolas Silva
257fed31e8 Bug 977255 - Initialize the gralloc memory reporter in gfxPlatform. r=cwiiis 2014-03-28 18:20:57 +01:00
Kartikaya Gupta
08051ca924 Bug 987188 - Guard against a null pointer when dumping the layer tree. r=nical 2014-04-01 01:46:00 +02:00
Matt Woodrow
f2e539f36c Bug 990338 - Use CopySurface when copying data to a TextureClient for better performance. r=nical 2014-04-01 15:53:15 +08:00
Matt Woodrow
09255ba257 Bug 990338 - Pass CanvasLayer Y-flip flag through layers. r=nical 2014-04-01 15:52:47 +08:00
Matt Woodrow
b6b7e6b30e Bug 990338 - Remove FillWithMask since it's dead code. r=nical 2014-04-01 15:52:10 +08:00
Matt Woodrow
3c534d622c Bug 990338 - Clean up CopyableCanvasLayer. r=nical 2014-04-01 15:51:35 +08:00
Matt Woodrow
67805dc4e2 Bug 990338 - Use Moz2D for updating CanvasClient. r=nical 2014-04-01 15:51:10 +08:00
Nicolas Silva
0af7716984 Bug 982413 - Remove the deprecated textures pref. r=mattwoodrow 2014-04-01 14:28:36 +08:00
Nicolas Silva
1087c3b4d4 Bug 989904 - Remove the deprecated basic textures. r=mattwoodrow 2014-04-01 14:28:27 +08:00
Nicolas Silva
8540bd9f80 Bug 989904 - Remove some of the deprecated backend-independent textures. r=mattwoodrow 2014-04-01 14:28:23 +08:00
Nicolas Silva
efc83cde0b Bug 989904 - Remove some of the deprecated gl textures. r=mattwoodrow 2014-04-01 14:28:18 +08:00
Nicolas Silva
d1a5b2c8bd Bug 989904 - Remove deprecated d3d textures. r=mattwoodrow 2014-04-01 14:28:14 +08:00
Nicolas Silva
6f153811f7 Bug 989883 - Remove deprecated ContentClient/Host. r=mattwoodrow 2014-04-01 14:28:05 +08:00
Nicolas Silva
788de6da4a Bug 989883 - Remove deprecated ImageClient/Host. r=mattwoodrow 2014-04-01 14:28:00 +08:00
Matt Woodrow
d2127c217f Bug 989858 - Part 6: Rename DeprecatedPaint and stop passing a gfxContext in. r=roc 2014-04-01 12:02:10 +08:00
Matt Woodrow
8d2a3dc305 Bug 989858 - Part 5: Remove partially implemented moz2d paint function. r=roc 2014-04-01 12:02:10 +08:00