summaryrefslogtreecommitdiffstats
path: root/ui/gfx/gl
Commit message (Collapse)AuthorAgeFilesLines
* mac: s/UI_EXPORT/GL_EXPORT/ for GLSurfaceCGLthakis@chromium.org2012-05-121-1/+1
| | | | | | | | | | | | | The class got moved a while ago but the export macro wasn't updated. BUG=90078 TEST=none TBR=kbr Review URL: https://chromiumcodereview.appspot.com/10356140 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@136743 0039d316-1c4b-4281-b951-d872f2087c98
* Disable dynamic GPU switching on Mac OS X 10.8 (Mountain Lion) to work ↵kbr@chromium.org2012-05-113-7/+23
| | | | | | | | | | | | | | | | around system instability. Also added command line flag --disable-gpu-switching to make it easier to triage similar issues in the future. Tested manually by relaunching browser multiple times on affected machine and verifying no machine hangs. Also manually verified behavior of --disable-gpu-switching flag on 10.7.3 on same hardware. BUG=127713 TEST=tested manually per above steps Review URL: https://chromiumcodereview.appspot.com/10378103 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@136682 0039d316-1c4b-4281-b951-d872f2087c98
* Added gman as OWNER of a few GPU directories and piman as OWNER of a couple ↵kbr@chromium.org2012-05-111-0/+1
| | | | | | | | | | | | others. BUG=none TEST=none TBR=apatrick Review URL: https://chromiumcodereview.appspot.com/10383138 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@136625 0039d316-1c4b-4281-b951-d872f2087c98
* Upstreaming a class used to wrap Android native windows.jcivelli@chromium.org2012-05-117-34/+71
| | | | | | | | | | BUG=None TEST=Android should still compile. Review URL: https://chromiumcodereview.appspot.com/10383082 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@136492 0039d316-1c4b-4281-b951-d872f2087c98
* make GLboolean print GL_TRUE, GL_FALSE when debugging.gman@chromium.org2012-05-101-0/+5
| | | | | | | | | | | | TEST=used it for debugging BUG=none R=apatrick@chromium.org Review URL: https://chromiumcodereview.appspot.com/10392030 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@136446 0039d316-1c4b-4281-b951-d872f2087c98
* Removed tracing when the context is already current.kgr@chromium.org2012-05-093-3/+6
| | | | | | | | | | | | | | This greatly reduces the number of trace events which are generated. Now, it only traces when the context changes (which is very close to 0% of the time.) BUG= TEST= Review URL: https://chromiumcodereview.appspot.com/10181003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@136102 0039d316-1c4b-4281-b951-d872f2087c98
* Add display() getter to GLX context class.posciak@chromium.org2012-05-042-1/+12
| | | | | | | | | | | | | Add a getter to return Display from GLX context class. Add include guards. This is in service of https://chromiumcodereview.appspot.com/9814001/ BUG=117062 Review URL: http://codereview.chromium.org/10378010 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@135471 0039d316-1c4b-4281-b951-d872f2087c98
* RefCounted types should not have public destructors, printing/ and ui/rsleevi@chromium.org2012-05-0214-73/+79
| | | | | | | | | | BUG=123295 TEST=none Review URL: http://codereview.chromium.org/10067034 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@134859 0039d316-1c4b-4281-b951-d872f2087c98
* ui: Convert VLOGs to DVLOGs.tfarina@chromium.org2012-04-235-16/+16
| | | | | | | | | BUG=101424 R=sky@chromium.org Review URL: https://chromiumcodereview.appspot.com/10144008 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@133394 0039d316-1c4b-4281-b951-d872f2087c98
* fix-gl-logginggman@chromium.org2012-04-221-1/+1
| | | | | | | | | | TEST=none BUG=none Review URL: http://codereview.chromium.org/10155002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@133364 0039d316-1c4b-4281-b951-d872f2087c98
* Small change which causes ten times fewer trace events to be generated.kgr@chromium.org2012-04-191-1/+1
| | | | | | | | | | BUG= TEST= Review URL: http://codereview.chromium.org/10138002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@133083 0039d316-1c4b-4281-b951-d872f2087c98
* A few minor fixes and cleanups.cevans@chromium.org2012-04-181-2/+5
| | | | | | | BUG=123502 Review URL: https://chromiumcodereview.appspot.com/10054023 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@132846 0039d316-1c4b-4281-b951-d872f2087c98
* Traces on MakeCurrentnduca@chromium.org2012-04-115-2/+12
| | | | | | Review URL: http://codereview.chromium.org/9931001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@131835 0039d316-1c4b-4281-b951-d872f2087c98
* gl_implementation_win includes d3d9.h, so add the dx sdk to include_dirsthakis@chromium.org2012-04-101-0/+3
| | | | | | | | | | BUG=none TEST=Install the dx sdk from microsoft instead of going the src-internal route, build with msvc2010. No error messages about d3d9.h or d3d9x.lib. TBR=avi Review URL: http://codereview.chromium.org/10033003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@131663 0039d316-1c4b-4281-b951-d872f2087c98
* Remove WAYLAND portoshima@chromium.org2012-04-077-55/+6
| | | | | | | | | | | Also removed skia/ext/canvas_paint_x.h which is not in use. BUG=none TEST=none Review URL: https://chromiumcodereview.appspot.com/10009024 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@131219 0039d316-1c4b-4281-b951-d872f2087c98
* Adding command line switch --gpu-swap-delay to artificially slow down thejunov@google.com2012-03-292-0/+5
| | | | | | | | | | GPU process to simulate slow GPUs. BUG=120469 TEST=None Review URL: https://chromiumcodereview.appspot.com/9866053 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@129673 0039d316-1c4b-4281-b951-d872f2087c98
* C++ code generated by generate_bindings.py was assigning a variable withing ↵trprice@gmail.com2012-03-281-1/+3
| | | | | | | | | | | | | | in if() statement (Visual Studio 2010 warning C4706). I moved the assignment of the variable to the line before the if() statement so that the assignment of the variable happens outside of the if() statement. Additionally, I added myself to the AUTHORS file. I filled out the Contributor License Agreement a while back, but didn't add myself to AUTHORS at that point. BUG=chromium:81439 Review URL: http://codereview.chromium.org/9836106 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@129479 0039d316-1c4b-4281-b951-d872f2087c98
* NativeViewGLSurfaceGLX: don't force swap on resize if size didn't change.piman@chromium.org2012-03-202-7/+10
| | | | | | | | | | BUG=118015 TEST=boot chromeos, observe no flash. On desktop linux, resize accelerated compositing windows and check for no artifacts. Review URL: http://codereview.chromium.org/9751012 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@127768 0039d316-1c4b-4281-b951-d872f2087c98
* Replacing GLSurface::SetVisibility with SetBufferAllocation for more ↵mmocny@chromium.org2012-03-142-11/+11
| | | | | | | | | | | | | | | explicit management. This is just a renaming, it still uses the same renderer visibility hooks to decide how to manage buffers. BUG=116049 TEST=Manual Review URL: http://codereview.chromium.org/9703024 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@126731 0039d316-1c4b-4281-b951-d872f2087c98
* Force a swap on resize to work around Intel driver issues with PostSubBuffer.piman@chromium.org2012-03-102-0/+10
| | | | | | | | | BUG=chrome-os-partner:8223 TEST=run aura chrome with --ui-enable-partial-swap on device, plug in external screen. Review URL: https://chromiumcodereview.appspot.com/9669006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@125956 0039d316-1c4b-4281-b951-d872f2087c98
* Add support for GL_EXT_occlusion_query_booleangman@chromium.org2012-03-082-7/+43
| | | | | | | | | | TEST=unit tests BUG=88601 Review URL: http://codereview.chromium.org/9555011 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@125649 0039d316-1c4b-4281-b951-d872f2087c98
* Preload ddraw.dll before initializing sandbox.jbauman@chromium.org2012-03-021-1/+3
| | | | | | | | | | | | Needed for swiftshader to work. BUG=116092 TEST= Review URL: http://codereview.chromium.org/9567021 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@124550 0039d316-1c4b-4281-b951-d872f2087c98
* Call the built product of target gl 'gl_wrapper'.thakis@chromium.org2012-02-211-0/+1
| | | | | | | | | | | With the components build on mac, libgl.dylib collides with /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib (HFS+ is case-insensitive). libgl_wrapper.dylib on the other hand works fine. BUG=90078 TEST=mac components build fails a bit later Review URL: http://codereview.chromium.org/9426019 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@122833 0039d316-1c4b-4281-b951-d872f2087c98
* Rolling skia deps from r3180 to r3196.tomhudson@google.com2012-02-161-1/+1
| | | | | | | | | | | Requires changes in include paths and new target for SSSE3 optimizations. Followup patch should tweak includes in third_party\WebKit\Source\WebKit\chromium\src\WebGraphicsContext3D.cpp and GraphicsContext3DChromium.cpp. Review URL: https://chromiumcodereview.appspot.com/9404008 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@122285 0039d316-1c4b-4281-b951-d872f2087c98
* Worked around IOSurface related system lockups on dual NVIDIA/Intel GPUkbr@chromium.org2012-02-153-3/+40
| | | | | | | | | | | | | MacBook Pros by forcing Chrome to use and stay on the discrete GPU on such systems. BUG=113703 TEST=ran Gmail and WebGL demos on dual NVIDIA/Intel and AMD/Intel GPU MBPs Review URL: http://codereview.chromium.org/9365066 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@122013 0039d316-1c4b-4281-b951-d872f2087c98
* Drop frontbuffers for hibernated tabs using image_transport_surface_win.mmocny@chromium.org2012-02-112-5/+10
| | | | | | | | | BUG=112842 TEST=Manual Review URL: http://codereview.chromium.org/9317056 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@121598 0039d316-1c4b-4281-b951-d872f2087c98
* Combine ANGLE_instanced_arrays pointers with othersjbauman@chromium.org2012-02-102-28/+3
| | | | | | | | | | | | Reduces duplicate effort needed to use the functions. BUG= TEST= Review URL: http://codereview.chromium.org/9375023 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@121350 0039d316-1c4b-4281-b951-d872f2087c98
* mac: Add _EXPORT macros, ui/.thakis@chromium.org2012-02-091-2/+2
| | | | | | | | | BUG=90087 TEST=none Review URL: https://chromiumcodereview.appspot.com/9368018 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@121190 0039d316-1c4b-4281-b951-d872f2087c98
* Add gl bindings for ANGLE_instanced_arrays and ARB_instanced_arraysjbauman@chromium.org2012-02-092-0/+50
| | | | | | | | | | BUG=93148 TEST= Review URL: http://codereview.chromium.org/9348046 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@121112 0039d316-1c4b-4281-b951-d872f2087c98
* Loading EGL libs with version in soname, fix proposal for crbug.com/112592dominik.rottsches@intel.com2012-02-081-2/+2
| | | | | | | | | | | | Contributed by dominik.rottsches@intel.com BUG=112592 TEST= Review URL: http://codereview.chromium.org/9362011 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@121069 0039d316-1c4b-4281-b951-d872f2087c98
* Expose more glQuery functionsgman@chromium.org2012-02-071-15/+16
| | | | | | | | | | TEST=none BUG=88601 Review URL: http://codereview.chromium.org/9321002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@120745 0039d316-1c4b-4281-b951-d872f2087c98
* Change PluginWindowHandle to AcceleratedWidget in ui/gfx/glpiman@chromium.org2012-02-0114-34/+34
| | | | | | | | | | BUG=104551 TEST=compile Review URL: http://codereview.chromium.org/9160012 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@119990 0039d316-1c4b-4281-b951-d872f2087c98
* Reland 119457: --test-gl-lib for GpuPixelBrowserTestsbacker@chromium.org2012-01-303-5/+21
| | | | | | | | | | | This CL causes the GpuPixelBrowserTests to load libllvmpipe.so (if it is available) and fallback to standard libGL.so otherwise. This is so that we can do a smoke test of the GPU accelerated display path on the Aura dbg bot on the Chromium waterfall. BUG=none TEST=none Review URL: https://chromiumcodereview.appspot.com/9298022 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@119667 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 119457 - --test-gl-lib for GpuPixelBrowserTestsbacker@chromium.org2012-01-273-21/+5
| | | | | | | | | | | | | | | This CL causes the GpuPixelBrowserTests to load libllvmpipe.so (if it is available) and fallback to standard libGL.so otherwise. This is so that we can (ultimately) do a smoke test of the GPU accelerated display path on the Aura dbg bot on the Chromium waterfall. BUG=none TEST=none Review URL: http://codereview.chromium.org/9169100 TBR=backer@chromium.org Review URL: https://chromiumcodereview.appspot.com/9225029 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@119468 0039d316-1c4b-4281-b951-d872f2087c98
* --test-gl-lib for GpuPixelBrowserTestsbacker@chromium.org2012-01-273-5/+21
| | | | | | | | | | | | This CL causes the GpuPixelBrowserTests to load libllvmpipe.so (if it is available) and fallback to standard libGL.so otherwise. This is so that we can (ultimately) do a smoke test of the GPU accelerated display path on the Aura dbg bot on the Chromium waterfall. BUG=none TEST=none Review URL: http://codereview.chromium.org/9169100 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@119457 0039d316-1c4b-4281-b951-d872f2087c98
* Stronger synchronization for resize on osmesa.backer@chromium.org2012-01-254-142/+78
| | | | | | | | | | | | We need to synchronize resize with when the renderer thinks that the resize occurs. This patch get's rid of display artifacts when resizing window on http://webkit.org/blog-files/3d-transforms/poster-circle.html when running with --use-gl=osmesa on linux. BUG=none TEST=see description Review URL: http://codereview.chromium.org/9212058 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@119082 0039d316-1c4b-4281-b951-d872f2087c98
* Coverity: Fix uninitialized member variables.kmadhusu@chromium.org2012-01-241-2/+3
| | | | | | | | | | CID=102647, 102333, 102332, 102303, 102302, 102299, 102297, 102296, 102048, 102032, 102031, 102030, 102029, 102028, 102010, 101681, 101657, 101655, 101438 BUG=none TEST=none Review URL: https://chromiumcodereview.appspot.com/9005031 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@118848 0039d316-1c4b-4281-b951-d872f2087c98
* Add a convenience typedef LazyInstance<T>::Leaky to avoid repeating T.fischman@chromium.org2012-01-232-10/+6
| | | | | | | | | | | | | Converted the first 20 or so hits for LeakyLazyInstanceTraits on codesearch to demonstrate the benefit at callsites. The real change is base/lazy_instance.h; everything else is example. BUG=none TEST=none Review URL: https://chromiumcodereview.appspot.com/9192024 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@118754 0039d316-1c4b-4281-b951-d872f2087c98
* Upstream Android's GLSurface implementation.sievers@chromium.org2012-01-138-20/+316
| | | | | | Review URL: http://codereview.chromium.org/9186019 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@117546 0039d316-1c4b-4281-b951-d872f2087c98
* Bind to eglCreateImageKHR and eglDestroyImageKHR when KHR_image_base is ↵apatrick@chromium.org2012-01-062-9/+20
| | | | | | | | | | | | advertised by EGL. At the moment we only bind to them if KHR_image (a superset) is advertised. Because we determine to which extension each entry point belongs by parsing the header files and those entry points are not listed for KHR_image_base, I had to add some code to the autogenerator script to to add extra extensions for each entry point. Review URL: http://codereview.chromium.org/9111039 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@116640 0039d316-1c4b-4281-b951-d872f2087c98
* Enable vsync on linux with compositing window managers activejamesr@chromium.org2012-01-061-24/+1
| | | | | | | | | | | | | | | | | | | | | | This effectively reverts r83921. We have a fair amount of rate limiting logic based around GLContext::SetSwapInterval(1) in the RenderWidget display path. This brings the behavior of GLContextGLX back in line with other platforms. BUG=109312 TEST=on linux, do the following: 1.) Enable compiz (on ubuntu, System->Preferences->Appearance->Visual Effects->any option other than 'None') 2.) Open a new instance of chromium to http://webstuff.nfshost.com/anim-timing/raftime.html 3.) Change the 'Compositing' select to 'on' 4.) The 'Avg delay between callbacks' should be approximately 16 and the 'Avg framerate' should be 59-60 Review URL: http://codereview.chromium.org/9116018 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@116615 0039d316-1c4b-4281-b951-d872f2087c98
* Roll skia to r2967. Add skia bindings for glTexStorage2D.bsalomon@google.com2012-01-051-0/+6
| | | | | | | | BUG=none TEST=none Review URL: http://codereview.chromium.org/9111017 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@116558 0039d316-1c4b-4281-b951-d872f2087c98
* Use USER_LIMITED token level with SwiftShader.apatrick@chromium.org2011-12-221-0/+1
| | | | | | | Because it needs to present to an HWND, even on vista and win 7. Review URL: http://codereview.chromium.org/8949028 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@115453 0039d316-1c4b-4281-b951-d872f2087c98
* Fixed crashes when running on top of Apple's software OpenGL renderer.kbr@chromium.org2011-12-214-36/+20
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This configuration is seen on the reliability bots, which always use the software GL renderer because they are headless. These fixes also make --use-gl=apple work with Chrome's on-screen rendering path. - Renamed the pbuffer GLSurface class to NoOpGLSurfaceCGL and removed its unnecessary pbuffer allocation, as well as the requirement that the context be pbuffer capable. - Removed the accelerated requirement from the context in accelerated_plugin_view_mac.mm. The system automatically prefers accelerated contexts where possible. - Supported --use-gl=apple in accelerated_surface_mac.cc and image_transport_surface_mac.cc. - Removed the depth and stencil renderbuffers from accelerated_surface_mac.cc. The only consequence of this change is that when a Core Animation plugin's layer is rendered via our CARenderer, the destination surface will not have a depth buffer. Firefox already has this behavior, and, as expected, this change does not affect the correctness of any test case. There is still a remaining problem on the reliability bots where composited content does not redraw often enough, but this seems to be an orthogonal problem and is not reproducible when running Chrome locally with --use-gl=apple. Ran previously crashing content on reliability bot to verify fix. Also tested manually on 10.6.8, both with and without --use-gl=apple, with: - http://unity3d.com/gallery/demos/live-demos (Unity 3D) - http://www.nissan-stagejuk3d.com/ (Stage 3D in Flash 11, live resizing; web site is flaky, sometimes fails to start) - http://www.vimeo.com/ BUG=106891 TEST=manual testing with above test cases Review URL: http://codereview.chromium.org/9006045 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@115372 0039d316-1c4b-4281-b951-d872f2087c98
* Don't tell browser to swap until swap actually executed.backer@chromium.org2011-12-165-1/+163
| | | | | | | | | | By deferring to fence, we're ensuring that the GL commands are executed GPU side before sending a message to the browser to act on them. This is lighter weight than a glFinish because the other commands buffers on the channel (e.g. WebGL) can continue executing while we're waiting for the fence. TEST=by hand building use_aura running http://webglsamples.googlecode.com/hg/aquarium/aquarium.html Review URL: http://codereview.chromium.org/8497015 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@114798 0039d316-1c4b-4281-b951-d872f2087c98
* Win: only use transport surface if EGL_ANGLE_d3d_share_handle_client_buffer ↵apatrick@chromium.org2011-12-151-9/+16
| | | | | | | | | is advertised. This will fix vista boxes with legacy XP drivers and make ANGLE work if D3D9Ex is disabled. Review URL: http://codereview.chromium.org/8913015 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@114551 0039d316-1c4b-4281-b951-d872f2087c98
* Log GLenums as strings in servicegman@chromium.org2011-12-142-6/+24
| | | | | | | | | | TEST=none BUG=none Review URL: http://codereview.chromium.org/8936011 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@114516 0039d316-1c4b-4281-b951-d872f2087c98
* Share X connection between GLSurfaceGLX/EGL and MessagePumpX/GTKpiman@chromium.org2011-12-093-3/+6
| | | | | | | | | | BUG=104248 TEST=chrome: about:gpu and webgl pages (both aura and gtk), compositor_unittests, views_unittests Review URL: http://codereview.chromium.org/8890042 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@113858 0039d316-1c4b-4281-b951-d872f2087c98
* Refactor generete_bindings.py so per function logging code and be added.gman@chromium.org2011-12-092-488/+1037
| | | | | | | | | | TEST=none BUG=none Review URL: http://codereview.chromium.org/8872001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@113732 0039d316-1c4b-4281-b951-d872f2087c98
* GLSurface::Resize implementations release the current context if they are ↵apatrick@chromium.org2011-12-082-1/+25
| | | | | | | | | current before resize. This is because, if the newly allocated surface happens to have the same handle / address, a subsequent MakeCurrent will think that the surface has not changed and early out. Review URL: http://codereview.chromium.org/8869007 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@113677 0039d316-1c4b-4281-b951-d872f2087c98