aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/gpu/GrContext.cpp
Commit message (Collapse)AuthorAge
...
* Fixed GrContext.cpp Windows compiler complaintsGravatar robertphillips@google.com2012-05-10
| | | | | | | | http://codereview.appspot.com/6198051/ git-svn-id: http://skia.googlecode.com/svn/trunk@3895 2bbb7eff-a529-9590-31e7-b0007b416f81
* Move convolution from code in GrGLProgram to new GrConvolutionEffectGravatar tomhudson@google.com2012-05-10
| | | | | | | | | | | | | class. This is the first test of the new Ganesh shader pipeline. Also includes some cleanup of the gpu.gyp file: added src/gpu, allowing us to remove ../ from many #include directives. http://codereview.appspot.com/6199053/ git-svn-id: http://skia.googlecode.com/svn/trunk@3887 2bbb7eff-a529-9590-31e7-b0007b416f81
* Fix to prevent infinite recursion during AA clip mask generationGravatar robertphillips@google.com2012-05-03
| | | | | | | | http://codereview.appspot.com/6183044/ git-svn-id: http://skia.googlecode.com/svn/trunk@3831 2bbb7eff-a529-9590-31e7-b0007b416f81
* Moved SW path renderer from GrContext.cpp to GrSoftwarePathRenderer.cppGravatar robertphillips@google.com2012-05-01
| | | | | | | | http://codereview.appspot.com/6138056/ git-svn-id: http://skia.googlecode.com/svn/trunk@3807 2bbb7eff-a529-9590-31e7-b0007b416f81
* Addition of necessary flush to copyToTexturePixelRef(...).Gravatar twiz@google.com2012-04-27
| | | | | | | | | | Ganesh batches drawing operations, which means that the copy operation, which does not flush the pipeline, can capture stale contents. By forcing a flush, the up-to-date version of the texture is copied. TEST=none BUG=124054 Review URL: https://codereview.appspot.com/6129043 git-svn-id: http://skia.googlecode.com/svn/trunk@3785 2bbb7eff-a529-9590-31e7-b0007b416f81
* Remove GrPath typedefGravatar bsalomon@google.com2012-04-27
| | | | | | | | Review URL: http://codereview.appspot.com/6128045/ git-svn-id: http://skia.googlecode.com/svn/trunk@3780 2bbb7eff-a529-9590-31e7-b0007b416f81
* convert float to SkScalar changesGravatar robertphillips@google.com2012-04-27
| | | | | | | | | | http://codereview.appspot.com/6071043/ Submitted on behalf of Guanqun.Lu@gmail.com git-svn-id: http://skia.googlecode.com/svn/trunk@3779 2bbb7eff-a529-9590-31e7-b0007b416f81
* Fix trivial int->scalar warning introduced in r3772Gravatar bsalomon@google.com2012-04-27
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@3775 2bbb7eff-a529-9590-31e7-b0007b416f81
* draw circle paths directly via GPUGravatar bsalomon@google.com2012-04-27
| | | | | | | | | | | Review URL: http://codereview.appspot.com/5696086/ Submitted on behalf of Guanqun.Lu@gmail.com git-svn-id: http://skia.googlecode.com/svn/trunk@3772 2bbb7eff-a529-9590-31e7-b0007b416f81
* First portion of refactoring to bundle SW path rendering into GrPathRendererGravatar robertphillips@google.com2012-04-27
| | | | | | | | http://codereview.appspot.com/6125046/ git-svn-id: http://skia.googlecode.com/svn/trunk@3769 2bbb7eff-a529-9590-31e7-b0007b416f81
* Updated blur to use A8/R8 (instead of RGBA8) when available - this provides ↵Gravatar robertphillips@google.com2012-04-10
| | | | | | | | | | a performance gain for large blurs http://codereview.appspot.com/5988071/ git-svn-id: http://skia.googlecode.com/svn/trunk@3647 2bbb7eff-a529-9590-31e7-b0007b416f81
* Minor Windows compiler complaint fixesGravatar robertphillips@google.com2012-04-10
| | | | | | | | http://codereview.appspot.com/5988072/ git-svn-id: http://skia.googlecode.com/svn/trunk@3644 2bbb7eff-a529-9590-31e7-b0007b416f81
* add macro DEFER_PATHS to proper checksGravatar bsalomon@google.com2012-04-04
| | | | | | | | | | | Submitted on behalf of Guanqun.Lu@gmail.com Review URL: http://codereview.appspot.com/5972047/ git-svn-id: http://skia.googlecode.com/svn/trunk@3608 2bbb7eff-a529-9590-31e7-b0007b416f81
* Revert 3857 (which was committed from wrong tree)Gravatar bsalomon@google.com2012-04-03
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@3588 2bbb7eff-a529-9590-31e7-b0007b416f81
* Fix GL attach/detach in Mac SampleAppGravatar bsalomon@google.com2012-04-03
| | | | | | | Review URL: http://codereview.appspot.com/5984043/ git-svn-id: http://skia.googlecode.com/svn/trunk@3587 2bbb7eff-a529-9590-31e7-b0007b416f81
* Unify text flushing with other deferred drawingGravatar bsalomon@google.com2012-03-30
| | | | | | | | Review URL: http://codereview.appspot.com/5936054/ git-svn-id: http://skia.googlecode.com/svn/trunk@3560 2bbb7eff-a529-9590-31e7-b0007b416f81
* Make fewer copies when using GrDrawTarget::AutoStateRestoreGravatar bsalomon@google.com2012-03-30
| | | | | | | | Review URL: http://codereview.appspot.com/5938043/ git-svn-id: http://skia.googlecode.com/svn/trunk@3557 2bbb7eff-a529-9590-31e7-b0007b416f81
* Reland 3507Gravatar bsalomon@google.com2012-03-30
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@3554 2bbb7eff-a529-9590-31e7-b0007b416f81
* Remove deprecated names from Gr (WK is no longer using them)Gravatar bsalomon@google.com2012-03-30
| | | | | | | | Review URL: http://codereview.appspot.com/5969046/ git-svn-id: http://skia.googlecode.com/svn/trunk@3553 2bbb7eff-a529-9590-31e7-b0007b416f81
* Don't look at current vertex layout when vertex source hasn't been setGravatar bsalomon@google.com2012-03-29
| | | | | | | | Review URL: http://codereview.appspot.com/5959047 git-svn-id: http://skia.googlecode.com/svn/trunk@3545 2bbb7eff-a529-9590-31e7-b0007b416f81
* Revert 3507Gravatar bsalomon@google.com2012-03-28
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@3537 2bbb7eff-a529-9590-31e7-b0007b416f81
* Fix comparison of GrPaint::fCoverage (which is a byte not a uint32_t)Gravatar bsalomon@google.com2012-03-28
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@3527 2bbb7eff-a529-9590-31e7-b0007b416f81
* Make printf in GrContext about partial pixel coverage be debug-onlyGravatar bsalomon@google.com2012-03-28
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@3516 2bbb7eff-a529-9590-31e7-b0007b416f81
* Use a single GrDrawState in GrContext for direct and buffered drawingGravatar bsalomon@google.com2012-03-27
| | | | | | | Review URL: http://codereview.appspot.com/5933043/ git-svn-id: http://skia.googlecode.com/svn/trunk@3507 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
* 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
* 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
* 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
* 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
* 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
* 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
* 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
* 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
* 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
* 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
* Add code path for Gr client to resolve an Gr-created MSAA render target.Gravatar bsalomon@google.com2012-01-31
| | | | | | | Review URL: http://codereview.appspot.com/5580049/ git-svn-id: http://skia.googlecode.com/svn/trunk@3112 2bbb7eff-a529-9590-31e7-b0007b416f81
* Remove GrAALevel enum, use explicit sample countGravatar bsalomon@google.com2012-01-30
| | | | | | | | Review URL: http://codereview.appspot.com/5600045/ git-svn-id: http://skia.googlecode.com/svn/trunk@3106 2bbb7eff-a529-9590-31e7-b0007b416f81
* Expose functionality to purge the GPU texture cache while running SampleApp.Gravatar twiz@google.com2012-01-27
| | | | | | | | Press 'p' to purge the cache. A summary of the number of bytes of video memory released is output to the command prompt. Review URL: https://codereview.appspot.com/5587045 git-svn-id: http://skia.googlecode.com/svn/trunk@3097 2bbb7eff-a529-9590-31e7-b0007b416f81
* Rip out GrPlatformSurface (has been deprecated for some time, use ↵Gravatar bsalomon@google.com2012-01-27
| | | | | | | | | | GrPlatformTexture or GrPlatformRenderTarget instead) Review URL: http://codereview.appspot.com/5576052/ git-svn-id: http://skia.googlecode.com/svn/trunk@3094 2bbb7eff-a529-9590-31e7-b0007b416f81
* Pull xfer mode test out of generic draw-as-hairline test. Use coverage ↵Gravatar bsalomon@google.com2012-01-18
| | | | | | | | | | | rather than alpha to draw hairlines < 1pix wide in GPU. Review URL: http://codereview.appspot.com/5528112/ git-svn-id: http://skia.googlecode.com/svn/trunk@3070 2bbb7eff-a529-9590-31e7-b0007b416f81
* Turn clipping back on in OSAA pass 1. Skip default cons on GrDrawState when ↵Gravatar bsalomon@google.com2012-01-18
| | | | | | | | | | saving off a GrDrawTarget's state. Review URL: http://codereview.appspot.com/5553051/ git-svn-id: http://skia.googlecode.com/svn/trunk@3067 2bbb7eff-a529-9590-31e7-b0007b416f81
* Add GrDrawState resetGravatar bsalomon@google.com2012-01-17
| | | | | | | | | Review URL: http://codereview.appspot.com/5543059/ git-svn-id: http://skia.googlecode.com/svn/trunk@3043 2bbb7eff-a529-9590-31e7-b0007b416f81
* Fix vs2010 int to scalar warningsGravatar bsalomon@google.com2012-01-12
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@3032 2bbb7eff-a529-9590-31e7-b0007b416f81
* Add code path to SW rasterize paths and upload as a mask textureGravatar bsalomon@google.com2012-01-12
| | | | | | | | Review URL: http://codereview.appspot.com/5542043/ git-svn-id: http://skia.googlecode.com/svn/trunk@3031 2bbb7eff-a529-9590-31e7-b0007b416f81
* Remove supports per-vertex coverage caps bitGravatar bsalomon@google.com2012-01-12
| | | | | | | | Review URL: http://codereview.appspot.com/5529071/ git-svn-id: http://skia.googlecode.com/svn/trunk@3024 2bbb7eff-a529-9590-31e7-b0007b416f81
* Fix variable renaming in asserts related to r3015Gravatar bsalomon@google.com2012-01-11
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@3016 2bbb7eff-a529-9590-31e7-b0007b416f81
* Remove shadersupport caps bitGravatar bsalomon@google.com2012-01-11
| | | | | | | | Review URL: http://codereview.appspot.com/5528076/ git-svn-id: http://skia.googlecode.com/svn/trunk@3015 2bbb7eff-a529-9590-31e7-b0007b416f81
* fix compilation error in GrContext.cpp when PREFER_MSAA_OFFSCREEN_AA is enabledGravatar bsalomon@google.com2012-01-11
| | | | | | | | http://codereview.appspot.com/5534068/ git-svn-id: http://skia.googlecode.com/svn/trunk@3009 2bbb7eff-a529-9590-31e7-b0007b416f81
* Implement the color matrix filter in Ganesh. Also, fix and enable the colorGravatar senorblanco@chromium.org2012-01-03
| | | | | | | | | | | | matrix test slide. This was basically implemented in the same places where the blending-based color filter was being done. The shader simply does a mat4 matrix multiply and a vec4 add. Review URL: http://codereview.appspot.com/5489107/ git-svn-id: http://skia.googlecode.com/svn/trunk@2948 2bbb7eff-a529-9590-31e7-b0007b416f81