aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/gpu
Commit message (Collapse)AuthorAge
* Revert r3435, no perf winGravatar bsalomon@google.com2012-03-19
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@3436 2bbb7eff-a529-9590-31e7-b0007b416f81
* inline GrDrawTarget::copyDrawStateGravatar bsalomon@google.com2012-03-19
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@3435 2bbb7eff-a529-9590-31e7-b0007b416f81
* Compile with c++0x.Gravatar bungeman@google.com2012-03-19
| | | | | | | http://codereview.appspot.com/5841074/ git-svn-id: http://skia.googlecode.com/svn/trunk@3434 2bbb7eff-a529-9590-31e7-b0007b416f81
* rolling back to r3427Gravatar robertphillips@google.com2012-03-19
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@3430 2bbb7eff-a529-9590-31e7-b0007b416f81
* Addressed compiler warnings in the Debug GL Interface on Linux.Gravatar robertphillips@google.com2012-03-19
| | | | | | | | http://codereview.appspot.com/5845068/ git-svn-id: http://skia.googlecode.com/svn/trunk@3428 2bbb7eff-a529-9590-31e7-b0007b416f81
* Added debug GL Interface. This interface tracks various GL objects in order ↵Gravatar robertphillips@google.com2012-03-19
| | | | | | | | | | | to find leaks & invalid accesses. Core Review: http://codereview.appspot.com/5846049/ git-svn-id: http://skia.googlecode.com/svn/trunk@3426 2bbb7eff-a529-9590-31e7-b0007b416f81
* Make the text context not have to save / restore GrDrawState at each draw.Gravatar bsalomon@google.com2012-03-19
| | | | | | | | Reivew URL: http://codereview.appspot.com/5844049/ git-svn-id: http://skia.googlecode.com/svn/trunk@3422 2bbb7eff-a529-9590-31e7-b0007b416f81
* GPU blit speedup: avoid texture filtering and texture domain when not necessaryGravatar junov@chromium.org2012-03-16
| | | | | | | | | | BUG=crbug.com/102284 REVIEW=http://codereview.appspot.com/5836047/ TEST=code path already covered by gm/nocolorbleed gm/bitmapfilters and others git-svn-id: http://skia.googlecode.com/svn/trunk@3421 2bbb7eff-a529-9590-31e7-b0007b416f81
* Call reset() in text context rather than set to SkMatrix::I(). Perf ↵Gravatar bsalomon@google.com2012-03-16
| | | | | | improvement in bench. git-svn-id: http://skia.googlecode.com/svn/trunk@3415 2bbb7eff-a529-9590-31e7-b0007b416f81
* Split GrTextContext into baseclass and subclassGravatar bsalomon@google.com2012-03-16
| | | | | | | | | | | | This is a step towards enabling alternate text rendering code paths (GLyphy in particular) Committed on behalf of baranowski@chromium.org Review URL: http://codereview.appspot.com/5796071/ git-svn-id: http://skia.googlecode.com/svn/trunk@3412 2bbb7eff-a529-9590-31e7-b0007b416f81
* Change vertex buffer size for draw buffer. Hopefully helps with some of the ↵Gravatar bsalomon@google.com2012-03-15
| | | | | | perf regression of r3382 on txt drawing. git-svn-id: http://skia.googlecode.com/svn/trunk@3405 2bbb7eff-a529-9590-31e7-b0007b416f81
* Perform degenerate check in device coords in convex path rendererGravatar bsalomon@google.com2012-03-15
| | | | | | | | Review URL: http://codereview.appspot.com/5821053/ git-svn-id: http://skia.googlecode.com/svn/trunk@3401 2bbb7eff-a529-9590-31e7-b0007b416f81
* Allow compiler to optimize applying quadratic UV matrix to vertsGravatar bsalomon@google.com2012-03-15
| | | | | | | | Code Review: http://codereview.appspot.com/5833048/ git-svn-id: http://skia.googlecode.com/svn/trunk@3398 2bbb7eff-a529-9590-31e7-b0007b416f81
* This update fixes the problem with GLX failing to find a valid configuration ↵Gravatar robertphillips@google.com2012-03-14
| | | | | | | | | | | | on Linux laptops (Issue 513). The base issue here was that the default GLX implementation on some Linux laptops lies about its version numbering. Code in SkNativeGLContext_unix.cpp was checking the version number to avoid using FBConfigs in versions prior to 1.3 and thus incorrectly stopped processing. To resolve this a separate configuration path has been added that uses the pre-1.3 method (i.e., XGetVisualInfo and glXGetConfig). The run-time version check has also been removed and a #define has been added to toggle between the two implementations. This allows the FBConfig method to be used with the wayward GLX implementation while the legacy method can be used with older implementations. Please see http://codereview.appspot.com/5823049/ for more information. git-svn-id: http://skia.googlecode.com/svn/trunk@3384 2bbb7eff-a529-9590-31e7-b0007b416f81
* Batch path draws.Gravatar bsalomon@google.com2012-03-14
| | | | | | | | | | | THIS IS EXPECTED TO SUBTLY CHANGE ONE GM IMAGE, WILL REBASELINE. Review URL: http://codereview.appspot.com/5796080/ git-svn-id: http://skia.googlecode.com/svn/trunk@3382 2bbb7eff-a529-9590-31e7-b0007b416f81
* Fix missing return statementGravatar bsalomon@google.com2012-03-13
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@3373 2bbb7eff-a529-9590-31e7-b0007b416f81
* Add option to automatically flush GrInOrderDrawBuffer based on previewing ↵Gravatar bsalomon@google.com2012-03-13
| | | | | | | | | | vtx/idx request sizes Review URL: http://codereview.appspot.com/5794079/ git-svn-id: http://skia.googlecode.com/svn/trunk@3372 2bbb7eff-a529-9590-31e7-b0007b416f81
* Change interface on GrDrawTarget to reserve vtx/idx space at same timeGravatar bsalomon@google.com2012-03-13
| | | | | | | Review URL: https://codereview.appspot.com/5796066/ git-svn-id: http://skia.googlecode.com/svn/trunk@3371 2bbb7eff-a529-9590-31e7-b0007b416f81
* add/delete some comments to path renderer interfaceGravatar bsalomon@google.com2012-03-12
| | | | | | | | | | Submitted by Guanqun.Lu@gmail.com Review URL: http://codereview.appspot.com/5783060/ git-svn-id: http://skia.googlecode.com/svn/trunk@3361 2bbb7eff-a529-9590-31e7-b0007b416f81
* use floats to compute texture matrix / coordsGravatar bsalomon@google.com2012-03-08
| | | | | | | | Review URL: http://codereview.appspot.com/5781059/ git-svn-id: http://skia.googlecode.com/svn/trunk@3347 2bbb7eff-a529-9590-31e7-b0007b416f81
* Turn off pedantic check that causes too much noise in GL logs.Gravatar bsalomon@google.com2012-03-08
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@3343 2bbb7eff-a529-9590-31e7-b0007b416f81
* Misc bug fix in GrInOrderDrawBufferGravatar bsalomon@google.com2012-03-08
| | | | | | | | Code review: http://codereview.appspot.com/5787054/ git-svn-id: http://skia.googlecode.com/svn/trunk@3342 2bbb7eff-a529-9590-31e7-b0007b416f81
* Fix GrBufferAllocPool to include padding in bytes used for an allocationGravatar bsalomon@google.com2012-03-08
| | | | | | | | Review URL: http://codereview.appspot.com/5784053/ git-svn-id: http://skia.googlecode.com/svn/trunk@3339 2bbb7eff-a529-9590-31e7-b0007b416f81
* make pathrenderers release their geometry before returningGravatar bsalomon@google.com2012-03-07
| | | | | | | | Review URL: http://codereview.appspot.com/5753073/ git-svn-id: http://skia.googlecode.com/svn/trunk@3335 2bbb7eff-a529-9590-31e7-b0007b416f81
* Fix debug build: move assertions to GrContext callers, not static callees.Gravatar senorblanco@chromium.org2012-03-05
| | | | | | | | Debug build fix; unreviewed. git-svn-id: http://skia.googlecode.com/svn/trunk@3329 2bbb7eff-a529-9590-31e7-b0007b416f81
* Recommit r3321 with fix for path orientation reversal.Gravatar bsalomon@google.com2012-03-05
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@3328 2bbb7eff-a529-9590-31e7-b0007b416f81
* Refactor Gaussian blur and morphology from SkGpuDevice into GrContext.Gravatar senorblanco@chromium.org2012-03-05
| | | | | | | | Review URL: http://codereview.appspot.com/5720060/ git-svn-id: http://skia.googlecode.com/svn/trunk@3327 2bbb7eff-a529-9590-31e7-b0007b416f81
* Revert r3321 because of GM failureGravatar bsalomon@google.com2012-03-05
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@3323 2bbb7eff-a529-9590-31e7-b0007b416f81
* make skpaint2grpaint functions be local to skgpudevice.cppGravatar bsalomon@google.com2012-03-05
| | | | | | | | Review URL: http://codereview.appspot.com/5726061/ git-svn-id: http://skia.googlecode.com/svn/trunk@3322 2bbb7eff-a529-9590-31e7-b0007b416f81
* Avoid making a copy of the path in GrAAConvexPathRendererGravatar bsalomon@google.com2012-03-05
| | | | | | | Review URL: http://codereview.appspot.com/5720074/ git-svn-id: http://skia.googlecode.com/svn/trunk@3321 2bbb7eff-a529-9590-31e7-b0007b416f81
* Prealloc space for ~10 segments in GrAAConvexPathRendererGravatar bsalomon@google.com2012-03-05
| | | | | | | | Review URL: http://codereview.appspot.com/5726058/ git-svn-id: http://skia.googlecode.com/svn/trunk@3317 2bbb7eff-a529-9590-31e7-b0007b416f81
* minor improvement, remove some conditionals in GrAAConvexPathRendererGravatar bsalomon@google.com2012-03-05
| | | | | | | | Review URL: http://codereview.appspot.com/5728060 git-svn-id: http://skia.googlecode.com/svn/trunk@3316 2bbb7eff-a529-9590-31e7-b0007b416f81
* Avoid hairline coverage mul when possibleGravatar bsalomon@google.com2012-03-05
| | | | | | | Review URL: http://codereview.appspot.com/5727062/ git-svn-id: http://skia.googlecode.com/svn/trunk@3315 2bbb7eff-a529-9590-31e7-b0007b416f81
* simplify GrPathRenderer interfaceGravatar bsalomon@google.com2012-03-02
| | | | | | | | Review URL: http://codereview.appspot.com/5706053/ git-svn-id: http://skia.googlecode.com/svn/trunk@3312 2bbb7eff-a529-9590-31e7-b0007b416f81
* Erode and dilate image filter effects, CPU and GPU implementations.Gravatar senorblanco@chromium.org2012-03-02
| | | | | | | | Review URL: http://codereview.appspot.com/5656067/ git-svn-id: http://skia.googlecode.com/svn/trunk@3310 2bbb7eff-a529-9590-31e7-b0007b416f81
* Better workaround for osx / nv bugGravatar bsalomon@google.com2012-03-02
| | | | | | | | Review URL: http://codereview.appspot.com/5727044/ git-svn-id: http://skia.googlecode.com/svn/trunk@3308 2bbb7eff-a529-9590-31e7-b0007b416f81
* Remove offscreen supersampler.Gravatar bsalomon@google.com2012-03-02
| | | | | | | | | | THIS IS EXPECTED TO BREAK MANY GM TESTS. They will be rebaselined. Review URL: http://codereview.appspot.com/5722044/ git-svn-id: http://skia.googlecode.com/svn/trunk@3305 2bbb7eff-a529-9590-31e7-b0007b416f81
* minor fix: remove unnecessary initGravatar bsalomon@google.com2012-03-02
| | | | | | | | | Review URL: http://codereview.appspot.com/5720048/ git-svn-id: http://skia.googlecode.com/svn/trunk@3301 2bbb7eff-a529-9590-31e7-b0007b416f81
* Fix cycling through buffers in buffer alloc poolGravatar bsalomon@google.com2012-03-01
| | | | | | | | Review URL: http://codereview.appspot.com/5716050/ git-svn-id: http://skia.googlecode.com/svn/trunk@3296 2bbb7eff-a529-9590-31e7-b0007b416f81
* Remove ref in buffer alloc pool.Gravatar bsalomon@google.com2012-03-01
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@3290 2bbb7eff-a529-9590-31e7-b0007b416f81
* Workaround for chrome on mac buffer object performance issue.Gravatar bsalomon@google.com2012-03-01
| | | | | | | | Review URL: http://codereview.appspot.com/5713051/ git-svn-id: http://skia.googlecode.com/svn/trunk@3289 2bbb7eff-a529-9590-31e7-b0007b416f81
* Fix copy/paste issue in GrInOrderDrawBuffer.Gravatar bsalomon@google.com2012-02-24
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@3257 2bbb7eff-a529-9590-31e7-b0007b416f81
* Remove unused member from GrInOrderDrawBufferGravatar bsalomon@google.com2012-02-24
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@3254 2bbb7eff-a529-9590-31e7-b0007b416f81
* In convex path renderer, translate polygon to origin for fanPt computationGravatar bsalomon@google.com2012-02-23
| | | | | | | | Review URL: http://codereview.appspot.com/5698051/ git-svn-id: http://skia.googlecode.com/svn/trunk@3241 2bbb7eff-a529-9590-31e7-b0007b416f81
* GPU device preserves pixel values across read/write/read of unpremul pixel ↵Gravatar bsalomon@google.com2012-02-23
| | | | | | | | | | values Review URL: http://codereview.appspot.com/5695047/ git-svn-id: http://skia.googlecode.com/svn/trunk@3237 2bbb7eff-a529-9590-31e7-b0007b416f81
* remove unused variableGravatar bsalomon@google.com2012-02-23
| | | | | | | Review URL: http://codereview.appspot.com/5689055/ git-svn-id: http://skia.googlecode.com/svn/trunk@3232 2bbb7eff-a529-9590-31e7-b0007b416f81
* Remove incorrect GrAssert calls in GrResourceCache::removeAllGravatar twiz@google.com2012-02-21
| | | | | | | | | The asserts in GrResourceCache are too aggressive, and assume that all resources are always purged. Locked resources will not be purged. BUG=114861 Review URL: https://codereview.appspot.com/5674096 git-svn-id: http://skia.googlecode.com/svn/trunk@3226 2bbb7eff-a529-9590-31e7-b0007b416f81
* Change append to appendf for call sites with no format arguments.Gravatar vandebo@chromium.org2012-02-21
| | | | | | | | Original CL: http://codereview.appspot.com/5685062/ Review URL: https://codereview.appspot.com/5686059 git-svn-id: http://skia.googlecode.com/svn/trunk@3225 2bbb7eff-a529-9590-31e7-b0007b416f81
* Remove on static initializer in GrGpu.cppGravatar digit@google.com2012-02-16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is another go for the patch that was initially submitted at http://codereview.appspot.com/5504073/ but crashed the 'gm' unit test. A problem with the previous implementation is that the GrStencilSettings ::isDisabled() and ::doesWrite() methods can modify the object's fFlags member if it is 0, and this will crash at runtime when doing this for a static constant object/structure. I'm not sure why this wasn't triggered previously. We solve the issue by modifying the implementation of GR_STATIC_CONST_STENCIL and GR_STATIC_CONST_STENCIL macros to compute the correct default values for fFlags (which prevents any member modifications in the above methods). This requires moving the definition of the disabled/write flags out of the GrStencilSettings class definition's private section. Note that the flags are renamed to avoid any confusion and conflicts, i.e.: SkIsDisabled_Flag -> SkIsDisabled_StencilFlag SkNotDisabled_Flag -> SkNotDisabled_StencilFlag ... Review URL: https://codereview.appspot.com/5616051 git-svn-id: http://skia.googlecode.com/svn/trunk@3214 2bbb7eff-a529-9590-31e7-b0007b416f81
* Revert 3191Gravatar bsalomon@google.com2012-02-15
| | | | | | | Review URL: http://codereview.appspot.com/5656068/ git-svn-id: http://skia.googlecode.com/svn/trunk@3203 2bbb7eff-a529-9590-31e7-b0007b416f81