summaryrefslogtreecommitdiffstats
path: root/content/browser/gpu
Commit message (Collapse)AuthorAgeFilesLines
* Look for the first valid GPU process host in the host-id map.petkov@chromium.org2012-01-091-10/+6
| | | | | | | | | | | | | This is an alternative fix for the race between destroying a dead host and looking up a host that may lead to unnecessary spawning of new GPU processes. BUG=chromium-os:107491 TEST=see issue Review URL: http://codereview.chromium.org/9030021 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@116862 0039d316-1c4b-4281-b951-d872f2087c98
* Remove task.h and finish base::Bind() migration.ajwong@chromium.org2012-01-061-1/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Over 341 CLs, in ~3 months, touching 3251 unique files! Top 5 most CLs: (121) jhawkins ( 45) dcheng ( 24) achuith ( 23) csilv ( 12) tfarina ( 12) groby ~1000 files touched: (918) jhawkins 100+ files touched: (486) ajwong (385) willchan (372) dcheng (126) csilv (123) fischman (112) sergeyu 49+ files touched: (65) tfarina (57) acolwell (52) adamk (49) tzik BUG=35223 TEST=existing Review URL: http://codereview.chromium.org/9114020 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@116748 0039d316-1c4b-4281-b951-d872f2087c98
* Remove GPU process hosts that are about to be destroyed from host-id map.petkov@chromium.org2011-12-211-1/+5
| | | | | | | | | | | | | This ensures we will not try to use the hosts again which may lead to spawning GPU processes unnecessarily (e.g., in GpuProcessHost::GetForRenderer). BUG=chromium:107491 TEST=see issue Review URL: http://codereview.chromium.org/9007007 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@115307 0039d316-1c4b-4281-b951-d872f2087c98
* Consider GPU hosts that are about to die as invalid.petkov@chromium.org2011-12-161-0/+4
| | | | | | | | | | | | | | This resolves a race condition where a GPU process host is considered valid while the host is waiting for the process exit code. This prevented us from respawning crashed GPU processes. BUG=chromium:107491 TEST=see issue Review URL: http://codereview.chromium.org/8947019 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@114812 0039d316-1c4b-4281-b951-d872f2087c98
* Remove unused parameter in GpuProcessHost HostIsValid.apatrick@chromium.org2011-12-151-3/+3
| | | | | | Review URL: http://codereview.chromium.org/8963002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@114703 0039d316-1c4b-4281-b951-d872f2087c98
* Restore kTraceStartup flag propogation to gpu processjoth@chromium.org2011-12-151-0/+1
| | | | | | | | | | | | This was accidentally removed in http://codereview.chromium.org/8491043/diff/19001/content/browser/gpu/gpu_process_host.cc BUG=None TEST=start browser with --trace-startup Review URL: http://codereview.chromium.org/8912005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@114662 0039d316-1c4b-4281-b951-d872f2087c98
* Propagate --disable-image-transport-surface to GPU process.apatrick@chromium.org2011-12-141-0/+1
| | | | | | Review URL: http://codereview.chromium.org/8890087 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@114332 0039d316-1c4b-4281-b951-d872f2087c98
* Remove custom Task implementations and re-exorcise old callbacks from gpu.dcheng@chromium.org2011-12-104-104/+58
| | | | | | | | | | BUG=none TEST=trybots Review URL: http://codereview.chromium.org/8887001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@113924 0039d316-1c4b-4281-b951-d872f2087c98
* Add a JS API for detecting WebGL availability.zmo@google.com2011-12-086-29/+33
| | | | | | | | | | Move GpuInfoUpdate to UI thread to avoid potential racing. BUG=104768 TEST=ExtensionWebstorePrivateBundleTest.GetWebGLStatus Review URL: http://codereview.chromium.org/8772031 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@113688 0039d316-1c4b-4281-b951-d872f2087c98
* Use ForceShutdown to kill old GPU process.jbauman@chromium.org2011-12-072-2/+8
| | | | | | | | | | | | | This is cleaner and won't cause spurious crash reports. BUG= TEST= Review URL: http://codereview.chromium.org/8823005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@113462 0039d316-1c4b-4281-b951-d872f2087c98
* Remove dead code for gpu blacklist auto-update.zmo@google.com2011-12-032-45/+4
| | | | | | | | | BUG=103851 TEST=tree R=kbr Review URL: http://codereview.chromium.org/8758003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@112879 0039d316-1c4b-4281-b951-d872f2087c98
* Make ChildProcessHost be used through an interface in content/public, ↵jam@chromium.org2011-12-032-10/+10
| | | | | | | | | instead of by inheritence. BUG=98716 Review URL: http://codereview.chromium.org/8787004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@112878 0039d316-1c4b-4281-b951-d872f2087c98
* Don't make classes derive from ChildProcessHost, and instead have them use ↵jam@chromium.org2011-12-022-34/+26
| | | | | | | | | it through composition. This cleans up the code and makes it easier to understand (as well as more closely conform to the Google C++ style guide). It also makes it possible to add an interface around ChildProcessHost in a future change. BUG=98716 Review URL: http://codereview.chromium.org/8774040 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@112769 0039d316-1c4b-4281-b951-d872f2087c98
* Improve GPU tests to fail when GPU drawing fails.jbates@chromium.org2011-12-021-2/+4
| | | | | | | | | | | Changed the accelerated html pages to use raf to draw multiple frames. Changed the webgl and canvas2d pages to draw onscreen rather than offscreen to make sure the compositor draws the page. BUG=105785,104142 Review URL: http://codereview.chromium.org/8692013 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@112763 0039d316-1c4b-4281-b951-d872f2087c98
* aura: fix fullscreen pepper flashpiman@chromium.org2011-12-011-28/+22
| | | | | | | | | | | | | | 2 parts: - not all RenderWidgetHosts are RenderViewHosts - correctly set window/viewport size regardless of order of RenderWidgetFullscreenPepper::OnResize vs RenderWidgetFullscreenPepper::CreateContext BUG=101848 TEST=Pepper Flash on Youtube, go fullscreen Review URL: http://codereview.chromium.org/8758017 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@112503 0039d316-1c4b-4281-b951-d872f2087c98
* Move the ProcessType enum out to its own file. This is in preparation for ↵jam@chromium.org2011-12-011-1/+1
| | | | | | | | | getting rid of ChildProcessInfo. BUG=98716 Review URL: http://codereview.chromium.org/8760011 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@112353 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
* Add OVERRIDE to content/.avi@chromium.org2011-11-281-1/+2
| | | | | | | | | BUG=104314 TEST=no change Review URL: http://codereview.chromium.org/8678021 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@111755 0039d316-1c4b-4281-b951-d872f2087c98
* Fix a regression in chrome://gpucrash etc.zmo@google.com2011-11-282-0/+13
| | | | | | | | | | So we won't have a GpuUIHost with id 0. It starts from 1. BUG=105044 TEST=GPUCrashTest.Kill on GPU bots Review URL: http://codereview.chromium.org/8680035 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@111721 0039d316-1c4b-4281-b951-d872f2087c98
* Move preliminary gpu info collection back to UI thread.zmo@google.com2011-11-241-6/+1
| | | | | | | | | | | Missed adding this file's change to the CL. BUG=97535 TEST= TBR=kbr Review URL: http://codereview.chromium.org/8680039 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@111458 0039d316-1c4b-4281-b951-d872f2087c98
* Plumb the partial swap though image transport.backer@chromium.org2011-11-232-0/+29
| | | | | | | | | | | Plumbs the partial swap through on platforms that support it (currently just Linux GLX). BUG=None TEST=None Review URL: http://codereview.chromium.org/8513013 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@111392 0039d316-1c4b-4281-b951-d872f2087c98
* Move GPU preliminary info collection back to UI thread.zmo@google.com2011-11-233-179/+30
| | | | | | | | | | | | | | Apparently doing it on FILE thread causes a race, which causes crbug 83153. In order to move back to UI thread, we have to drop chrome channel support in GPU blacklist (it's a FILE operation); also, we have to move the collection of ATI driver version in linux to GPU process. Note that this is the minimum change required for the move. Further cleanup will follow once this is merged safely back to M16. BUG=97535 TEST=unittest Review URL: http://codereview.chromium.org/8670004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@111390 0039d316-1c4b-4281-b951-d872f2087c98
* Fix bad merge.apatrick@chromium.org2011-11-231-1/+3
| | | | | | Review URL: http://codereview.chromium.org/8665005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@111259 0039d316-1c4b-4281-b951-d872f2087c98
* Reland 110355 - Use shared D3D9 texture to transport the compositor's ↵apatrick@chromium.org2011-11-222-24/+13
| | | | | | | | | | | | | | | | backing buffer to the browser process for presentation. Implemented ImageTransportSurface for Linux (without texture sharing), XP, Vista and 7. XP. The non-texture sharing Linux and XP paths just present directly to the compositing child window owned by the browser process as before. PassThroughImageTransportSurface still needs a proper name. I will move it into its own file once that is decided. I moved AcceleratedSurfaceBuffersSwapped outside of the platform specific ifdefs and made the signature the same on all platforms for greater consistency. I removed the code related to sharing surfaces between processes and synchronizing resize and swapping out of GpuCommandBufferStub. It is all now in ImageTransportSurface implementations. Original Review URL: http://codereview.chromium.org/8060045 Review URL: http://codereview.chromium.org/8622004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@111246 0039d316-1c4b-4281-b951-d872f2087c98
* A few less TOUCH_UIs.backer@chromium.org2011-11-224-13/+12
| | | | | | | | | | | There is no more TOUCH_UI. This is a NO-OP because defined(UI_COMPOSITOR_IMAGE_TRANSPORT) ==> !defined(TOOLKIT_USES_GTK). BUG=None TEST=None Review URL: http://codereview.chromium.org/8617001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@111142 0039d316-1c4b-4281-b951-d872f2087c98
* GTK: Make the gtk port compile with GTK_DISABLE_SINGLE_INCLUDES.erg@chromium.org2011-11-221-1/+1
| | | | | | | | | | BUG=79722 TEST=none TBR=tony Review URL: http://codereview.chromium.org/8586044 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@111090 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 111040 - Reland 110355 - Use shared D3D9 texture to transport the ↵apatrick@chromium.org2011-11-212-14/+24
| | | | | | | | | | | | | | | | | | | compositor's backing buffer to the browser process for presentation. Implemented ImageTransportSurface for Linux (without texture sharing), XP, Vista and 7. XP. The non-texture sharing Linux and XP paths just present directly to the compositing child window owned by the browser process as before. PassThroughImageTransportSurface still needs a proper name. I will move it into its own file once that is decided. I moved AcceleratedSurfaceBuffersSwapped outside of the platform specific ifdefs and made the signature the same on all platforms for greater consistency. I removed the code related to sharing surfaces between processes and synchronizing resize and swapping out of GpuCommandBufferStub. It is all now in ImageTransportSurface implementations. Original Review URL: http://codereview.chromium.org/8060045 Review URL: http://codereview.chromium.org/8620006 TBR=apatrick@chromium.org Review URL: http://codereview.chromium.org/8625003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@111043 0039d316-1c4b-4281-b951-d872f2087c98
* Reland 110355 - Use shared D3D9 texture to transport the compositor's ↵apatrick@chromium.org2011-11-212-24/+14
| | | | | | | | | | | | | | | | backing buffer to the browser process for presentation. Implemented ImageTransportSurface for Linux (without texture sharing), XP, Vista and 7. XP. The non-texture sharing Linux and XP paths just present directly to the compositing child window owned by the browser process as before. PassThroughImageTransportSurface still needs a proper name. I will move it into its own file once that is decided. I moved AcceleratedSurfaceBuffersSwapped outside of the platform specific ifdefs and made the signature the same on all platforms for greater consistency. I removed the code related to sharing surfaces between processes and synchronizing resize and swapping out of GpuCommandBufferStub. It is all now in ImageTransportSurface implementations. Original Review URL: http://codereview.chromium.org/8060045 Review URL: http://codereview.chromium.org/8620006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@111040 0039d316-1c4b-4281-b951-d872f2087c98
* Get rid of last gpu_messages.h dependency in chrome by having chrome ask the ↵jam@chromium.org2011-11-192-2/+18
| | | | | | | | | GPUProcessHostUIShim to hang/crash/clean the gpu process. BUG=98716 Review URL: http://codereview.chromium.org/8548014 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@110802 0039d316-1c4b-4281-b951-d872f2087c98
* Get rid of gpu_messages.h include in chrome by having the ↵jam@chromium.org2011-11-182-21/+0
| | | | | | | | RenderWidgetHostView implementation ask the RenderWidgetHost to ack for the swap buffers GPU message. Review URL: http://codereview.chromium.org/8595002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@110752 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 110626 - Reland 110355 - Use shared D3D9 texture to transport the ↵apatrick@chromium.org2011-11-182-14/+29
| | | | | | | | | | | | | | | | | | | compositor's backing buffer to the browser process for presentation. Implemented ImageTransportSurface for Linux (without texture sharing), XP, Vista and 7. XP. The non-texture sharing Linux and XP paths just present directly to the compositing child window owned by the browser process as before. PassThroughImageTransportSurface still needs a proper name. I will move it into its own file once that is decided. I moved AcceleratedSurfaceBuffersSwapped outside of the platform specific ifdefs and made the signature the same on all platforms for greater consistency. I removed the code related to sharing surfaces between processes and synchronizing resize and swapping out of GpuCommandBufferStub. It is all now in ImageTransportSurface implementations. Review URL: http://codereview.chromium.org/8060045 Review URL: http://codereview.chromium.org/8588045 TBR=apatrick@chromium.org Review URL: http://codereview.chromium.org/8558008 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@110638 0039d316-1c4b-4281-b951-d872f2087c98
* Reland 110355 - Use shared D3D9 texture to transport the compositor's ↵apatrick@chromium.org2011-11-182-29/+14
| | | | | | | | | | | | | | | | backing buffer to the browser process for presentation. Implemented ImageTransportSurface for Linux (without texture sharing), XP, Vista and 7. XP. The non-texture sharing Linux and XP paths just present directly to the compositing child window owned by the browser process as before. PassThroughImageTransportSurface still needs a proper name. I will move it into its own file once that is decided. I moved AcceleratedSurfaceBuffersSwapped outside of the platform specific ifdefs and made the signature the same on all platforms for greater consistency. I removed the code related to sharing surfaces between processes and synchronizing resize and swapping out of GpuCommandBufferStub. It is all now in ImageTransportSurface implementations. Review URL: http://codereview.chromium.org/8060045 Review URL: http://codereview.chromium.org/8588045 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@110626 0039d316-1c4b-4281-b951-d872f2087c98
* Define the public interface for content browser RenderProcessHost. This ↵ananta@chromium.org2011-11-181-1/+1
| | | | | | | | | | | | | | | interface is implemented by the RenderProcessHostImpl class which lives in content\browser\renderer_host\render_process_host_impl.cc/.h. The RenderProcessHostImpl class is a consolidation of the RenderProcessHost and BrowserRenderProcessHost classes. The RenderProcessHost public interface was created from the now deleted RenderProcessHost class defined in content\browser\renderer_host\render_process_host.h. Additional methods have been added to the interface to ensure that it works correctly with the MockRenderProcessHost class used by unit tests. I had to implement a number of overrides in the MockRenderProcessHost class to ensure that tests work correctly. This was because of assumptions in the tests that the MockRPH class was a real RPH which it was till now. Added a TODO for the methods which could potentially be removed from this interface. Will revisit that in a subsequent CL. BUG=98716 TEST=No change in functionality. Hopefully it all compiles and works. Review URL: http://codereview.chromium.org/8515027 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@110615 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 110542 - Fix link issue when component=shared_libraryajwong@chromium.org2011-11-171-2/+2
| | | | | | | | | | | | | BUG=104622 TEST=GYP_DEFINES="component=shared_library" and build Review URL: http://codereview.chromium.org/8587036 TBR=penghuang@chromium.org Review URL: http://codereview.chromium.org/8587049 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@110552 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 110548 - Reland 110355 - Use shared D3D9 texture to transport the ↵apatrick@chromium.org2011-11-172-14/+29
| | | | | | | | | | | | | | | | | | | | | compositor's backing buffer to the browser process for presentation. Implemented ImageTransportSurface for Linux (without texture sharing), XP, Vista and 7. XP. The non-texture sharing Linux and XP paths just present directly to the compositing child window owned by the browser process as before. PassThroughImageTransportSurface still needs a proper name. I will move it into its own file once that is decided. I moved AcceleratedSurfaceBuffersSwapped outside of the platform specific ifdefs and made the signature the same on all platforms for greater consistency. I removed the code related to sharing surfaces between processes and synchronizing resize and swapping out of GpuCommandBufferStub. It is all now in ImageTransportSurface implementations. Review URL: http://codereview.chromium.org/8060045 TBR=cpu@chromium.org Review URL: http://codereview.chromium.org/8591006 TBR=apatrick@chromium.org Review URL: http://codereview.chromium.org/8574071 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@110551 0039d316-1c4b-4281-b951-d872f2087c98
* Reland 110355 - Use shared D3D9 texture to transport the compositor's ↵apatrick@chromium.org2011-11-172-29/+14
| | | | | | | | | | | | | | | | | | backing buffer to the browser process for presentation. Implemented ImageTransportSurface for Linux (without texture sharing), XP, Vista and 7. XP. The non-texture sharing Linux and XP paths just present directly to the compositing child window owned by the browser process as before. PassThroughImageTransportSurface still needs a proper name. I will move it into its own file once that is decided. I moved AcceleratedSurfaceBuffersSwapped outside of the platform specific ifdefs and made the signature the same on all platforms for greater consistency. I removed the code related to sharing surfaces between processes and synchronizing resize and swapping out of GpuCommandBufferStub. It is all now in ImageTransportSurface implementations. Review URL: http://codereview.chromium.org/8060045 TBR=cpu@chromium.org Review URL: http://codereview.chromium.org/8591006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@110548 0039d316-1c4b-4281-b951-d872f2087c98
* Add OVERRIDE to content/.avi@chromium.org2011-11-172-8/+8
| | | | | | | | | 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
* Fix link issue when component=shared_librarypenghuang@chromium.org2011-11-171-2/+2
| | | | | | | | | | BUG=104622 TEST=GYP_DEFINES="component=shared_library" and build Review URL: http://codereview.chromium.org/8587036 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@110542 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 110355 - Use shared D3D9 texture to transport the compositor's ↵cpu@chromium.org2011-11-172-14/+29
| | | | | | | | | | | | | | | | | | backing buffer to the browser process for presentation. Implemented ImageTransportSurface for Linux (without texture sharing), XP, Vista and 7. XP. The non-texture sharing Linux and XP paths just present directly to the compositing child window owned by the browser process as before. PassThroughImageTransportSurface still needs a proper name. I will move it into its own file once that is decided. I moved AcceleratedSurfaceBuffersSwapped outside of the platform specific ifdefs and made the signature the same on all platforms for greater consistency. I removed the code related to sharing surfaces between processes and synchronizing resize and swapping out of GpuCommandBufferStub. It is all now in ImageTransportSurface implementations. Review URL: http://codereview.chromium.org/8060045 TBR=apatrick@chromium.org Review URL: http://codereview.chromium.org/8587012 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@110387 0039d316-1c4b-4281-b951-d872f2087c98
* Use shared D3D9 texture to transport the compositor's backing buffer to the ↵apatrick@chromium.org2011-11-162-29/+14
| | | | | | | | | | | | | | | browser process for presentation. Implemented ImageTransportSurface for Linux (without texture sharing), XP, Vista and 7. XP. The non-texture sharing Linux and XP paths just present directly to the compositing child window owned by the browser process as before. PassThroughImageTransportSurface still needs a proper name. I will move it into its own file once that is decided. I moved AcceleratedSurfaceBuffersSwapped outside of the platform specific ifdefs and made the signature the same on all platforms for greater consistency. I removed the code related to sharing surfaces between processes and synchronizing resize and swapping out of GpuCommandBufferStub. It is all now in ImageTransportSurface implementations. Review URL: http://codereview.chromium.org/8060045 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@110355 0039d316-1c4b-4281-b951-d872f2087c98
* Allow linker initialization of lazy instancejoth@chromium.org2011-11-152-5/+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
* Add tests to make sure gpu blacklist actually block gpu features.zmo@google.com2011-11-121-0/+2
| | | | | | | | | | | | (Retry after a fix.) The general idea is to use jbates's newly added tracing: if a feature is blacklisted, we check the tracing data to make sure gpu process hasn't launched. BUG=101222 TEST=browser_tests Review URL: http://codereview.chromium.org/8510032 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@109740 0039d316-1c4b-4281-b951-d872f2087c98
* Remove GPU blacklist auto-update.zmo@google.com2011-11-121-0/+1
| | | | | | | | | | | | Also, use the software_rendering_list.json in deps, so it can be shared by all branches and main trunk. Note that this CL is the minimum because we need to merge back to M16. The remaining cleanup, including removing the dead code, simplifying GpuDataManager, refactoring, will be done in a separate CL. BUG=103851 TEST=try bots Review URL: http://codereview.chromium.org/8511067 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@109738 0039d316-1c4b-4281-b951-d872f2087c98
* Allow switching to SwiftShader when GPU is blacklistedjbauman@chromium.org2011-11-114-8/+102
| | | | | | | | | | | | When a path to swiftshader is specified and the current GPU is blacklisted, tell the gpu process to use swiftshader to render it. If there already is a gpu process, kill it and make a new one that uses swiftshader BUG= TEST= Review URL: http://codereview.chromium.org/8480015 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@109695 0039d316-1c4b-4281-b951-d872f2087c98
* share all the needed linux code with OpenBSD in chrome and contentrobert.nagy@gmail.com2011-11-112-2/+3
| | | | | | | | | | | | | | disabled code for OpenBSD: - AdjustRendererOOMScore() - SECCOMP_SANDBOX BUG= TEST=compile Review URL: http://codereview.chromium.org/8341052 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@109679 0039d316-1c4b-4281-b951-d872f2087c98
* Cleanup: Remove unneeded forward declarations in content/browser.thestig@chromium.org2011-11-101-7/+5
| | | | | | | | BUG=none TEST=none Review URL: http://codereview.chromium.org/8499042 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@109363 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 109328 - Add tests to make sure gpu blacklist actually block gpu ↵zmo@google.com2011-11-091-2/+0
| | | | | | | | | | | | | | | features. The general idea is to use jbates's newly added tracing: if a feature is blacklisted, we check the tracing data to make sure gpu process hasn't launched. BUG=101222 TEST=browser_tests Review URL: http://codereview.chromium.org/8497034 TBR=zmo@google.com Review URL: http://codereview.chromium.org/8510030 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@109334 0039d316-1c4b-4281-b951-d872f2087c98
* Add tests to make sure gpu blacklist actually block gpu features.zmo@google.com2011-11-091-0/+2
| | | | | | | | | | The general idea is to use jbates's newly added tracing: if a feature is blacklisted, we check the tracing data to make sure gpu process hasn't launched. BUG=101222 TEST=browser_tests Review URL: http://codereview.chromium.org/8497034 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@109328 0039d316-1c4b-4281-b951-d872f2087c98