aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/gpu
Commit message (Collapse)AuthorAge
...
* Sort GL extension strings and search to find.Gravatar bsalomon@google.com2013-02-27
| | | | | | Review URL: https://codereview.chromium.org/12316141 git-svn-id: http://skia.googlecode.com/svn/trunk@7889 2bbb7eff-a529-9590-31e7-b0007b416f81
* Assign color=0 in GrDrawState.cpp to stop tools from raising false alarms ↵Gravatar bsalomon@google.com2013-02-27
| | | | | | | | | | | | about uninit reads. We were assigning color to oldColor but it in turn would never be read because the valid flags would be cleared. R=jvanverth@google.com Review URL: https://codereview.chromium.org/12313150 git-svn-id: http://skia.googlecode.com/svn/trunk@7886 2bbb7eff-a529-9590-31e7-b0007b416f81
* Replace A8 with RGBA8 when renderable A8 isn't supportedGravatar robertphillips@google.com2013-02-27
| | | | | | | | https://codereview.appspot.com/7372053/ git-svn-id: http://skia.googlecode.com/svn/trunk@7882 2bbb7eff-a529-9590-31e7-b0007b416f81
* Sanitizing source files in Skia_Periodic_House_KeepingGravatar skia.committer@gmail.com2013-02-27
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@7875 2bbb7eff-a529-9590-31e7-b0007b416f81
* Use glGetStringi to get extensions when available.Gravatar bsalomon@google.com2013-02-26
| | | | | | Review URL: https://codereview.chromium.org/12328111 git-svn-id: http://skia.googlecode.com/svn/trunk@7872 2bbb7eff-a529-9590-31e7-b0007b416f81
* Add files omitted from gcl change in r7860.Gravatar bsalomon@google.com2013-02-26
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@7861 2bbb7eff-a529-9590-31e7-b0007b416f81
* Consolidate functions common the the null and debug GL interfaces.Gravatar bsalomon@google.com2013-02-26
| | | | | | | R=robertphillips@google.com Review URL: https://codereview.appspot.com/7400053 git-svn-id: http://skia.googlecode.com/svn/trunk@7860 2bbb7eff-a529-9590-31e7-b0007b416f81
* Fixed the hash key comparison function.Gravatar sugoi@google.com2013-02-25
| | | | | | Review URL: https://codereview.appspot.com/7378065 git-svn-id: http://skia.googlecode.com/svn/trunk@7853 2bbb7eff-a529-9590-31e7-b0007b416f81
* Give GrDrawTarget a back ptr to its owning GrContext.Gravatar bsalomon@google.com2013-02-25
| | | | | | Review URL: https://codereview.appspot.com/7395055 git-svn-id: http://skia.googlecode.com/svn/trunk@7850 2bbb7eff-a529-9590-31e7-b0007b416f81
* Use size_t for rowBytes.Gravatar scroggo@google.com2013-02-25
| | | | | | | | | | | | | Previously, we were using uint32_t sometimes, int sometimes, and size_t sometimes. Switch to using size_t, since we are actually talking about a number of bytes. In copyPixelsTo, use 0 as a flag to use the internal rowBytes, which is more consistent with setConfig. Review URL: https://codereview.appspot.com/7370047 git-svn-id: http://skia.googlecode.com/svn/trunk@7843 2bbb7eff-a529-9590-31e7-b0007b416f81
* Enable cpu-array dynamic vertex data on SGX.Gravatar bsalomon@google.com2013-02-22
| | | | | | | R=robertphillips@google.com Review URL: https://codereview.appspot.com/7388045 git-svn-id: http://skia.googlecode.com/svn/trunk@7830 2bbb7eff-a529-9590-31e7-b0007b416f81
* Use CPU arrays for dynamic indices/vertices on ARM GPUs.Gravatar bsalomon@google.com2013-02-21
| | | | | | Review URL: https://codereview.appspot.com/7365047 git-svn-id: http://skia.googlecode.com/svn/trunk@7810 2bbb7eff-a529-9590-31e7-b0007b416f81
* Add support for vertex data rendered from CPU arrays.Gravatar bsalomon@google.com2013-02-21
| | | | | | Review URL: https://codereview.appspot.com/7380044 git-svn-id: http://skia.googlecode.com/svn/trunk@7807 2bbb7eff-a529-9590-31e7-b0007b416f81
* Add GrGLBufferImpl to unify implementation of GrGLVertexBuffer and ↵Gravatar bsalomon@google.com2013-02-20
| | | | | | | | GrGLIndexBuffer. Review URL: https://codereview.appspot.com/7346055 git-svn-id: http://skia.googlecode.com/svn/trunk@7798 2bbb7eff-a529-9590-31e7-b0007b416f81
* Fix unused var warning.Gravatar bsalomon@google.com2013-02-19
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@7781 2bbb7eff-a529-9590-31e7-b0007b416f81
* Refactor tracking of bound vbufs and ibufs and vertex attrib arrays.Gravatar bsalomon@google.com2013-02-19
| | | | | | Review URL: https://codereview.appspot.com/7359045 git-svn-id: http://skia.googlecode.com/svn/trunk@7779 2bbb7eff-a529-9590-31e7-b0007b416f81
* Sanitizing source files in Skia_Periodic_House_KeepingGravatar skia.committer@gmail.com2013-02-15
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@7746 2bbb7eff-a529-9590-31e7-b0007b416f81
* Remove unused texture coordinate flags.Gravatar jvanverth@google.com2013-02-14
| | | | | | | | | | | Currently we support 5 texture stages, each with 5 possible texture coordinate attributes. However, we only ever use one explicit texture coordinate. This change removes all but one (now named just "aTexCoord") of the possible explicit texture coordinates. Review URL: https://codereview.appspot.com/7308094/ git-svn-id: http://skia.googlecode.com/svn/trunk@7737 2bbb7eff-a529-9590-31e7-b0007b416f81
* Use CGL rather than AGL on the Mac.Gravatar bsalomon@google.com2013-02-14
| | | | | | Review URL: https://codereview.appspot.com/7307106 git-svn-id: http://skia.googlecode.com/svn/trunk@7736 2bbb7eff-a529-9590-31e7-b0007b416f81
* Use SkMWRandom in GLPrograms test.Gravatar bsalomon@google.com2013-02-13
| | | | | | | R=jvanverth@google.com Review URL: https://codereview.appspot.com/7306097 git-svn-id: http://skia.googlecode.com/svn/trunk@7721 2bbb7eff-a529-9590-31e7-b0007b416f81
* r7719 was an exact reland of r7713. This CL is fix.Gravatar bsalomon@google.com2013-02-13
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@7720 2bbb7eff-a529-9590-31e7-b0007b416f81
* Attempt to reland r7713 with fix.Gravatar bsalomon@google.com2013-02-13
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@7719 2bbb7eff-a529-9590-31e7-b0007b416f81
* Revert r7713 until GM changes are understood.Gravatar bsalomon@google.com2013-02-13
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@7718 2bbb7eff-a529-9590-31e7-b0007b416f81
* Move view matrix flush to GrGLPrograms.Gravatar bsalomon@google.com2013-02-13
| | | | | | Review URL: https://codereview.appspot.com/7322064 git-svn-id: http://skia.googlecode.com/svn/trunk@7713 2bbb7eff-a529-9590-31e7-b0007b416f81
* Move code that builds GrGLProgram::Desc to GrGLProgram. Move color and ↵Gravatar bsalomon@google.com2013-02-12
| | | | | | | | coverage flush to GrGLProgram. Review URL: https://codereview.appspot.com/7322058 git-svn-id: http://skia.googlecode.com/svn/trunk@7708 2bbb7eff-a529-9590-31e7-b0007b416f81
* Move blend optimization functions to GrDrawState.Gravatar bsalomon@google.com2013-02-12
| | | | | | Review URL: https://codereview.appspot.com/7300089 git-svn-id: http://skia.googlecode.com/svn/trunk@7703 2bbb7eff-a529-9590-31e7-b0007b416f81
* Revert 7625 until after M26 due to a mix of perf changes.Gravatar bsalomon@google.com2013-02-08
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@7683 2bbb7eff-a529-9590-31e7-b0007b416f81
* Remove compile time option to use different types for text vertices.Gravatar bsalomon@google.com2013-02-07
| | | | | | Review URL: https://codereview.appspot.com/7309060 git-svn-id: http://skia.googlecode.com/svn/trunk@7658 2bbb7eff-a529-9590-31e7-b0007b416f81
* Temporarily disable new GL error checking in ~SkGLContextGravatar robertphillips@google.com2013-02-07
| | | | | | | | https://codereview.appspot.com/7308064/ git-svn-id: http://skia.googlecode.com/svn/trunk@7657 2bbb7eff-a529-9590-31e7-b0007b416f81
* Remove GR_DISABLE_DRAW_BUFFERING, replace with RTConf variable.Gravatar bsalomon@google.com2013-02-07
| | | | | | | R=robertphillips@google.com Review URL: https://codereview.appspot.com/7312061 git-svn-id: http://skia.googlecode.com/svn/trunk@7656 2bbb7eff-a529-9590-31e7-b0007b416f81
* Remove GR_DUMP_TEXTURE_UPLOADSGravatar bsalomon@google.com2013-02-07
| | | | | | | R=robertphillips@google.com Review URL: https://codereview.appspot.com/7300062 git-svn-id: http://skia.googlecode.com/svn/trunk@7652 2bbb7eff-a529-9590-31e7-b0007b416f81
* Remove GR_AGGRESSIVE_SHADER_OPTS build option.Gravatar bsalomon@google.com2013-02-07
| | | | | | | R=robertphillips@google.com Review URL: https://codereview.appspot.com/7312058 git-svn-id: http://skia.googlecode.com/svn/trunk@7650 2bbb7eff-a529-9590-31e7-b0007b416f81
* Enhance GL error checking for non-Ganesh GL callsGravatar robertphillips@google.com2013-02-07
| | | | | | | | https://codereview.appspot.com/7312057/ git-svn-id: http://skia.googlecode.com/svn/trunk@7647 2bbb7eff-a529-9590-31e7-b0007b416f81
* Remove legacy names no longer referenced in Chrome and WebKit.Gravatar bsalomon@google.com2013-02-07
| | | | | | Review URL: https://codereview.appspot.com/7311055 git-svn-id: http://skia.googlecode.com/svn/trunk@7640 2bbb7eff-a529-9590-31e7-b0007b416f81
* Fix a perf regression introduced by r7594: when computing a texture cache ↵Gravatar senorblanco@chromium.org2013-02-07
| | | | | | | | | | key, use the resolved (Top or Bottom) surface origin, never Default, otherwise we never get a cache hit. Covered by polygon, path benches. See also: https://code.google.com/p/chromium/issues/detail?id=174749. Review URL: https://codereview.appspot.com/7299059 git-svn-id: http://skia.googlecode.com/svn/trunk@7635 2bbb7eff-a529-9590-31e7-b0007b416f81
* Remove GR_STATIC_RECT_VBGravatar bsalomon@google.com2013-02-06
| | | | | | Review URL: https://codereview.appspot.com/7304055 git-svn-id: http://skia.googlecode.com/svn/trunk@7625 2bbb7eff-a529-9590-31e7-b0007b416f81
* Fix WritePixels test on ANGLE.Gravatar bsalomon@google.com2013-02-06
| | | | | | | | | Don't upload BGRA to RGBA if not supported (ES2 w/ EXT BGRA extension). R=senorblanco@chromium.org Review URL: https://codereview.appspot.com/7305046 git-svn-id: http://skia.googlecode.com/svn/trunk@7622 2bbb7eff-a529-9590-31e7-b0007b416f81
* Set vertex layout prior to setVertexSourceToBuffer for GR_STATIC_RECT_VBGravatar jvanverth@google.com2013-02-06
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@7612 2bbb7eff-a529-9590-31e7-b0007b416f81
* Sanitizing source files in Skia_Periodic_House_KeepingGravatar skia.committer@gmail.com2013-02-06
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@7608 2bbb7eff-a529-9590-31e7-b0007b416f81
* Fix calls to setVertexSourceToBufferGravatar robertphillips@google.com2013-02-05
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@7604 2bbb7eff-a529-9590-31e7-b0007b416f81
* Fix bench crash (calling method on NULL object).Gravatar bsalomon@google.com2013-02-05
| | | | | | Review URL: https://codereview.appspot.com/7305048 git-svn-id: http://skia.googlecode.com/svn/trunk@7603 2bbb7eff-a529-9590-31e7-b0007b416f81
* Reinstate r7546: fix unused variable warningGravatar jvanverth@google.com2013-02-05
| | | | | | | https://codereview.appspot.com/7309051 git-svn-id: http://skia.googlecode.com/svn/trunk@7602 2bbb7eff-a529-9590-31e7-b0007b416f81
* Move vertex layout from GeometrySrcState to GrDrawState.Gravatar jvanverth@google.com2013-02-05
| | | | | | | | | | | Also adds AutoStateRestore member to AutoGeometryPush to push DrawState as well as GeometrySrcState. And removed vertex layout as an argument to a number of functions -- they will get vertex layout info from the current DrawState. Review URL: https://codereview.appspot.com/7286047 git-svn-id: http://skia.googlecode.com/svn/trunk@7600 2bbb7eff-a529-9590-31e7-b0007b416f81
* Revert r7595 due to housekeeper warning-as-error.Gravatar bsalomon@google.com2013-02-05
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@7596 2bbb7eff-a529-9590-31e7-b0007b416f81
* Re-enable static asserts with windows warning fix.Gravatar bsalomon@google.com2013-02-05
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@7595 2bbb7eff-a529-9590-31e7-b0007b416f81
* Implement support for origin-TopLeft render targets. Note that the default ↵Gravatar senorblanco@chromium.org2013-02-05
| | | | | | | | behaviour remains the same: textures default to origin-TopLeft, render targets default to origin-BottomLeft, and backend textures default to origin-BottomLeft. However, the caller can override the default by setting fOrigin in GrTextureDesc, GrBackendTextureDesc or GrBackendRenderTargetDesc. Review URL: https://codereview.appspot.com/7230049 git-svn-id: http://skia.googlecode.com/svn/trunk@7594 2bbb7eff-a529-9590-31e7-b0007b416f81
* hide the static-assert block altogether, until we can find a construct thatGravatar reed@google.com2013-02-05
| | | | | | | | doesn't have warngs on mac or windows git-svn-id: http://skia.googlecode.com/svn/trunk@7586 2bbb7eff-a529-9590-31e7-b0007b416f81
* fix (new annoying) warning (mac only I think)Gravatar reed@google.com2013-02-05
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@7583 2bbb7eff-a529-9590-31e7-b0007b416f81
* Make windows GrGLCreateNatriveInterface not us GL.h and not use linker to ↵Gravatar bsalomon@google.com2013-02-05
| | | | | | | | | resolve gl functions. Instead load the GL library and use GetProcAddress. R=robertphillips@google.com Review URL: https://codereview.appspot.com/7308047 git-svn-id: http://skia.googlecode.com/svn/trunk@7582 2bbb7eff-a529-9590-31e7-b0007b416f81
* Restore variable to release builds.Gravatar jvanverth@google.com2013-02-05
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@7572 2bbb7eff-a529-9590-31e7-b0007b416f81