summaryrefslogtreecommitdiffstats
path: root/content/renderer/gpu
Commit message (Collapse)AuthorAgeFilesLines
* Don't call renderView methods in threaded modenduca@chromium.org2011-12-152-0/+11
| | | | | | Review URL: http://codereview.chromium.org/8490001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@114582 0039d316-1c4b-4281-b951-d872f2087c98
* Add IPC to allow gpu process to send message for console back to renderergman@chromium.org2011-12-132-0/+10
| | | | | | | | | | BUG=107294 TEST=none Review URL: http://codereview.chromium.org/8917027 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@114191 0039d316-1c4b-4281-b951-d872f2087c98
* <video> decode in hardware! fischman@chromium.org2011-12-131-1/+1
| | | | | | | | | | | | | | | | | | | | | | | This uses the GpuVideoDecodeAccelerator machinery (already written to enable ppapi to take advantage of OpenMAX HW where available) to decode <video> data. This increases idle CPU from 20% to 45% on one particularly large (internal) test video (red0.mp4), on an ARM crosbook. HW decode is done on a best-effort basis; if the GPU code doesn't know how to deal with a codec/profile we still fall back to ffmpeg for decode. Because the vast majority of chrome installs will be on HW with no video decode support (yet) we only attempt HW video decode on platforms we know have a shot at it. This is a copy of http://codereview.chromium.org/8686010/ PS#13 to work around rietveld losing the "status" for some files in the patch. BUG=104579 TEST=manual testing w/ video test matrix, trybots. Review URL: http://codereview.chromium.org/8922010 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@114183 0039d316-1c4b-4281-b951-d872f2087c98
* Revert "Revert 113479 - Revert "Revert 113250 - Add ↵gman@chromium.org2011-12-123-70/+13
| | | | | | | | | | | | | | CommandBuffer::SetGetBuffer"" This reverts commit 84677847c10d0319d8d996aea9b310add85c0bd3. TEST=ran browser tests on OSX BUG=103989 TBR=apatrick@chromiu.org Review URL: http://codereview.chromium.org/8919014 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@114114 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 113895 - <video> decode in hardware!fischman@chromium.org2011-12-101-1/+1
| | | | | | | | | | | | | | | | | | | | | | This uses the GpuVideoDecodeAccelerator machinery (already written to enable ppapi to take advantage of OpenMAX HW where available) to decode <video> data. This increases idle CPU from 20% to 45% on one particularly large (internal) test video (red0.mp4), on an ARM crosbook. HW decode is done on a best-effort basis; if the GPU code doesn't know how to deal with a codec/profile we still fall back to ffmpeg for decode. Because the vast majority of chrome installs will be on HW with no video decode support (yet) we only attempt HW video decode on platforms we know have a shot at it. BUG=104579 TEST=manual testing w/ video test matrix, trybots. Review URL: http://codereview.chromium.org/8686010 TBR=fischman@chromium.org Review URL: http://codereview.chromium.org/8897022 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@113908 0039d316-1c4b-4281-b951-d872f2087c98
* <video> decode in hardware!fischman@chromium.org2011-12-101-1/+1
| | | | | | | | | | | | | | | | | | | This uses the GpuVideoDecodeAccelerator machinery (already written to enable ppapi to take advantage of OpenMAX HW where available) to decode <video> data. This increases idle CPU from 20% to 45% on one particularly large (internal) test video (red0.mp4), on an ARM crosbook. HW decode is done on a best-effort basis; if the GPU code doesn't know how to deal with a codec/profile we still fall back to ffmpeg for decode. Because the vast majority of chrome installs will be on HW with no video decode support (yet) we only attempt HW video decode on platforms we know have a shot at it. BUG=104579 TEST=manual testing w/ video test matrix, trybots. Review URL: http://codereview.chromium.org/8686010 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@113895 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 113479 - Revert "Revert 113250 - Add CommandBuffer::SetGetBuffer"rsimha@google.com2011-12-083-13/+70
| | | | | | | | | | | | | | | | | | Reason for revert: Bot redness. See http://build.chromium.org/p/chromium/builders/Mac10.6%20Tests%20%281%29/builds/15717 Original checkin notes: This reverts commit bd45bd252aeb8babac62547a5c605fbf64287cd3. TEST=ran webkit tests in DRT and webgl tests in chrome BUG=103989 Review URL: http://codereview.chromium.org/8758026 TBR=gman@chromium.org Review URL: http://codereview.chromium.org/8865008 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@113512 0039d316-1c4b-4281-b951-d872f2087c98
* Revert "Revert 113250 - Add CommandBuffer::SetGetBuffer"gman@chromium.org2011-12-073-70/+13
| | | | | | | | | | | This reverts commit bd45bd252aeb8babac62547a5c605fbf64287cd3. TEST=ran webkit tests in DRT and webgl tests in chrome BUG=103989 Review URL: http://codereview.chromium.org/8758026 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@113479 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 113250 - Add CommandBuffer::SetGetBufferdglazkov@chromium.org2011-12-063-13/+70
| | | | | | | | | | | | | | | | | | | | | | | As well as remove CommandBuffer::GetRingBuffer and change CommandBuffer::Initialize Before this change the service allocated and managed the command buffer. After this change the client uses CreateTransferBuffer, GetTransferBuffer, end potentially DeleteTransferBufffer to manage the command buffer. Another CL will actually make the client delete the command buffer on demand. TEST=unit tests and run some samples and a NaCl 3D game BUG=103989 Review URL: http://codereview.chromium.org/8566059 TBR=gman@chromium.org Review URL: http://codereview.chromium.org/8827005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@113255 0039d316-1c4b-4281-b951-d872f2087c98
* Add CommandBuffer::SetGetBuffergman@chromium.org2011-12-063-70/+13
| | | | | | | | | | | | | | | | | | | | As well as remove CommandBuffer::GetRingBuffer and change CommandBuffer::Initialize Before this change the service allocated and managed the command buffer. After this change the client uses CreateTransferBuffer, GetTransferBuffer, end potentially DeleteTransferBufffer to manage the command buffer. Another CL will actually make the client delete the command buffer on demand. TEST=unit tests and run some samples and a NaCl 3D game BUG=103989 Review URL: http://codereview.chromium.org/8566059 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@113250 0039d316-1c4b-4281-b951-d872f2087c98
* Adds support for the GL_ANGLE_texture_usage and GL_EXT_texture_storagevangelis@chromium.org2011-12-062-0/+7
| | | | | | | | | | extensions to the command buffer and the WebGraphicsContext3D APIs. BUG=106142 TEST=unittests Review URL: http://codereview.chromium.org/8772033 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@113223 0039d316-1c4b-4281-b951-d872f2087c98
* Update includes to new header locationsabarth@chromium.org2011-12-031-2/+2
| | | | | | | TBR=darin Review URL: http://codereview.chromium.org/8788003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@112825 0039d316-1c4b-4281-b951-d872f2087c98
* Make command buffer free transfer buffer when switching tabsgman@chromium.org2011-12-011-2/+2
| | | | | | | | | | | | | | | | | | | | | | Note: another CL will attempt to free the command buffer as well. Also note: I didn't want to change the function signature of GLES2Implementation as that would have been a much larger change. So, the startup code in renderer_gl_context.cc still creates the initial transfer buffer and info about that is passed into GLES2Implementation. A cleaner approach would probably have been to let GLES2Implemetation allocate the initial buffer but that's a much larger change. TEST=unit tests and ran Chrome testing a few pages and stepping in debugger. BUG=103989 R=apatrick@chromium.org Review URL: http://codereview.chromium.org/8536045 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@112393 0039d316-1c4b-4281-b951-d872f2087c98
* Fix the components build on Linux.tony@chromium.org2011-11-301-1/+1
| | | | | | | | | | | | | | | We were including the wrong GLES2/gl2.h file. This was previously fixed in http://codereview.chromium.org/8540032 , but we regressed it http://codereview.chromium.org/8423038/ . It looks like we were getting the copy in third_party/angle/include. BUG=None Review URL: http://codereview.chromium.org/8735003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@112266 0039d316-1c4b-4281-b951-d872f2087c98
* Trusted proxy side checks on GetRingBuffer()nfullagar@google.com2011-11-301-3/+9
| | | | | | | | | BUG=http://code.google.com/p/chromium/issues/detail?id=105641 TEST=none Review URL: http://codereview.chromium.org/8725017 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@112150 0039d316-1c4b-4281-b951-d872f2087c98
* Use callback_forward.h instead of callback.h where possible.erikwright@chromium.org2011-11-291-1/+1
| | | | | | | | | | | | | | | | | callback_forward.h will be committed separately, before this commit, and is included here only to assist in running try jobs. It will be removed before the final commit. You are asked to review this as you have OWNERS for these files. BUG=None TEST=Compiles R=jam@chromium.org Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=111936 Review URL: http://codereview.chromium.org/8699010 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@111965 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 111936 - Use callback_forward.h instead of callback.h where possible.jstritar@chromium.org2011-11-291-1/+1
| | | | | | | | | | | | | | | | | | callback_forward.h will be committed separately, before this commit, and is included here only to assist in running try jobs. It will be removed before the final commit. You are asked to review this as you have OWNERS for these files. BUG=None TEST=Compiles R=jam@chromium.org Review URL: http://codereview.chromium.org/8699010 TBR=erikwright@chromium.org Review URL: http://codereview.chromium.org/8726036 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@111940 0039d316-1c4b-4281-b951-d872f2087c98
* Use callback_forward.h instead of callback.h where possible.erikwright@chromium.org2011-11-291-1/+1
| | | | | | | | | | | | | | | callback_forward.h will be committed separately, before this commit, and is included here only to assist in running try jobs. It will be removed before the final commit. You are asked to review this as you have OWNERS for these files. BUG=None TEST=Compiles R=jam@chromium.org Review URL: http://codereview.chromium.org/8699010 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@111936 0039d316-1c4b-4281-b951-d872f2087c98
* Move GL headers from gpu to third_party/khronosskyostil@google.com2011-11-242-3/+3
| | | | | | | | | | | | | This change moves the OpenGL ES and EGL header files from gpu/ to a new third_party/khronos/ directory. The headers are also rebased to the latest upstream versions. BUG=102824 TEST=none Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=111170 Review URL: http://codereview.chromium.org/8423038 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@111523 0039d316-1c4b-4281-b951-d872f2087c98
* Added minimal support to command buffer for GL_ARB_texture_rectanglekbr@chromium.org2011-11-232-0/+7
| | | | | | | | | | | | | | | | | | | | | | textures, and added Mac OS X-specific extension for binding IOSurfaces to textures. This is infrastructure work for rendering Core Animation plugins via Chrome's compositor. Refactored the texture initialization in the command buffer and associated unit tests. Added unit tests for rectangular textures. These changes will be hooked up in a subsequent CL. They were split off for easier review. There are ongoing discussions about unifying the various mechanisms for sharing textures across processes, but it's been agreed that those should not block this work. BUG=38967 TEST=GPU unit tests; manual testing with forthcoming changes Review URL: http://codereview.chromium.org/8680002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@111426 0039d316-1c4b-4281-b951-d872f2087c98
* Flip Y-axis in WebGL for Skia-Macepoger@chromium.org2011-11-231-1/+1
| | | | | | | | | | | BUG=105025 This CL includes additions to webkit/tools/layout_tests/test_expectations.txt which can be removed once http://trac.webkit.org/changeset/101075 is rolled into Chrome. Review URL: http://codereview.chromium.org/8632012 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@111384 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 111170 - Move GL headers from gpu to third_party/khronosabodenha@chromium.org2011-11-222-3/+3
| | | | | | | | | | | | | | This change moves the OpenGL ES and EGL header files from gpu/ to a new third_party/khronos/ directory. The headers are also rebased to the latest upstream versions. BUG=102824 TEST=none Review URL: http://codereview.chromium.org/8423038 TBR=skyostil@google.com Review URL: http://codereview.chromium.org/8633020 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@111173 0039d316-1c4b-4281-b951-d872f2087c98
* Move GL headers from gpu to third_party/khronosskyostil@google.com2011-11-222-3/+3
| | | | | | | | | | | This change moves the OpenGL ES and EGL header files from gpu/ to a new third_party/khronos/ directory. The headers are also rebased to the latest upstream versions. BUG=102824 TEST=none Review URL: http://codereview.chromium.org/8423038 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@111170 0039d316-1c4b-4281-b951-d872f2087c98
* Prepare Chromium for WebCompositor::initialize.nduca@chromium.org2011-11-192-1/+2
| | | | | | | | | | Currently, we have two duplicate mechanisms for telling the compositor to go into threaded mode. First, you set WebCompositor::setThread, then you pass enableCompositorThread via WebPreferences. We're moving to a global initialize/shutdown flow on the compositor. This is a breaking change on the WebKit API so this change prepares us for it. Review URL: http://codereview.chromium.org/8558030 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@110794 0039d316-1c4b-4281-b951-d872f2087c98
* Add OVERRIDE to content/.avi@chromium.org2011-11-174-29/+30
| | | | | | | | | BUG=104314 TEST=no change Review URL: http://codereview.chromium.org/8587009 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@110544 0039d316-1c4b-4281-b951-d872f2087c98
* base::Bind: Convert content/renderer.jhawkins@chromium.org2011-11-154-35/+27
| | | | | | | | | | | BUG=none TEST=none R=csilv@chromium.org Review URL: http://codereview.chromium.org/8554001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@110189 0039d316-1c4b-4281-b951-d872f2087c98
* Allow linker initialization of lazy instancejoth@chromium.org2011-11-152-4/+4
| | | | | | | | | | | | | | Using the initializer list construct = {0} allows the object to be linker initialized. Modify the LazyInstance class design to make it a pod aggregate type that can be linker initialized this way. Also combines the instance and state members, in line with the Singleton<> class design. Introduces a new LAZY_INSTANCE_INITIALIZER macro specifically for using to init all lazy instances + modify all existing callsites to use it. (Old code would no longer compile) BUG=94925 TEST=existing tests pass. http://build.chromium.org/f/chromium/perf/linux-release/sizes/report.html?history=150&header=chrome-si&graph=chrome-si&rev=-1 should step downward. TBR=jam@chromium.org,rvargas@chromium.org,darin@chromium.org,ben@chromium.org,apatrick@chromium.org,akalin@chromium.org Review URL: http://codereview.chromium.org/8491043 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@110076 0039d316-1c4b-4281-b951-d872f2087c98
* fix gl includedpranke@chromium.org2011-11-151-1/+1
| | | | | | | | | | R=kbr@chromium.org BUG= TEST= Review URL: http://codereview.chromium.org/8540032 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@110012 0039d316-1c4b-4281-b951-d872f2087c98
* Plumb through EGL_NV_post_sub_buffer and GLX_MESA_copy_sub_buffer.backer@chromium.org2011-11-112-0/+15
| | | | | | | | | | These two extensions allow a partial swap: just pushing part of the backbuffer to the front buffer. This will allow the WK compositor to push a partial update to the screen instead of a full frame update (https://bugs.webkit.org/show_bug.cgi?id=70533). We should be able to do something similar for TOUCHUI ImageTransportSurfaces (hence the hooks into GLSurface and the glPostSubBufferCHROMIUM command). Review URL: http://codereview.chromium.org/8512005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@109625 0039d316-1c4b-4281-b951-d872f2087c98
* Add entry points for compressed textures.gman@chromium.org2011-11-112-0/+25
| | | | | | | | | | | | | | | This is needed for a coming webkit patch that will use these functions. TEST=none BUG=none R=kbr@chromium.org Review URL: http://codereview.chromium.org/8523001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@109568 0039d316-1c4b-4281-b951-d872f2087c98
* Cleanup: Remove more unneeded forward declares in content.thestig@chromium.org2011-11-113-12/+4
| | | | | | | | | BUG=none TEST=none Review URL: http://codereview.chromium.org/8511044 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@109549 0039d316-1c4b-4281-b951-d872f2087c98
* Landing http://codereview.chromium.org/8393063/ on behalf mmocny@. marcheu@ ↵zelidrag@chromium.org2011-11-051-0/+2
| | | | | | | | | | | | | had confirmed that this indeed takes care for #1 crash in ChromeOS. Call gman's Release SHM when tab goes into background BUG=chromium-os:22372 TEST=Manual Review URL: http://codereview.chromium.org/8474015 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@108749 0039d316-1c4b-4281-b951-d872f2087c98
* Make LazyInstance managed Locks leaky.thestig@chromium.org2011-11-011-3/+3
| | | | | | | | | BUG=none TEST=none Review URL: http://codereview.chromium.org/8430019 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@108159 0039d316-1c4b-4281-b951-d872f2087c98
* Rename setVisibility to setVisibilityCHROMIUM and expose as ↵nduca@chromium.org2011-10-252-7/+8
| | | | | | | | GL_CHROIMIUM_set_visibility extension. Review URL: http://codereview.chromium.org/8373006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@107034 0039d316-1c4b-4281-b951-d872f2087c98
* Move GPUInfo to content/public/common and put it into the content namespace.jam@chromium.org2011-10-203-7/+7
| | | | | | | BUG=98716 Review URL: http://codereview.chromium.org/8363007 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@106637 0039d316-1c4b-4281-b951-d872f2087c98
* Fixed bugs with Pepper 3D under dynamic GPU switching.kbr@chromium.org2011-10-192-0/+5
| | | | | | | | | | | | | | | | | | | | | Made Pepper 3D context creation code fully aware of GPU switching and changed the order of context creation and and fetching of the parent context. Creating the context potentially causes all existing contexts for that renderer, including the parent, to be lost. Detect shutting down of the GPU channel more quickly on the renderer side. Only reject context creation in GLContextCGL upon GpuPreference mismatch if the system supports dual GPUs. Will update tools/histograms/histograms.xml as soon as this is committed; must occur in a separate CL. BUG=100507 TEST=tested navigating to and from, and reloading, NaCl Pepper 3D samples on Mac 10.6.8 and 10.7.1; WebGL tests Review URL: http://codereview.chromium.org/8342024 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@106394 0039d316-1c4b-4281-b951-d872f2087c98
* Last straw for translated_shader_source extension.zmo@google.com2011-10-172-0/+25
| | | | | | | | | | While hooking up with webkit side of this extension, I realized something is missing. So this CL is the fix. BUG=95531 TEST=tested with the webkit side CL Review URL: http://codereview.chromium.org/8294002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@105969 0039d316-1c4b-4281-b951-d872f2087c98
* Make shared memory allocation possible for all child process types.michaeln@google.com2011-10-151-2/+3
| | | | | | Review URL: http://codereview.chromium.org/8229039 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@105621 0039d316-1c4b-4281-b951-d872f2087c98
* Adding gl command to change surface visibility, so that the gpu process can ↵mmocny@chromium.org2011-10-146-0/+27
| | | | | | | | | | | | appropriately release/reacquire resources. BUG=5175544 TEST=None Review URL: http://codereview.chromium.org/7890046 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@105563 0039d316-1c4b-4281-b951-d872f2087c98
* Support dynamic switching between integrated and discrete GPUs on Mac OS X.kbr@chromium.org2011-10-136-22/+104
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Change Chrome to allocate most OpenGL contexts with the kCGLPFAAllowOfflineRenderers flag, and specify NSSupportsAutomaticGraphicsSwitching in the Info.plist for the main executable and helper apps. This keeps Chrome on the integrated GPU except when using WebGL, accelerated 2D Canvas, Pepper 3D, and Core Animation-based plugins (except Flash). Chrome shares resources between OpenGL contexts in order to display WebGL and other content in the compositor, and resource sharing doesn't work between contexts allocated on different GPUs. Therefore, when the first context for a given renderer requests the discrete GPU, the channel is dropped and all contexts are reallocated on the discrete GPU. Similarly, when the last context requesting the discrete GPU for a given renderer is shut down, all contexts are dropped and reallocated on the integrated GPU. Currently dynamic GPU switching is only supported on the latest Mac OS X 10.7 update and MacBook Pros with dual AMD / Intel GPUs, though this will improve in future OS updates. Tested with WebGL, CSS 3D, Flash and Unity3D content and observed desired GPU switching behavior. Also added a layout test to WebKit under https://bugs.webkit.org/show_bug.cgi?id=69776 which when run in Chrome catches an assertion failure related to the destruction of contexts. The intent is to add it as a UI layout test on the GPU bots. BUG=88788 TEST=none Review URL: http://codereview.chromium.org/8233027 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@105399 0039d316-1c4b-4281-b951-d872f2087c98
* Move content_switches to content\public\common.jam@chromium.org2011-10-131-1/+1
| | | | | | | BUG=98716 Review URL: http://codereview.chromium.org/8277018 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@105389 0039d316-1c4b-4281-b951-d872f2087c98
* Allow FlushSyncs to short circuitjbauman@chromium.org2011-10-101-8/+7
| | | | | | | | | | | | All messages on a channel are now executed in order, so Flushs have to wait for all previous AsyncFlushs to finish. This is generally unnecessary, so we replace Flush with a GetStateFast message. All commands are queued up when they enter the gpu process, and GetStateFast commands are moved to the head of the line. BUG= TEST=trybots, webgl conformance tests Review URL: http://codereview.chromium.org/8198017 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@104786 0039d316-1c4b-4281-b951-d872f2087c98
* Rename RenderView to RenderViewImpl. Update Chrome's DEPS so that it can't ↵jam@chromium.org2011-10-101-8/+8
| | | | | | | | | include the RenderView implementation. BUG=98716 Review URL: http://codereview.chromium.org/8220006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@104754 0039d316-1c4b-4281-b951-d872f2087c98
* Register route with compositor thread whenever compositor is activated if ↵jamesr@chromium.org2011-10-081-0/+8
| | | | | | | | | | | threaded compositing is on BUG=none TEST=none Review URL: http://codereview.chromium.org/8188001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@104635 0039d316-1c4b-4281-b951-d872f2087c98
* Add command line switch for enabling threaded compositingjamesr@chromium.org2011-10-081-2/+1
| | | | | | | | | | | This is a patch against the patch in http://codereview.chromium.org/8139020/ BUG=none TEST=none Review URL: http://codereview.chromium.org/8163008 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@104623 0039d316-1c4b-4281-b951-d872f2087c98
* Yet more exports needed from content.dpranke@chromium.org2011-10-071-1/+3
| | | | | | | | | | R=jam@chromium.org BUG=90442 TEST= Review URL: http://codereview.chromium.org/8205012 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@104595 0039d316-1c4b-4281-b951-d872f2087c98
* Convert a bunch of pepper implementation to use base::Callback.dmichael@chromium.org2011-10-076-42/+43
| | | | | | | | | BUG=35223 TEST=ppapi ui_tests Review URL: http://codereview.chromium.org/8135010 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@104572 0039d316-1c4b-4281-b951-d872f2087c98
* Turning the threaded compositor into a runtime option. This CLvangelis@chromium.org2011-10-071-10/+1
| | | | | | | | | | must land after https://bugs.webkit.org/show_bug.cgi?id=69391 BUG=none TEST=Covered by existing compositor tests Review URL: http://codereview.chromium.org/8139020 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@104542 0039d316-1c4b-4281-b951-d872f2087c98
* Rename RenderThread to RenderThreadImpljam@chromium.org2011-10-065-12/+10
| | | | | | | | BUG=98716 TBR=ananta Review URL: http://codereview.chromium.org/8171015 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@104386 0039d316-1c4b-4281-b951-d872f2087c98
* Input event filtering and compositor thread setup.darin@chromium.org2011-10-065-0/+624
| | | | | | | | | | | | | | | | | | | | There are two new classes: InputEventFilter and CompositorThread. The first sets up a MessageFilter designed to route input events to the compositor thread. CompositorThread sets up the compositor thread and it has a InputEventFilter. When we pass an event to the CompositorThread, we are actually passing it to a WebCompositor, which can respond asynchronously via WebCompositorClient to tell us whether it handled the event or wants us to punt it up to the WebWidget. It can also tell us that it did not handle the event and that we should not bother sending it to the WebWidget. InputEventFilter contains all of the interesting thread marshalling code. CompositorThread has the WebCompositor hookup. Review URL: http://codereview.chromium.org/8089002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@104258 0039d316-1c4b-4281-b951-d872f2087c98