summaryrefslogtreecommitdiffstats
path: root/ui/gl
Commit message (Collapse)AuthorAgeFilesLines
* gpu: Add IOSurface backed GpuMemoryBuffer implementation.reveman@chromium.org2013-12-056-0/+217
| | | | | | | | | | | | This adds a GpuMemoryBuffer implementation on MacOSX that is backed by IOSurfaces. These GpuMemmoryBuffers provide zero-copy texture updates when using impl-side painting on MacOSX. BUG=321785,323338 Review URL: https://codereview.chromium.org/77023002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@238841 0039d316-1c4b-4281-b951-d872f2087c98
* ui: Explicitly prevent GL_TEXTURE_RECTANGLE_ARB from being used GLImageEGL.reveman@chromium.org2013-11-231-0/+5
| | | | | | | | | | This target is not supported according to OES_EGL_image spec. BUG= Review URL: https://codereview.chromium.org/83783006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@236980 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 236475 "Disable partial swap on Windows."jbauman@chromium.org2013-11-231-5/+0
| | | | | | | | | | | | | | | | > Disable partial swap on Windows. > > Partial swap may be causing some performance problems, so disable it. > > BUG=313104 > > Review URL: https://codereview.chromium.org/79643002 TBR=jbauman@chromium.org Review URL: https://codereview.chromium.org/82523008 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@236881 0039d316-1c4b-4281-b951-d872f2087c98
* gpu: Allow TEXTURE_RECTANGLE_ARB and other targets to be used with ↵reveman@chromium.org2013-11-2210-29/+41
| | | | | | | | | | | | CHROMIUM_texture_from_image. This makes it up to the GLImage implementation to decide if target is supported or not instead of enforcing a restriction at the decoder level. BUG=321795 Review URL: https://codereview.chromium.org/81103002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@236719 0039d316-1c4b-4281-b951-d872f2087c98
* Disable partial swap on Windows.jbauman@chromium.org2013-11-211-0/+5
| | | | | | | | | | Partial swap may be causing some performance problems, so disable it. BUG=313104 Review URL: https://codereview.chromium.org/79643002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@236475 0039d316-1c4b-4281-b951-d872f2087c98
* Add GL_BGRA8_EXT to supported GpuMemoryBuffer formats.reveman@chromium.org2013-11-211-22/+62
| | | | | | | | BUG=321789 Review URL: https://codereview.chromium.org/76913008 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@236420 0039d316-1c4b-4281-b951-d872f2087c98
* gpu: Support ES3 msaa and depth/stencil formatssievers@chromium.org2013-11-151-0/+9
| | | | | | | | | BUG=314214 R=kbr@chromium.org, piman@chromium.org, skyostil@chromium.org, zmo@chromium.org Review URL: https://codereview.chromium.org/72173002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@235435 0039d316-1c4b-4281-b951-d872f2087c98
* ui: Android changes.tfarina@chromium.org2013-11-151-2/+2
| | | | | | | | | | | | | | | | | | | | A series of changes related to android code organization under ui, that came after the discussion in https://codereview.chromium.org/62203014/. - Rename ui_jni_registrar.* to ui_base_jni_registrar.* - Create a base/ directory under ui/android/java/src/org/chromium/ui, and move some java files there. - Move Surface java files into ui/android/java/src/org/chromium/ui/gl/ directory. - Rename ui_jni_headers to ui_base_jni_headers. - Create a new ui_android.gyp file under ui/android to contain ui_java target. BUG=299841 R=tedchoc@chromium.org, yfriedman@chromium.org TBR=ben Review URL: https://codereview.chromium.org/70843003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@235369 0039d316-1c4b-4281-b951-d872f2087c98
* Moving the VSyncProvider interface to ui/gfx from ui/gldnicoara@chromium.org2013-11-147-65/+30
| | | | | | | | | | | | | Custom implementations of the VSyncProvider (such as the Ozone provider) need to inherit from VSyncProvider. However, these implementations leave outside of ui/gl and would break deps. Moving the interface to ui/gfx would allow such implementations to inherit the VSyncProvider interface. BUG= Review URL: https://codereview.chromium.org/68893002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@235172 0039d316-1c4b-4281-b951-d872f2087c98
* [Android] Add workaround to unbind gpu memory buffer only on NVIDIAboliu@chromium.org2013-11-134-1/+21
| | | | | | | | | | | | | | | | | | | | | | For gralloc backed gpu memory buffer on Android, it is undefined whether locking for read/write while the buffer is bound to a texture is allowed. On nvidia devices (eg 2012 nexus 7), lock without unbind will lead to deadlocks in the driver (crbug.com/264096). However on other nexus gpu vendors (img, arm, qualcomm), unbind is very expensive since it flushes the gpu pipeline. And vendors have advised that lock while bound is allowed and is the right solution to this slowness, as long as the texture is eventually recycled or deleted. Add a workaround for nvidia to only unbind in GLImage::DidUseTexImage. BUG= Review URL: https://codereview.chromium.org/66033009 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@234740 0039d316-1c4b-4281-b951-d872f2087c98
* Android: moves ui/ to use long for JNI.bulach@chromium.org2013-11-112-1/+3
| | | | | | | | BUG= Review URL: https://codereview.chromium.org/61733010 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@234312 0039d316-1c4b-4281-b951-d872f2087c98
* ui: Remove redundant Destroy() call when context creation fails.kaanb@chromium.org2013-11-081-1/+0
| | | | | | | | | | GLContextEGL::Destroy() is a no-op if context_ is NULL, so we shouldn't call it when context creation fails and context_ ends up being NULL in GLContextEGL::Initialize() BUG= Review URL: https://codereview.chromium.org/65963002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@233883 0039d316-1c4b-4281-b951-d872f2087c98
* Add a basic NativeViewportMac for Mojoabarth@chromium.org2013-11-066-27/+12
| | | | | | | | | | | | This CL adds a basic implementation of NativeViewport for Mac OS X. It puts a window on screen and initializes GL for that window using an in-process command buffer. R=ben@chromium.org, ccameron@chromium.org, kbr@chromium.org Review URL: https://codereview.chromium.org/56833002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@233227 0039d316-1c4b-4281-b951-d872f2087c98
* Merge gpu_switching_list into gpu_driver_bug_list.zmo@chromium.org2013-11-051-2/+0
| | | | | | | | | | BUG=314901 TEST=gpu_unittests R=bajones@chromium.org, kbr@chromium.org, piman@chromium.org, sievers@chromium.org Review URL: https://codereview.chromium.org/57633007 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@233143 0039d316-1c4b-4281-b951-d872f2087c98
* Remove apatrick@ from OWNERSpiman@chromium.org2013-11-041-1/+0
| | | | | | | | | BUG=None R=kbr@chromium.org Review URL: https://codereview.chromium.org/58663002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@232833 0039d316-1c4b-4281-b951-d872f2087c98
* Add support for Khr_surfaceless_context.kalyan.kondapally@intel.com2013-11-022-2/+99
| | | | | | | | | | | | | | | | http://www.khronos.org/registry/egl/extensions/KHR/EGL_KHR_surfaceless_context.txt This patch adds support in GLSurfaceEGL to be able to use surfaceless context when supported by the drivers. This avoids the creation of a dummy offscreen surface. This would also enable support for offscreen rendering on platforms (i.e Ozone-Wayland) which donot support pbuffer surfaces. BUG= Review URL: https://codereview.chromium.org/49533003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@232615 0039d316-1c4b-4281-b951-d872f2087c98
* Remove unnecessary dependencies on "ui" target from some other targets.tfarina@chromium.org2013-11-011-1/+15
| | | | | | | | | | BUG=302505 TEST=None, targets built. R=dalecurtis@chromium.org,thestig@chromium.org,ben@chromium.org Review URL: https://codereview.chromium.org/48213004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@232399 0039d316-1c4b-4281-b951-d872f2087c98
* Implement OzonePlatformspang@chromium.org2013-10-313-0/+8
| | | | | | | | | | | | | | | | | | | | | | | | | This provides a way to select an ozone implementation to use at build time. It replaces the previous ad-hoc requirement to inject implementations of ozone interfaces somewhere during initialization, such as by overriding ContentMainDelegate::PreSandboxStartup(). That requirement made it difficult for external ozone implementations to build internal targets such as content_shell because those targets do not initialize the external ozone implementation without additional patching. Enabling external ports of chromium is one of the main goals of ozone. The OzonePlatform code is located at ui/ozone and depends on code in ui/gfx and ui/events because it must inject implementations into those components. The ozone platform is initialized from ui/aura or ui/gl, as those components need the interfaces provided by ozone in order to function. There are two in-tree platforms currently: test (image dump) and dri (libdrm-based direct rendering). The platform is selected by the setting ozone_platform gyp variable and defaults to "test". Review URL: https://codereview.chromium.org/44933002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@232170 0039d316-1c4b-4281-b951-d872f2087c98
* Add callbacks to register EGL bindings from Ozonednicoara@chromium.org2013-10-301-1/+4
| | | | | | | | | | | | | | | | Ozone needs to provide a custom way to load EGL and GLES2 bindings. Since Ozone lives in ui/gfx/ozone it cannot have dependencies to ui/gl to register the libraries. This patch adds to callbacks to Ozone's LoadEGLGLES2Bindings function such that when performing GL bindings initialization ui/gl will provide the callbacks to register the bindings. BUG= Review URL: https://codereview.chromium.org/47213009 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@231893 0039d316-1c4b-4281-b951-d872f2087c98
* cc: Use HighResNow as timebase if it is fast and reliablebrianderson@chromium.org2013-10-251-2/+11
| | | | | | | | | | | | | | | | | | | If base::TimeTicks::HighResNow is fast and reliable, we use it for frame times, animations, and scheduling. Otherwise, we use base::TimeTicks::Now and use a timebase of zero to avoid an incorrect or jittery timebase. This adds a gfx::FrameTime::Now() function, so the same timebase is used across the ui and cc directories. Additionally, the OutputSurface now uses a HighRes version of the DelayBasedTimesource if gfx::FrameTime::Now() is HighRes. BUG=303356 Review URL: https://codereview.chromium.org/27710005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@231089 0039d316-1c4b-4281-b951-d872f2087c98
* Re-land: gpu: Add Will/DidUseTexImage to GLImage API.reveman@chromium.org2013-10-2210-27/+90
| | | | | | | | | | | | | | | | | WillUseTexImage/DidUseTexImage is called before/after the image is used for sampling. The result is that the client only has to call bind/releaseTexImage2D when contents have changed, which allows for more efficient GLImage implementations as work required before use can be separated from work required when contents have changed. BUG=261649 TEST=gpu_unittests --gtest_filter=SharedTextureTest.Images && gpu_unittests --gtest_filter=GLES2DecoderWithShaderTest.UseTexImage && cc_unittests --gtest_filter=ResourceProviderTests/ResourceProviderTest.Image_GLTexture* && gl_tests --gtest_filter=MockGpuMemoryBufferTest.Lifecycle Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=229532 Review URL: https://codereview.chromium.org/23129010 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@230093 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 229532 "gpu: Add Will/DidUseTexImage to GLImage API."reveman@chromium.org2013-10-2110-90/+27
| | | | | | | | | | | | | | | | | | | | | | | This is causing webgl_conformance_tests to fail. > gpu: Add Will/DidUseTexImage to GLImage API. > > WillUseTexImage/DidUseTexImage is called before/after the image is > used for sampling. The result is that the client only has to call > bind/releaseTexImage2D when contents have changed, which allows > for more efficient GLImage implementations as work required before > use can be separated from work required when contents have changed. > > BUG=261649 > TEST=gpu_unittests --gtest_filter=SharedTextureTest.Images && gpu_unittests --gtest_filter=GLES2DecoderWithShaderTest.UseTexImage && cc_unittests --gtest_filter=ResourceProviderTests/ResourceProviderTest.Image_GLTexture* && gl_tests --gtest_filter=MockGpuMemoryBufferTest.Lifecycle > > Review URL: https://codereview.chromium.org/23129010 TBR=reveman@chromium.org Review URL: https://codereview.chromium.org/32603002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@229799 0039d316-1c4b-4281-b951-d872f2087c98
* gpu: Add Will/DidUseTexImage to GLImage API.reveman@chromium.org2013-10-1910-27/+90
| | | | | | | | | | | | | | | WillUseTexImage/DidUseTexImage is called before/after the image is used for sampling. The result is that the client only has to call bind/releaseTexImage2D when contents have changed, which allows for more efficient GLImage implementations as work required before use can be separated from work required when contents have changed. BUG=261649 TEST=gpu_unittests --gtest_filter=SharedTextureTest.Images && gpu_unittests --gtest_filter=GLES2DecoderWithShaderTest.UseTexImage && cc_unittests --gtest_filter=ResourceProviderTests/ResourceProviderTest.Image_GLTexture* && gl_tests --gtest_filter=MockGpuMemoryBufferTest.Lifecycle Review URL: https://codereview.chromium.org/23129010 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@229532 0039d316-1c4b-4281-b951-d872f2087c98
* Add renderbuffer BGRA8 format extension and support in cmd buffer for ↵bsalomon@google.com2013-10-181-3/+28
| | | | | | | | | | desktop GL. This enables development of a canvas2d msaa flag on desktop systems that use BGRA for canvas2d. BUG=308277 Review URL: https://codereview.chromium.org/27542003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@229359 0039d316-1c4b-4281-b951-d872f2087c98
* Support GL_TEXTURE_EXTERNAL_OES in ScopedTextureBinder.sheu@chromium.org2013-10-081-0/+3
| | | | | | | | | | | | | This CL adds support to ScopedTextureBinder to bind/restore GL_TEXTURE_EXTERNAL_OES targets, which also necessitates adding getter support for GL_TEXTURE_BINDING_EXTERNAL_OES to GLES2Implementation. BUG=None TEST=local build, run of vda_unittest on CrOS snow Review URL: https://codereview.chromium.org/26061002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@227420 0039d316-1c4b-4281-b951-d872f2087c98
* Add support for over-riding config attribute values.kalyan.kondapally@intel.com2013-10-041-2/+9
| | | | | | | | | | | | | GLSurfaceEGL chooses a EGL frame buffer configuration that match attributes specified in attrib list. This CL adds support for Ozone implementations to provide values for these attributes as supported by the underlying window system. BUG= Review URL: https://codereview.chromium.org/23850008 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@226925 0039d316-1c4b-4281-b951-d872f2087c98
* Use DwmGetCompositionTimingInfo to get vsync info on Vista+jbauman@chromium.org2013-10-013-3/+43
| | | | | | | | | | DwmGetCompositionTimingInfo works to find out vsync info on Vista+. Luckily using a NULL HWND (required on Win 8.1+) avoids the issue where the window starts flickering. BUG=291390 Review URL: https://codereview.chromium.org/25102004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@226152 0039d316-1c4b-4281-b951-d872f2087c98
* The original bug happens because when libGL.so.1 is loaded, it registerschihchung@chromium.org2013-09-301-4/+3
| | | | | | | | | | | | | | | | | some function pointers to the X library, but there is no way to unregister them when it is unloaded. So if we keep using X after libGL.so.1 is unloaded, the stale function pointers will be called and bad things happen. The unloading happens after the first test is finished, so the second test always crashes. The fix is just don't unload these libraries. BUG=chromium:250813 TEST=run video_decode_accelerator_unittest on parrot and spring Review URL: https://codereview.chromium.org/23456029 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@225931 0039d316-1c4b-4281-b951-d872f2087c98
* gfx: Create a separate gfx component out of ui.sadrul@chromium.org2013-09-301-0/+1
| | | | | | | | | | | Landed previously in r225857, which was reverted in r225859 because it broke android tests. BUG=103304 R=ben@chromium.org Review URL: https://codereview.chromium.org/25015003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@225909 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 225857 "gfx: Create a separate gfx component out of ui."ckocagil@chromium.org2013-09-281-1/+0
| | | | | | | | | | | | | | | > gfx: Create a separate gfx component out of ui. > > BUG=103304 > R=ben@chromium.org > > Review URL: https://codereview.chromium.org/25015003 TBR=sadrul@chromium.org Review URL: https://codereview.chromium.org/25161002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@225859 0039d316-1c4b-4281-b951-d872f2087c98
* gfx: Create a separate gfx component out of ui.sadrul@chromium.org2013-09-281-0/+1
| | | | | | | | | BUG=103304 R=ben@chromium.org Review URL: https://codereview.chromium.org/25015003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@225857 0039d316-1c4b-4281-b951-d872f2087c98
* Clean up a few more unused globals.thakis@chromium.org2013-09-251-4/+2
| | | | | | | | | | | Found by clang's new -Wunused-const-variable. BUG=290204 R=akalin@chromium.org, avi@chromium.org, isherman@chromium.org, jamesr@chromium.org, joi@chromium.org, sergeyu@chromium.org, sky@chromium.org, thestig@chromium.org, xhwang@chromium.org Review URL: https://codereview.chromium.org/24649002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@225273 0039d316-1c4b-4281-b951-d872f2087c98
* Tighten DEPS rules further.ben@chromium.org2013-09-242-0/+4
| | | | | | | | | BUG=none R=sky@chromium.org Review URL: https://codereview.chromium.org/24429002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@225089 0039d316-1c4b-4281-b951-d872f2087c98
* Tighten up DEPS rules in src/ui: prevent components from including from each ↵ben@chromium.org2013-09-241-0/+1
| | | | | | | | | | | | | | | other, and drop a bunch of DEPS files in to make checkdeps happy. See https://codereview.chromium.org/24162009/ for try runs. BUG=none R=sky@chromium.org Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=225020 Review URL: https://codereview.chromium.org/24273005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@225055 0039d316-1c4b-4281-b951-d872f2087c98
* Move some files from x11_util to gfx/x/x11_types.h so they can be used by ui/gl.ben@chromium.org2013-09-246-29/+29
| | | | | | | | | BUG=none R=sadrul@chromium.org Review URL: https://codereview.chromium.org/24395008 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@225053 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 225020 "Tighten up DEPS rules in src/ui: prevent componen..."ben@chromium.org2013-09-241-3/+0
| | | | | | | | | | | | | | | > Tighten up DEPS rules in src/ui: prevent components from including from each other, and drop a bunch of DEPS files in to make checkdeps happy. > > BUG=none > R=sky@chromium.org > > Review URL: https://codereview.chromium.org/24273005 TBR=ben@chromium.org Review URL: https://codereview.chromium.org/24257013 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@225032 0039d316-1c4b-4281-b951-d872f2087c98
* Tighten up DEPS rules in src/ui: prevent components from including from each ↵ben@chromium.org2013-09-241-0/+3
| | | | | | | | | | | other, and drop a bunch of DEPS files in to make checkdeps happy. BUG=none R=sky@chromium.org Review URL: https://codereview.chromium.org/24273005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@225020 0039d316-1c4b-4281-b951-d872f2087c98
* Re-enable child X window workaround.ccameron@chromium.org2013-09-241-4/+0
| | | | | | | | | | | | | | | Compositing has been made sticky for a RenderWidget in the work for http://crbug.com/295072 Now that compositing is sticky, the issue that caused this to be turned off, http://crbug.com/292655, should be fixed. TBR=piman, kbr BUG=145600 Review URL: https://chromiumcodereview.appspot.com/24224008 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@224927 0039d316-1c4b-4281-b951-d872f2087c98
* Move SurfaceFactoryOzone to ui/gfx/ozoneben@chromium.org2013-09-232-8/+8
| | | | | | | | | BUG=none R=rjkroege@chromium.org, rjkroege@google.com Review URL: https://codereview.chromium.org/24049004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@224782 0039d316-1c4b-4281-b951-d872f2087c98
* ui: [Android] Hard code the GPU limit to 8MB for low-end deviceskaanb@chromium.org2013-09-201-1/+4
| | | | | | | | | | | | Landing with notry, the failure on win_rel cannot be related to this patch as this patch only affects Android. NOTRY=true BUG= Review URL: https://chromiumcodereview.appspot.com/23931007 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@224523 0039d316-1c4b-4281-b951-d872f2087c98
* ui: [Android] use physical memory / 64 for GPU memory limit for low end deviceskaanb@chromium.org2013-09-191-2/+2
| | | | | | | | BUG= Review URL: https://chromiumcodereview.appspot.com/23687009 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@224049 0039d316-1c4b-4281-b951-d872f2087c98
* Add an enable D3D11 flag and blacklist specific intel drivers and windows ↵geofflang@chromium.org2013-09-173-1/+7
| | | | | | | | | | vista from using D3D11. BUG=256863 Review URL: https://chromiumcodereview.appspot.com/24120004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@223716 0039d316-1c4b-4281-b951-d872f2087c98
* Disable GPU memory usage workaround unconditionally.ccameron@chromium.org2013-09-171-0/+4
| | | | | | | | | | | | | This was previously disabled when running unit tests, but it looks like there are additional problems with WebViews, and potentially with switching in and out of compositing mode. TBR=zmo BUG=292655 Review URL: https://codereview.chromium.org/23757059 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@223480 0039d316-1c4b-4281-b951-d872f2087c98
* Disable child X window workaround when running in test harnesses that doccameron@chromium.org2013-09-141-12/+28
| | | | | | | | | | | not have a message loop. TBR=zmo BUG=145600 Review URL: https://chromiumcodereview.appspot.com/24127004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@223231 0039d316-1c4b-4281-b951-d872f2087c98
* Destroy GLX windows when they are backgroundedccameron@chromium.org2013-09-132-14/+214
| | | | | | | | | | | | | | | | | | | | | | Because GLX windows cannot be destroyed separately from their X windows on all platforms, create a separate child X window to use with GLX. Destroy this child X window when the backbuffer for the window is no longer needed. Because the GL surface may need to be made current while its backbuffer is destroyed (e.g, to destroy GL resources for a backgrounded tab), create a dummy 1x1 GL surface which is never destroyed and can always be made current. Because the child X window created will cover its parent, create an event listener to forward expose events from the child window to the parent, so that the parent can know to repaint. BUG=145600 Review URL: https://chromiumcodereview.appspot.com/23452026 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@223148 0039d316-1c4b-4281-b951-d872f2087c98
* Add eglWaitSyncKHR() EGL bindingsievers@chromium.org2013-09-122-1/+6
| | | | | | | | NOTRY=True Review URL: https://chromiumcodereview.appspot.com/23619031 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@222869 0039d316-1c4b-4281-b951-d872f2087c98
* [Android WebView] Fix async uploadboliu@chromium.org2013-09-101-5/+16
| | | | | | | | | | | | | | | AsyncPixelTransferManager checks for some EGL specific extensions that are available on the device, but was not correctly retrieved by the GLNonOwnedContext. Note that GLNonOwnedContext is only used on android webview, not chrome on android. BUG=287962 Review URL: https://chromiumcodereview.appspot.com/23460026 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@222208 0039d316-1c4b-4281-b951-d872f2087c98
* gpu: Map glDiscardFramebufferEXT to glInvalidateFramebufferskyostil@chromium.org2013-09-051-1/+1
| | | | | | | | | | | | Map glDiscardFramebufferEXT to glInvalidateFramebuffer on OpenGL ES 3.0. Both entry points have the same functionality; just the name was changed between EXT_framebuffer_discard and ES 3.0. BUG=274334 Review URL: https://chromiumcodereview.appspot.com/23855003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@221440 0039d316-1c4b-4281-b951-d872f2087c98
* Adding functionality to paint and signal buffer swap for ozone surface factory.dnicoara@chromium.org2013-08-301-4/+10
| | | | | | | | | | OZONE event factory should be a bit more verbose on error. BUG= Review URL: https://chromiumcodereview.appspot.com/23438002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@220632 0039d316-1c4b-4281-b951-d872f2087c98
* [Android] Rename SurfaceTextureBridge to just SurfaceTexture.yfriedman@chromium.org2013-08-298-44/+46
| | | | | | | | | | | | This came up in https://codereview.chromium.org/22912020/ but was punted to keep merging smaller. Now that it's in, here's the change. The java class has a slightly different name as internally to the native SurfaceTexture object we have a wrapper, but that detail is unknown to clients. Review URL: https://chromiumcodereview.appspot.com/23574003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@220183 0039d316-1c4b-4281-b951-d872f2087c98