summaryrefslogtreecommitdiffstats
path: root/gpu
Commit message (Collapse)AuthorAgeFilesLines
* Make GLES2Implementation based on GLES2Interfacegman@chromium.org2012-10-1615-1623/+3411
| | | | | | | | | | | | | GLES2Interface is a pure virutal interface. It's likely that more functions of GLES2Implementation will need have be declared in GLES2Interface but this is a first step BUG=155914 Review URL: https://chromiumcodereview.appspot.com/11138021 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@162216 0039d316-1c4b-4281-b951-d872f2087c98
* Add the swap size to the PostSubBuffer trace eventdanakj@chromium.org2012-10-161-1/+2
| | | | | | | | BUG= Review URL: https://chromiumcodereview.appspot.com/11117003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@162213 0039d316-1c4b-4281-b951-d872f2087c98
* Implemented OES_element_index_uint in the Chrome GPU command bufferbajones@chromium.org2012-10-154-19/+187
| | | | | | | | (Will be non-accessible until associated WebKit code is landed: http://webkit.org/b/97400) Review URL: https://chromiumcodereview.appspot.com/11053015 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@161971 0039d316-1c4b-4281-b951-d872f2087c98
* Fix comment in gpu_switches.ccgman@chromium.org2012-10-151-1/+1
| | | | | | | | | BUG=none TBR=apatrick@chromium.org Review URL: https://codereview.chromium.org/11160003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@161889 0039d316-1c4b-4281-b951-d872f2087c98
* Move per context GL state to a separate object.gman@chromium.org2012-10-135-378/+532
| | | | | | | | | | | This is in preparation for virutalizing GL contexts. BUG=155557 Review URL: https://chromiumcodereview.appspot.com/11130005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@161729 0039d316-1c4b-4281-b951-d872f2087c98
* Added emulation of the OES_vertex_array_object WebGL extension for devices thatbajones@chromium.org2012-10-128-192/+393
| | | | | | | | | | | | do not support it natively, such as those using ANGLE. TEST=Visit https://www.khronos.org/registry/webgl/sdk/tests/conformance/extensions/oes-vertex-array-object.html on an ANGLE device. All tests should pass. Review URL: https://chromiumcodereview.appspot.com/10983072 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@161589 0039d316-1c4b-4281-b951-d872f2087c98
* DeleteTexturesHelper uses wrong index for texture_units_.apatrick@chromium.org2012-10-111-1/+1
| | | | | | Review URL: https://chromiumcodereview.appspot.com/11090060 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@161248 0039d316-1c4b-4281-b951-d872f2087c98
* Issue-141903: Rename "descheduled" trace event for gpu swap to something ↵rubentopo@gmail.com2012-10-091-2/+3
| | | | | | | | | | | | | | understandable Changed Descheduled to ProcessSwap, added authors entry. BUG=141903 TEST= Review URL: https://chromiumcodereview.appspot.com/10967034 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@160793 0039d316-1c4b-4281-b951-d872f2087c98
* Make texture manager more strict.gman@chromium.org2012-10-082-8/+33
| | | | | | | | | BUG=144886 Review URL: https://chromiumcodereview.appspot.com/11074008 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@160678 0039d316-1c4b-4281-b951-d872f2087c98
* [Coverity] Fix uninitialized scalar variable.kmadhusu@chromium.org2012-10-051-0/+1
| | | | | | | | | | | | | Initialized non-static class member |bound_vertex_array_id_| variable. CID=106243 BUG=none TEST=none Review URL: https://chromiumcodereview.appspot.com/11049033 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@160435 0039d316-1c4b-4281-b951-d872f2087c98
* Add back in code to flush command buffer every 3 msjbauman@chromium.org2012-10-041-0/+15
| | | | | | | | | | | Not having this code causes WebGL and NaCl apps to not flush as often as they should, and build up huge command buffers. BUG=152393 Review URL: https://chromiumcodereview.appspot.com/11031032 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@160070 0039d316-1c4b-4281-b951-d872f2087c98
* Fix SetRange bounds check.gman@chromium.org2012-10-033-2/+24
| | | | | | | | | | | | | Note: The old code was tested in unit tests but still passes on a release build. That suggests there's a differerce between optimization levels on the chrome target vs the gpu_uinttests target BUG=149717 Review URL: https://chromiumcodereview.appspot.com/11053012 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@159915 0039d316-1c4b-4281-b951-d872f2087c98
* Support GL_OES_compressed_ETC1_RGB8_texture where available.sievers@chromium.org2012-10-036-7/+183
| | | | | | Review URL: https://chromiumcodereview.appspot.com/10981036 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@159813 0039d316-1c4b-4281-b951-d872f2087c98
* gpu: Fix clang warnings about missing virtual and OVERRIDE annotations.tfarina@chromium.org2012-09-303-100/+132
| | | | | | | | | | BUG=115047 TBR=apatrick@chromium.org Review URL: https://chromiumcodereview.appspot.com/11023006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@159440 0039d316-1c4b-4281-b951-d872f2087c98
* GLES2DecoderImpl::DoCompileShader() fails for GL_OES_EGL_image_external on ↵qinmin@chromium.org2012-09-291-0/+2
| | | | | | | | | | | | | android. The reason is that we did not enable it in InitializeShaderTranslator(). passing oes_egl_image_external value from feature flag to resources fix the problem. BUG=152865 Review URL: https://chromiumcodereview.appspot.com/10977082 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@159393 0039d316-1c4b-4281-b951-d872f2087c98
* Cleanup: avoid foo ? true : false, part 1.thestig@chromium.org2012-09-271-2/+1
| | | | | | Review URL: https://chromiumcodereview.appspot.com/10939010 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@159137 0039d316-1c4b-4281-b951-d872f2087c98
* gpu: Measure processing commands time per command buffer.reveman@chromium.org2012-09-274-4/+16
| | | | | | | | | | | | | Report processing command time to decoder from GpuScheduler::PutChanged() using new GLES2Decoder::AddProcessingCommandsTime() function. BUG=152618 TEST=gpu_unittests Review URL: https://chromiumcodereview.appspot.com/10990092 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@159127 0039d316-1c4b-4281-b951-d872f2087c98
* Aura: Keep scheduling in line with other platforms.backer@chromium.org2012-09-271-0/+3
| | | | | | | | | | | OSX and Vista+ only deschedule the image transport surface if there is a draw. This allows a greater amount of asynchronicity while waiting for a present (e.g. texture uploads). This small change does the same for Aura. BUG=none TEST=by hand Review URL: https://codereview.chromium.org/10974008 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@159029 0039d316-1c4b-4281-b951-d872f2087c98
* Temporarily disable timestamping of decoding timenduca@chromium.org2012-09-271-3/+0
| | | | | | | | | BUG=152618 TBR=reveman@chromium.org,piman@chromium.org Review URL: https://codereview.chromium.org/10979049 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@158979 0039d316-1c4b-4281-b951-d872f2087c98
* Added support for OES_vertex_array_object to the command bufferbajones@google.com2012-09-2735-82/+1592
| | | | | | | | | BUG=72612 Review URL: https://chromiumcodereview.appspot.com/10915244 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@158967 0039d316-1c4b-4281-b951-d872f2087c98
* Defend against NULL pointer dereferences in buggy OpenGL drivers.kbr@chromium.org2012-09-251-16/+3
| | | | | | | | | | BUG=149904 TEST=test case from bug; unit tests Review URL: https://chromiumcodereview.appspot.com/10989011 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@158665 0039d316-1c4b-4281-b951-d872f2087c98
* Allow immutable textures into mailboxespiman@chromium.org2012-09-256-12/+14
| | | | | | | | | BUG=None Review URL: https://chromiumcodereview.appspot.com/10984009 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@158496 0039d316-1c4b-4281-b951-d872f2087c98
* Simplify tracing of gpu memorynduca@chromium.org2012-09-176-45/+7
| | | | | | | | BUG=128502 Review URL: https://chromiumcodereview.appspot.com/10915293 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@157071 0039d316-1c4b-4281-b951-d872f2087c98
* Remove {base,net}_java dependencies from GYP client targets on Android.pliard@chromium.org2012-09-101-1/+0
| | | | | | | | | | | | | | | | | | | | | | | | On Android, some GYP client targets were explicitly depending on both the native and Java sides of a library. This removes the dependencies to {base,net}_java and make the native side ('base' and 'net) of these libraries depend on their Java counterpart. On Android it rarely makes sense to depend on a single side of a Java/C++ library. The {base,net}_java can now be considered as "private" targets although GYP does not support this concept unfortunately (AFAICT). Note that I made sure that the resulting APKs' size is unchanged. Additionally, this CL removes 'base_java' (i.e. does not replace it with 'base') from the targets including 'build/apk_test.gypi'. This dependency should not have been there (in the wrong layer) in the first place. It's needed by ChromeNativeTestActivity.java which clients should not know about. BUG=146323 TBR=lipalani,sky,willchan,brettw Review URL: https://chromiumcodereview.appspot.com/10913083 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@155737 0039d316-1c4b-4281-b951-d872f2087c98
* gpu: Fix more clang warnings about missing virtual and OVERRIDE annotations.tfarina@chromium.org2012-09-082-33/+35
| | | | | | | | | | BUG=115047 TBR=apatrick@chromium.org Review URL: https://chromiumcodereview.appspot.com/10905166 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@155581 0039d316-1c4b-4281-b951-d872f2087c98
* Fix SafeAdd and SafeMultiplygman@chromium.org2012-09-074-31/+83
| | | | | | | | | BUG=145648,145544 Review URL: https://chromiumcodereview.appspot.com/10916165 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@155478 0039d316-1c4b-4281-b951-d872f2087c98
* Report texture upload time in renderingStats.reveman@chromium.org2012-09-063-1/+61
| | | | | | | | | | BUG=133658 TEST=TEST=Launch Chrome with --enable-gpu-benchmarking, open a tab to a composited page, and type chrome.gpuBenchmarking.renderingStats(). textureUploadCount, and totalTextureUploadTimeInSeconds should be present. Review URL: https://chromiumcodereview.appspot.com/10868048 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@155099 0039d316-1c4b-4281-b951-d872f2087c98
* Enable GPU acceleration for Aura on Windowsscottmg@chromium.org2012-09-061-1/+5
| | | | | | | | | | | | | | | Use GpuTransportSurface and AcceleratedSurface for rendering on win aura. Run with: --open-ash --force-compositing-mode --enable-threaded-compositing BUG= Review URL: https://chromiumcodereview.appspot.com/10890046 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@155093 0039d316-1c4b-4281-b951-d872f2087c98
* Add support to test harness EGL for OpenGL ES 1.1 tests on Regalgman@chromium.org2012-09-063-8/+66
| | | | | | | | BUG=none Review URL: https://chromiumcodereview.appspot.com/10911086 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@155064 0039d316-1c4b-4281-b951-d872f2087c98
* Add ENUM value to synthesized GL_INVALID_ENUM errorsgman@chromium.org2012-08-315-199/+178
| | | | | | | | | BUG=none Review URL: https://chromiumcodereview.appspot.com/10893034 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@154332 0039d316-1c4b-4281-b951-d872f2087c98
* Add WARN_UNUSED_RESULT to scoped_refptr::release.xiaomings@google.com2012-08-281-5/+1
| | | | | | | | | | | | | | Also fixed some possible leaks related by scoped_refptr::release. See https://groups.google.com/a/chromium.org/forum/#!topic/chromium-dev/b5thcBgubsM BUG= Review URL: https://chromiumcodereview.appspot.com/10874054 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@153719 0039d316-1c4b-4281-b951-d872f2087c98
* Fix gyp --checked violations.mkosiba@chromium.org2012-08-281-1/+1
| | | | | | | | | | | | This removes 'or' and 'and' usage that is outside of quoted strings. TBR=dmichael@chromium.org BUG= Review URL: https://chromiumcodereview.appspot.com/10886009 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@153660 0039d316-1c4b-4281-b951-d872f2087c98
* PPAPI/NaCl: Make NaClIPCAdapter transfer handles more generallydmichael@chromium.org2012-08-275-1/+54
| | | | | | | | | | | | | | | | | This does a couple of things: - It defines a new wrapper for passing any kind of handle through the PPAPI proxy (SerializedHandle). - It updates nacl_ipc_adapter to have a more general way to pick apart messages based on their static types (which include the types of all the params). - It adds support for PPB_Graphics2D and PPB_Graphics3D to the NaCl IPC proxy (e.g., NaCl SDK examples pi_generator and tumbler work in the new proxy with this patch). The downside is it requires pulling parts of ppapi/shared_impl and ppapi/proxy in to the NaCl Win64 build. BUG=116317 TEST= Review URL: https://chromiumcodereview.appspot.com/10828023 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@153531 0039d316-1c4b-4281-b951-d872f2087c98
* Remove left over debug line from cmd-buf script.gman@chromium.org2012-08-271-1/+0
| | | | | | | | | BUG=NONE TBR=apatrick@chromium.org Review URL: https://chromiumcodereview.appspot.com/10880072 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@153510 0039d316-1c4b-4281-b951-d872f2087c98
* Make glGetQueryObjectuivEXT return true for GL_QUERY_RESULT_AVAILABLE_EXTgman@chromium.org2012-08-256-17/+29
| | | | | | | | | | | | This is so a client waiting for the result to be available does not wait forever if the context is lost. BUG=144731 Review URL: https://chromiumcodereview.appspot.com/10883036 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@153376 0039d316-1c4b-4281-b951-d872f2087c98
* Make NaCl IPC-based PPAPI proxy build on ARM.bbudge@chromium.org2012-08-232-2/+2
| | | | | | | | | | This change modifies the build to fix compile and link failures. It introduces a build/common_untrusted.gypi file, to add things that are needed by all untrusted targets that build Chrome code. BUG=116317 TEST=compiles native_client.gyp:nacl_ipc_irt target on ARM. Review URL: https://chromiumcodereview.appspot.com/10871009 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@153074 0039d316-1c4b-4281-b951-d872f2087c98
* Free the command buffer on destruction.gman@chromium.org2012-08-234-2/+20
| | | | | | | | | | | | | It used to be this happened automagically when the corresponding GPU service code deleted all shared memory for a context but now shared memory is shared by all contexts in a sharegroup so this needs to be freed explicitly. BUG=143799 Review URL: https://chromiumcodereview.appspot.com/10876025 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@152905 0039d316-1c4b-4281-b951-d872f2087c98
* Remove overly agressive ASSERTs on output GL parameters.gman@chromium.org2012-08-235-135/+199
| | | | | | | | BUG=144022 Review URL: https://chromiumcodereview.appspot.com/10860082 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@152900 0039d316-1c4b-4281-b951-d872f2087c98
* fix for incorrectly recording gpu binary cache hit timedmurph@chromium.org2012-08-221-11/+14
| | | | | | Review URL: https://chromiumcodereview.appspot.com/10873012 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@152859 0039d316-1c4b-4281-b951-d872f2087c98
* Fix Uniform Name Parsinggman@chromium.org2012-08-226-37/+174
| | | | | | | | | BUG=144007 Review URL: https://chromiumcodereview.appspot.com/10855274 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@152707 0039d316-1c4b-4281-b951-d872f2087c98
* Fixed in-memory gpu program cache size flag interpretationdmurph@chromium.org2012-08-211-3/+3
| | | | | | Review URL: https://chromiumcodereview.appspot.com/10860055 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@152474 0039d316-1c4b-4281-b951-d872f2087c98
* GPU program cache - switched to high res timings, and time report binary ↵dmurph@chromium.org2012-08-201-21/+23
| | | | | | | | cache miss without the cache on. Review URL: https://chromiumcodereview.appspot.com/10836344 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@152417 0039d316-1c4b-4281-b951-d872f2087c98
* Fix a misuse of framebuffer target in GLHelper (2)sheu@chromium.org2012-08-152-23/+26
| | | | | | | | | | | | | | | | | | | | EGL only recognizes the GL_FRAMEBUFFER target for glFramebufferTexture2D. Also mark GL_DRAW_FRAMEBUFFER as an invalid parameter to OpenGLES framebuffer object functions, as only GL_FRAMEBUFFER is valid. Also, use the _EXT versions of framebuffer enums on other targets, to regularize with the use of EXT functions. BUG=chrome-os-partner:11070 TEST=local build, run on ARM Change-Id: I14d495f0195491df186b60f164ce342e7e5c9463 Review URL: https://chromiumcodereview.appspot.com/10827310 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@151637 0039d316-1c4b-4281-b951-d872f2087c98
* Fix scons build of gpu command buffer.binji@chromium.org2012-08-142-2/+2
| | | | | | | | | | BUG=none R=gman@chromium.org TBR=nfullagar@google.com Review URL: https://chromiumcodereview.appspot.com/10829307 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@151450 0039d316-1c4b-4281-b951-d872f2087c98
* Implement GL_EXT_debug_markergman@chromium.org2012-08-1222-108/+689
| | | | | | | | | BUG=141700 Review URL: https://chromiumcodereview.appspot.com/10836185 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@151194 0039d316-1c4b-4281-b951-d872f2087c98
* Fix transfer buffer accountingccameron@chromium.org2012-08-101-5/+7
| | | | | | | | | BUG=141550 Review URL: https://chromiumcodereview.appspot.com/10825288 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@150987 0039d316-1c4b-4281-b951-d872f2087c98
* Clean-up inline members of nested classes (gpu/)hans@chromium.org2012-08-0910-105/+130
| | | | | | | | | | | | | | | | Due to a bug, the Clang-plugin style checker failed to warn about inline constructors, destructors, non-empty virtual methods, etc. for nested classes. The plugin has been fixed, and this patch is part of a clean-up of all the code that now causes the plugin to issue errors. BUG=139346 Review URL: https://chromiumcodereview.appspot.com/10834248 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@150920 0039d316-1c4b-4281-b951-d872f2087c98
* Make java.gypi export jar path to input_jars_paths variablecjhopman@chromium.org2012-08-091-1/+0
| | | | | | | | | | | | | | | | | Both java.gypi and apk_test.gypi expect the jar path in input_jars_paths. This means that we were specifying the dependence in both 'dependencies' and 'input_jars_paths'. This change makes it so that we don't need that redundancy. Also, make java.gypi use input_jars_paths in its input so that we actually rebuild targets when we should. BUG=136756 Review URL: https://chromiumcodereview.appspot.com/10837143 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@150850 0039d316-1c4b-4281-b951-d872f2087c98
* Add gpu targets to untrusted build, and add Graphics3D code to untrusted build.bbudge@chromium.org2012-08-078-312/+492
| | | | | | | | | | BUG=116317 TEST=builds,manual With this change, the IPC-based PPAPI proxy builds all code needed for 3d and OpenGL ES. Review URL: https://chromiumcodereview.appspot.com/10837145 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@150432 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 150343 - Add gpu targets to untrusted build, and add Graphics3D code ↵bbudge@chromium.org2012-08-078-488/+312
| | | | | | | | | | | | | | | to untrusted build. BUG=116317 TEST=builds,manual With this change, the IPC-based PPAPI proxy builds and runs the tumbler example. Review URL: https://chromiumcodereview.appspot.com/10796038 TBR=bbudge@chromium.org Review URL: https://chromiumcodereview.appspot.com/10830197 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@150345 0039d316-1c4b-4281-b951-d872f2087c98