summaryrefslogtreecommitdiffstats
path: root/ui/gl
Commit message (Collapse)AuthorAgeFilesLines
* Add generate_jar_jni templatecjhopman@chromium.org2014-06-051-0/+7
| | | | | | | | | | | | | | | This implements jar_file_jni_generator.gypi for GN. Also, add the //ui/gl:surface_jni_headers and enable some targets that depend on it. BUG=359249 R=brettw@chromium.org,tfarina@chromium.org TBR=ben@chromium.org Review URL: https://codereview.chromium.org/294323002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@275222 0039d316-1c4b-4281-b951-d872f2087c98
* Remove IOSurfaceSupportccameron@chromium.org2014-06-046-485/+18
| | | | | | | | | | Link against IOSurface.framework instead -- this is an option starting in 10.6. BUG=314190 Review URL: https://codereview.chromium.org/301973010 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@274746 0039d316-1c4b-4281-b951-d872f2087c98
* gn fixes for ui/gl and macjamesr@chromium.org2014-06-011-4/+2
| | | | | | | | | | | | With this the ui/gl target compiles on mac and fails to link with some skia thingy. R=brettw@chromium.org TBR=ben@chromium.org Review URL: https://codereview.chromium.org/303273009 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@274110 0039d316-1c4b-4281-b951-d872f2087c98
* linux_aura: Add a "--display=" switch like GTK+ has.erg@chromium.org2014-05-301-1/+1
| | | | | | | | | | Looking through crash output, we should do the right thing when chrome is run like this: "DISPLAY= chrome --display=:0.0" BUG=376971 Review URL: https://codereview.chromium.org/297983005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@273725 0039d316-1c4b-4281-b951-d872f2087c98
* Reland: Updating calls to offscreen buffers to use a size of (0,0) when they ↵dnicoara@chromium.org2014-05-303-6/+12
| | | | | | | | | | | | do not require an actual buffer These updates would enable the surfaceless context extension where available. BUG=377497 Review URL: https://codereview.chromium.org/303223002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@273691 0039d316-1c4b-4281-b951-d872f2087c98
* Add GN build for Linux sandbox.brettw@chromium.org2014-05-291-1/+1
| | | | | | | | | | | Also removes duplicate gfx x11 target. BUG= R=erg@chromium.org Review URL: https://codereview.chromium.org/304833002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@273589 0039d316-1c4b-4281-b951-d872f2087c98
* Add CC to the GN build, work on GPU morebrettw@chromium.org2014-05-291-0/+22
| | | | | | | | | | BUG= R=jamesr@chromium.org TBR=piman Review URL: https://codereview.chromium.org/300973003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@273588 0039d316-1c4b-4281-b951-d872f2087c98
* Revert of Updating calls to offscreen buffers to use a size of (0,0) when ↵nkostylev@chromium.org2014-05-292-8/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | they do not require an actual buffer (https://codereview.chromium.org/293293002/) Reason for revert: This CL broke VMTest on ChromiumOS bot: http://build.chromium.org/p/chromium.chromiumos/builders/ChromiumOS%20%28x86%29/builds/21999 http://build.chromium.org/p/chromium.chromiumos/builders/ChromiumOS%20%28x86%29/builds/21999/steps/VMTest%20%28attempt%201%29/logs/stdio See http://crbug.com/378430 Original issue's description: > Updating calls to offscreen buffers to use a size of (0,0) when they do not require an actual buffer > > These updates would enable the surfaceless context extension where available. > > BUG=377497 > > Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=273225 TBR=kbr@chromium.org,dnicoara@chromium.org NOTREECHECKS=true NOTRY=true BUG=377497,378430 Review URL: https://codereview.chromium.org/309463003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@273467 0039d316-1c4b-4281-b951-d872f2087c98
* Updating calls to offscreen buffers to use a size of (0,0) when they do not ↵dnicoara@chromium.org2014-05-282-6/+8
| | | | | | | | | | | | require an actual buffer These updates would enable the surfaceless context extension where available. BUG=377497 Review URL: https://codereview.chromium.org/293293002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@273225 0039d316-1c4b-4281-b951-d872f2087c98
* The function glBufferData 's second argument type is GLsizeiptr, not GLsizei.penghu@tencent.com2014-05-281-2/+4
| | | | | | | | | | | glBufferSubData 's second argument type is GLintptr, not GLint. And the third argument type is GLsizeiptr, not GLsizei. A mistake in glBufferData and glBufferSubData 's arguments. BUG= Review URL: https://codereview.chromium.org/291493005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@273106 0039d316-1c4b-4281-b951-d872f2087c98
* ozone: Add OnSwapBuffers hook to SurfaceOzoneEGLspang@chromium.org2014-05-271-0/+6
| | | | | | | | | | | | | | This is needed for weird platforms that don't present the buffer without extra help. In particular gbm (from EGL_MESA_platform_gbm) has this requirement. TBR=kbr TEST=ozone build BUG=377497 Review URL: https://codereview.chromium.org/300023006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@272901 0039d316-1c4b-4281-b951-d872f2087c98
* glx: forward Expose event from child window to parentpiman@chromium.org2014-05-244-8/+36
| | | | | | | | | | | | r272290 added a child window to GLSurfaceGLX, but it needs to forward Expose events to the parent. BUG=326995 R=ccameron@chromium.org, sadrul@chromium.org Review URL: https://codereview.chromium.org/299143002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@272648 0039d316-1c4b-4281-b951-d872f2087c98
* Work on the Android GN build.brettw@chromium.org2014-05-231-0/+17
| | | | | | | | | | | Fills out more targets in the Android build. BUG= R=cjhopman@chromium.org Review URL: https://codereview.chromium.org/297793004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@272574 0039d316-1c4b-4281-b951-d872f2087c98
* gpu/linux: create a child window to control resize and avoid flashespiman@chromium.org2014-05-222-5/+34
| | | | | | | | | | | | | | | | | | When the window is resized, some drivers clobber the back buffer. Unfortunately that can happen in the middle of a frame, and so we lose part of what we've drawn and don't know it until we swapped (resulting in flashes). So instead, we create a child window, with a CopyFromParent visual (to avoid inducing extra blits in the driver), that we can resize exactly in Resize(), correctly ordered with GL, so that the buffer clobber is at the beginning of the frame, before we will draw anything to it. BUG=326995 Review URL: https://codereview.chromium.org/296003010 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@272290 0039d316-1c4b-4281-b951-d872f2087c98
* Add GPU command buffer sevice and protobuf to GN buildbrettw@chromium.org2014-05-211-0/+6
| | | | | | | | | | | | | | | Adds a protobuf target and a template for defining protos. This handles doing host builds of protoc when cross-compiling. The command buffer sevice wants more optimization on Android, so this patch generalizes the solution. Normally Android, like Windows, optimizes for size. This now adds support on Android for speed optimization just like Windows does. Mac & Linux always optimize for speed. Removes the declare_args call around the gcc_version. This was parameterized to be different if is_android was set, which isn't valid because build parameters can't vary across toolchains. Since this value is derived from the environment, I just removed the declare_args call. BUG= R=piman@chromium.org Review URL: https://codereview.chromium.org/289953004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@271941 0039d316-1c4b-4281-b951-d872f2087c98
* GN build improvements, misc plusbrettw@chromium.org2014-05-201-4/+4
| | | | | | | | | | | | | | | | | | | | | Parameterize webrtc enabling. Add use_seccomp_pbf flag Add a webkit version target Work on ui/base GN build, especially on Windows. This target is a mess (in GYP). This patch tries to make it make a bit more sense while fixing the errors I found. Fix ui/gl target for non-Linux platform. A bunch of X11 stuff was not parameterized. Add unscaled resources target BUG= R=scottmg@chromium.org Review URL: https://codereview.chromium.org/287343006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@271724 0039d316-1c4b-4281-b951-d872f2087c98
* GN build: GPU work, Windows compile, "check" errorsbrettw@chromium.org2014-05-161-1/+1
| | | | | | | | | | | | | | | | | | | | | Fix the "gn check" header errors. Remove the extra "gles2_utils" target which "gn check" flags as an error. This target is actually inseparable from "command_buffer_common" but exists this way to prevent cycles in GYP files (but not GYP targets). GN doesn't have this problem, so I merged them. Moved the GPU targets out into build files closer to their files (gpu/command_buffer/client and .../common). This leaves a BUILD.gn file in gpu/ with a comment listing the forwarding locations, since that's where people will look for a BUILD.gn file first. Delete the duplicate gfx_unittests target, leave a comment for where it is in case somebody does a search for that name. Make webp compile on Windows Make ui/gfx compile on Windows. There were some duplicate symbols for ozone. I changed some of the filtering around to do += instead of exclusion. I think in these cases it's easier to follow and maintain. BUG= R=piman@chromium.org, urvang@google.com Review URL: https://codereview.chromium.org/288033016 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@271080 0039d316-1c4b-4281-b951-d872f2087c98
* Android: cleans up jni_generator_ptr_type.bulach@chromium.org2014-05-161-2/+0
| | | | | | | | | | | | | | The underlying rule is now "long" by default. Mechanical change: git grep -l jni_generator_ptr_type | xargs sed -i /jni_generator_ptr_type/d Relands crrev.com/270750 (reverted by 270849) BUG=317523 TBR=darin@chromium.org Review URL: https://codereview.chromium.org/288223005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@271047 0039d316-1c4b-4281-b951-d872f2087c98
* ozone: Initialize a subsystem only if necessary.sadrul@chromium.org2014-05-161-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Some of the ozone subsystems don't need to be initialized in the GPU process (e.g. events). So let the ozone-platform know what process the platform is being initialized for, and initialize only the subsystems that make sense for that process. The changes include: * Remove SetInstance() from EventFactoryOzone, SurfaceFactoryOzone and CursorFactoryOzone. Instead, set the instance from the constructor. * Require the platforms to provide one explicit constructor for the UI and GPU processes through the OzonePlatform interface. * Do not initialize any of the sub-systems in InitializeGPU() in all platforms. * Move the initialization of ozone-platform into aura::Env::Init. * Move the creation of udev-monitor in DeviceManagerUdev from the constructor to ScanDevices(), since it needs the message-loop, and the message-loop is constructed later. * Update EventFactoryEvdev to set the ui_task_runner_ from OnDispatcherListChanged(), since this too is created before the message-loop. BUG=361137 R=piman@chromium.org TBR=spang@chromium.org Review URL: https://codereview.chromium.org/291473002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@270903 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 270750 "Android: cleans up jni_generator_ptr_type."jiayl@chromium.org2014-05-151-0/+2
| | | | | | | | | | | | | | | | | | | | | Suspected to cause Android Tests bot failure: http://build.chromium.org/p/chromium.linux/builders/Android%20Tests/builds/13592 > Android: cleans up jni_generator_ptr_type. > > The underlying rule is now "long" by default. > Mechanical change: > git grep -l jni_generator_ptr_type | xargs sed -i /jni_generator_ptr_type/d > > BUG=317523 > TBR=darin@chromium.org > > Review URL: https://codereview.chromium.org/288963002 TBR=bulach@chromium.org Review URL: https://codereview.chromium.org/292433004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@270849 0039d316-1c4b-4281-b951-d872f2087c98
* Add GN build for parts of gpu and ozone.brettw@chromium.org2014-05-151-0/+289
| | | | | | | | | | Moves existing ozone platform flag to new .gni file with all ozone flags in it. R=piman@chromium.org, rjkroege@chromium.org, spang@chromium.org Review URL: https://codereview.chromium.org/285103002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@270780 0039d316-1c4b-4281-b951-d872f2087c98
* Android: cleans up jni_generator_ptr_type.bulach@chromium.org2014-05-151-2/+0
| | | | | | | | | | | | | The underlying rule is now "long" by default. Mechanical change: git grep -l jni_generator_ptr_type | xargs sed -i /jni_generator_ptr_type/d BUG=317523 TBR=darin@chromium.org Review URL: https://codereview.chromium.org/288963002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@270750 0039d316-1c4b-4281-b951-d872f2087c98
* Revert r246822 (https://codereview.chromium.org/136583006)qinmin@chromium.org2014-05-141-101/+15
| | | | | | | | | | | | | | | Disable 565 surface format for low end devices as new fullscreen video implementation needs alpha The new fullscreen video implementation puts the video surface underneath the compositorview. So we need the compositorview to have alpha channel. This increases the graphics memory usage on low end devices by 2-3 MB BUG=333384 Review URL: https://codereview.chromium.org/289543002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@270343 0039d316-1c4b-4281-b951-d872f2087c98
* Prefer GL_ARB_sync/ES3 fencessievers@google.com2014-05-121-4/+4
| | | | | | | | | | | | | They are a better option since server-side wait is supported by default. It also avoids the broken EGL_KHR_fence_sync implementation on Qualcomm drivers. BUG=371530,278606,341867 R=piman@chromium.org, reveman@chromium.org Review URL: https://codereview.chromium.org/285523002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@269863 0039d316-1c4b-4281-b951-d872f2087c98
* [Ozone] Fix GL CrOS Ozone build dependencydnicoara@chromium.org2014-05-121-0/+1
| | | | | | | | NOTRY=true Review URL: https://codereview.chromium.org/284603002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@269862 0039d316-1c4b-4281-b951-d872f2087c98
* x11: Split the gfx_x11 target into its own gyp file.sadrul@chromium.org2014-05-121-1/+1
| | | | | | | | | | | | | | Add a gfx_x11.gyp in //ui/gfx/x/ and define the gfx_x11 target in there, instead of defining it conditionally in //ui/gfx/gfx.gyp. This allows including this code from particular components even when X11 is turned off. BUG=361137 R=piman@chromium.org, sky@chromium.org Review URL: https://codereview.chromium.org/275273002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@269804 0039d316-1c4b-4281-b951-d872f2087c98
* Return has value, in function returning void.dongseong.hwang@intel.com2014-05-091-5/+5
| | | | | | | | BUG=N/A Review URL: https://codereview.chromium.org/264373004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@269363 0039d316-1c4b-4281-b951-d872f2087c98
* Rearrange GLImage API to create them with a usage typealexst@chromium.org2014-05-061-0/+5
| | | | | | | | | | instead of using usage type while mapping the buffer. BUG= Review URL: https://codereview.chromium.org/255713008 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@268548 0039d316-1c4b-4281-b951-d872f2087c98
* Allow use of EGL in browser tests with --use-gl=egl.danakj@chromium.org2014-05-023-4/+15
| | | | | | | | | | | | | | | | | | | Browser tests on some ARM devices need to use EGL, but our browser tests do not currently allow the use of --use-gl and they default to GLX. Allow the use of --use-gl, but have browser tests override it with the --override-use-gl-with-osmesa-for-tests flag by default, this ensures that --use-gl on its own does not change the behaviour of the tests. The --use-gpu-in-tests flag allows the --use-gl flag to take effect, as the browser tests will try to use hardware gpu then. R=piman BUG=364729 Review URL: https://codereview.chromium.org/261013004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@267882 0039d316-1c4b-4281-b951-d872f2087c98
* gl: When failing to load a libGL library, print the reason why.danakj@chromium.org2014-05-014-31/+23
| | | | | | | | | R=piman, sievers BUG=364729 Review URL: https://codereview.chromium.org/266713004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@267641 0039d316-1c4b-4281-b951-d872f2087c98
* Adding support for PVRTC, ATC, and ETC1 textures to the command bufferbajones@chromium.org2014-04-291-0/+11
| | | | | | | | BUG=364564 Review URL: https://codereview.chromium.org/242163002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@266723 0039d316-1c4b-4281-b951-d872f2087c98
* gpu: Use ARB_sync extension for GLFence implementation when GL version is ↵reveman@chromium.org2014-04-191-1/+3
| | | | | | | | | | | | | OpenGL ES 3. This increases the number of configurations for which fences are supported. BUG=269808,356871 Review URL: https://codereview.chromium.org/242113011 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@264900 0039d316-1c4b-4281-b951-d872f2087c98
* Re-land: gpu: Add CHROMIUM_sync_query extension.reveman@chromium.org2014-04-171-0/+3
| | | | | | | | | | | | | This adds a GL_COMMANDS_COMPLETED_CHROMIUM query target that provide a finer granularity of synchronizing GL command completion than offered by glFinish(). BUG=269808,356871,273274 TEST=gpu_unittests --gtest_filter=GLES2DecoderManualInitTest.BeginEndQueryEXTCommandsCompletedCHROMIUM Review URL: https://codereview.chromium.org/238933003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@264675 0039d316-1c4b-4281-b951-d872f2087c98
* Revert of gpu: Add CHROMIUM_sync_query extension. ↵hayato@chromium.org2014-04-171-3/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | (https://codereview.chromium.org/238933003/) Reason for revert: [gardening] Seems that QueryTest.SyncQueryBasic started to fail on Android Tests (dbug). http://build.chromium.org/p/chromium.webkit/builders/Android%20Tests%20%28dbg%29 http://build.chromium.org/p/chromium.webkit/builders/Android%20Tests%20%28dbg%29/builds/18673/steps/gl_tests/logs/stdio [==========] Running 1 test from 1 test case. [----------] Global test environment set-up. [----------] 1 test from QueryTest [ RUN ] QueryTest.SyncQueryBasic ../../gpu/command_buffer/tests/gl_query_unittest.cc:154: Failure Value of: GLTestHelper::HasExtension("GL_CHROMIUM_sync_query") Actual: false Expected: true [0417/014324:ERROR:gles2_cmd_decoder.cc(9542)] [GroupMarkerNotSet(crbug.com/242999)!:04B0A600]GL ERROR :GL_INVALID_OPERATION : glBeginQueryEXT: not enabled for commands completed queries [0417/014324:ERROR:gles2_cmd_decoder.cc(9617)] [GroupMarkerNotSet(crbug.com/242999)!:04B0A600]GL ERROR :GL_INVALID_OPERATION : glEndQueryEXT: No active query ../../gpu/command_buffer/tests/gl_query_unittest.cc:166: Failure Value of: available Actual: false Expected: true ../../gpu/command_buffer/tests/gl_manager.cc:241: Failure Value of: glGetError() == GL_NONE Actual: false Expected: true [ FAILED ] QueryTest.SyncQueryBasic (70 ms) [----------] 1 test from QueryTest (71 ms total) [----------] Global test environment tear-down [==========] 1 test from 1 test case ran. (71 ms total) [ PASSED ] 0 tests. [ FAILED ] 1 test, listed below: [ FAILED ] QueryTest.SyncQueryBasic In range 264168:264191, this patch might be the culprit. Let me revert this patch and watch whether Android Tests will cycle to green or not. Original issue's description: > gpu: Add CHROMIUM_sync_query extension. > > This adds a GL_COMMANDS_COMPLETED_CHROMIUM query target that provide > a finer granularity of synchronizing GL command completion than offered > by glFinish(). > > BUG=269808,356871,273274 > TEST=gpu_unittests --gtest_filter=GLES2DecoderManualInitTest.BeginEndQueryEXTCommandsCompletedCHROMIUM > > Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=264173 TBR=piman@chromium.org,epenner@chromium.org,sievers@chromium.org,reveman@chromium.org NOTREECHECKS=true NOTRY=true BUG=269808,356871,273274 Review URL: https://codereview.chromium.org/240273006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@264407 0039d316-1c4b-4281-b951-d872f2087c98
* gpu: Add CHROMIUM_sync_query extension.reveman@chromium.org2014-04-161-0/+3
| | | | | | | | | | | | | This adds a GL_COMMANDS_COMPLETED_CHROMIUM query target that provide a finer granularity of synchronizing GL command completion than offered by glFinish(). BUG=269808,356871,273274 TEST=gpu_unittests --gtest_filter=GLES2DecoderManualInitTest.BeginEndQueryEXTCommandsCompletedCHROMIUM Review URL: https://codereview.chromium.org/238933003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@264173 0039d316-1c4b-4281-b951-d872f2087c98
* x11: Remove X11 message-pump.sadrul@chromium.org2014-04-153-7/+9
| | | | | | | | | | | | | | | | The remaining use of the X11 mesage-pump was opening the connection to the X11 server. This patch moves that out of the message-pump, into gfx. This allows us to remove the X11 message-pump, and just use the base Glib-based message-pump on Linux and ChromeOS. BUG=354062 R=darin@chromium.org, sky@chromium.org Previously landed in r263726, but reverted in r263733 to allow reverting another CL. Review URL: https://codereview.chromium.org/235043005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@263777 0039d316-1c4b-4281-b951-d872f2087c98
* x11: Create a gfx_x11 component.sadrul@chromium.org2014-04-151-0/+1
| | | | | | | | | | | | | | | | | | | Separate out the X11 related code in gfx into a separate gfx_x11 component that only depends on gfx_geometry. This change makes it possible to add a dependency on gfx_x11 without pulling in a lot of additional dependencies on chromeos/. With this updated dependency, use gfx::GetXDisplay() to get to the X11 connection without having to depend on the message-pump inside chromeos/. BUG=354062 R=derat@chromium.org, sky@chromium.org Previously landed in r263718, but reverted in r263734 because it caused linking errors for some tests. Review URL: https://codereview.chromium.org/225803003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@263768 0039d316-1c4b-4281-b951-d872f2087c98
* More removal of GTK code.erg@chromium.org2014-04-152-201/+0
| | | | | | | | BUG=297026 Review URL: https://codereview.chromium.org/232773008 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@263757 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 263726 "x11: Remove X11 message-pump."fischman@chromium.org2014-04-143-9/+20
| | | | | | | | | | | | | | | | | | | | | | | | Reason for revert: along with 263718 blamed for http://build.chromium.org/p/chromium.linux/builders/Linux%20Tests%20%28dbg%29%282%29/builds/45298 http://build.chromium.org/p/chromium.chromiumos/builders/Linux%20ChromiumOS%20Tests%20%28dbg%29%281%29/builds/29956 > x11: Remove X11 message-pump. > > The remaining use of the X11 mesage-pump was opening the connection to the > X11 server. This patch moves that out of the message-pump, into gfx. This > allows us to remove the X11 message-pump, and just use the base Glib-based > message-pump on Linux and ChromeOS. > > BUG=354062 > R=darin@chromium.org, sky@chromium.org > > Review URL: https://codereview.chromium.org/235043005 TBR=sadrul@chromium.org Review URL: https://codereview.chromium.org/238093002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@263733 0039d316-1c4b-4281-b951-d872f2087c98
* x11: Remove X11 message-pump.sadrul@chromium.org2014-04-143-20/+9
| | | | | | | | | | | | | | The remaining use of the X11 mesage-pump was opening the connection to the X11 server. This patch moves that out of the message-pump, into gfx. This allows us to remove the X11 message-pump, and just use the base Glib-based message-pump on Linux and ChromeOS. BUG=354062 R=darin@chromium.org, sky@chromium.org Review URL: https://codereview.chromium.org/235043005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@263726 0039d316-1c4b-4281-b951-d872f2087c98
* Support ANGLE_instanced_arrays on GLES3oetuaho@nvidia.com2014-04-141-3/+6
| | | | | | | | | | | | glDrawArraysInstanced, glDrawElementsInstanced, and glVertexAttribDivisor are parts of ES3 core. Expose them through ANGLE_instanced_arrays on ES3. BUG=362530 TEST=WebGL conformance tests, gpu_unittests Review URL: https://codereview.chromium.org/234873003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@263609 0039d316-1c4b-4281-b951-d872f2087c98
* Mac: Remove NSView supportsievers@chromium.org2014-04-097-266/+7
| | | | | | | | BUG=360811 Review URL: https://codereview.chromium.org/227473009 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@262594 0039d316-1c4b-4281-b951-d872f2087c98
* Do not retain zombie CGL contextsccameron@chromium.org2014-04-081-2/+8
| | | | | | | | | | | | | | | | | | There are reports of failures when releasing the previous_context_ in ScopedCGLSetCurrentContext's destructor. The exact reason is unknown, but test applications have shown that it is possible for the current context to have a reference count of zero (in which case, the retain before setting the new context current does nothing, and the release after the new context is not current anymore may crash). If the previous context has a zero reference count, do not retain and release it, rather, set the context to NULL after the call completes. BUG=358473 Review URL: https://codereview.chromium.org/224723021 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@262510 0039d316-1c4b-4281-b951-d872f2087c98
* Add support to resize native EGL surface.kalyan.kondapally@intel.com2014-04-081-0/+7
| | | | | | | | | | | Currently, ozone implementations using EGL have no way to resize the underlying native EGL Window like in case of SKCanvas. This CL adds needed support in gl_surface_ozone to ensure ozone implementations can resize native EGL Window. Review URL: https://codereview.chromium.org/222893004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@262376 0039d316-1c4b-4281-b951-d872f2087c98
* Split SurfaceOzone to SurfaceOzoneEGL and Canvas.kalyan.kondapally@intel.com2014-04-081-7/+7
| | | | | | | | | | | SurfaceOzone deals with both accelerated surfaces (EGL) and software output(SkiaCanvas). SurfaceOzone already had apis separated for both cases, this CL splits SurfaceOzone into SurfaceOzoneEGL and SurfaceOzoneCanvas. This CL also removes SurfaceOzoneBase. Review URL: https://codereview.chromium.org/225023021 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@262353 0039d316-1c4b-4281-b951-d872f2087c98
* base: Add ScopedJavaLocalFrame class.reveman@chromium.org2014-04-081-0/+4
| | | | | | | | | | | | | | This class can be used to create a local reference frame. A local reference frame ensures that some amount of local references can be created and forces all references created in the frame to be releases when exiting the frame. BUG=360069 TBR=darin Review URL: https://codereview.chromium.org/225283008 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@262273 0039d316-1c4b-4281-b951-d872f2087c98
* base: Do not allow MessagePumpObservers to consume events.sadrul@chromium.org2014-04-051-5/+3
| | | | | | | | | | | | | | | There is currently a single message-pump observer that can consume an event, and it does so only when the num-lock key is pressed on Chrome OS. But it doesn't need to consume the event, because no other dispatcher/observer cares about this event. So remove a MessagePumpObserver's ability to consume an event. This makes the code cleaner, and easier to understand. BUG=354062 R=darin@chromium.org, derat@chromium.org, sky@chromium.org Review URL: https://codereview.chromium.org/223483002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@262019 0039d316-1c4b-4281-b951-d872f2087c98
* Initialize the EGL surface to the window size on Winjbauman@chromium.org2014-04-041-0/+7
| | | | | | | | | | On other platforms, the EGL surface's starting size is that of the window, so that should be done on Windows as well. BUG=358870 Review URL: https://codereview.chromium.org/224493002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@261592 0039d316-1c4b-4281-b951-d872f2087c98
* Pass GL context bind_generates_resources flag to GPU Service.vmiura@chromium.org2014-04-031-0/+1
| | | | | | | | | | | | | | | | | GPU Client has been respecting the bind_generates_resources attrib, however the GPU Service has been forcing it to always 'true'. This means glBind semantic validation has been incorrect when bind_generates_resources is 'false' on the Client. This patch passes the bind_generates_resources attrib for WebGraphicsContext3DCommandBufferImpl, and checks that all contexts in the same ContextGroup use the same setting. BUG=333063, 244968 Review URL: https://codereview.chromium.org/213743003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@261563 0039d316-1c4b-4281-b951-d872f2087c98
* Revert r258965 aka reland r258122sievers@chromium.org2014-04-036-14/+139
| | | | | | | | | | | | | | | gpu: Allow fences to check whether a flush has occurred This skips waiting on a fence that was created but never committed. BUG=352419,355275 TBR=piman@chromium.org > Original Review URL: https://codereview.chromium.org/197563003 Review URL: https://codereview.chromium.org/222103008 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@261383 0039d316-1c4b-4281-b951-d872f2087c98