aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/gpu/SkGpuDevice.cpp
Commit message (Collapse)AuthorAge
* remove extra parameter ctm in skPaint2GrPaintShader()Gravatar bsalomon@google.com2012-04-06
| | | | | | | | | | Comitted on behalf of Guanqun.Lu@gmail.com Review URL: http://codereview.appspot.com/5990048/ git-svn-id: http://skia.googlecode.com/svn/trunk@3625 2bbb7eff-a529-9590-31e7-b0007b416f81
* Fixing blurred shadows of hairline paths when rendered on the GPUGravatar junov@chromium.org2012-04-04
| | | | | | | | | BUG=http://code.google.com/p/chromium/issues/detail?id=121251 REVIEW=http://codereview.appspot.com/5972064/ git-svn-id: http://skia.googlecode.com/svn/trunk@3607 2bbb7eff-a529-9590-31e7-b0007b416f81
* Fixing the drawing of blurred shodows for hairline paths with software renderingGravatar junov@chromium.org2012-04-04
| | | | | | | | | BUG=http://code.google.com/p/chromium/issues/detail?id=121251 REVIEW=http://codereview.appspot.com/5981053/ git-svn-id: http://skia.googlecode.com/svn/trunk@3592 2bbb7eff-a529-9590-31e7-b0007b416f81
* Fix NULL as SkColor warning on clang.Gravatar bsalomon@google.com2012-04-03
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@3582 2bbb7eff-a529-9590-31e7-b0007b416f81
* Reland 3563Gravatar bsalomon@google.com2012-03-30
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@3565 2bbb7eff-a529-9590-31e7-b0007b416f81
* Revet 3563 due to mac bot failureGravatar bsalomon@google.com2012-03-30
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@3564 2bbb7eff-a529-9590-31e7-b0007b416f81
* Improve save layer handling in SkGpuDeviceGravatar bsalomon@google.com2012-03-30
| | | | | | | | http://codereview.appspot.com/5966048/ git-svn-id: http://skia.googlecode.com/svn/trunk@3563 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
* disable GPU blur on small pathsGravatar bsalomon@google.com2012-03-28
| | | | | | | | | | | | Change originally by Guanqun.Lu@gmail.com with minor edits and sample added by me COULD POSSIBLY CHANGE GPU RESULTS OF GM SLIDES WITH BLUR, WILL REBASILINE IF SO. Review URL: https://codereview.appspot.com/5940045/ git-svn-id: http://skia.googlecode.com/svn/trunk@3514 2bbb7eff-a529-9590-31e7-b0007b416f81
* [GPU] when paint has patheffect, it should fallback to path renderGravatar bsalomon@google.com2012-03-26
| | | | | | | | | | | | Comitted on behalf of Guanqun.Lu@gmail.com THIS MAY CAUSE GM TO GO RED, WILL REBASELINE. Review URL: http://codereview.appspot.com/5885057/ git-svn-id: http://skia.googlecode.com/svn/trunk@3487 2bbb7eff-a529-9590-31e7-b0007b416f81
* apply imagefilter to all draw callsGravatar reed@google.com2012-03-23
| | | | | | Review URL: https://codereview.appspot.com/5856048 git-svn-id: http://skia.googlecode.com/svn/trunk@3476 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
* 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
* 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
* 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
* 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
* 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 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
* 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
* path effect on a very thin line should not be discardedGravatar bsalomon@google.com2012-02-13
| | | | | | | Review URL: http://codereview.appspot.com/5649069/ git-svn-id: http://skia.googlecode.com/svn/trunk@3171 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
* Formatting cleanup: remove extra whitespaceGravatar vandebo@chromium.org2012-01-28
| | | | | | | | Change by arthurhsu@chromium.org, original CL: http://codereview.appspot.com/5587049/ Review URL: https://codereview.appspot.com/5594043 git-svn-id: http://skia.googlecode.com/svn/trunk@3098 2bbb7eff-a529-9590-31e7-b0007b416f81
* Prefer a texture pixel ref to a render target pixel ref when creating an ↵Gravatar bsalomon@google.com2012-01-24
| | | | | | | | | | SkGpuDevice Review URL: http://codereview.appspot.com/5570050/ git-svn-id: http://skia.googlecode.com/svn/trunk@3081 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
* 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
* Correct GPU glyph positioning.Gravatar bungeman@google.com2012-01-11
| | | | | | | http://codereview.appspot.com/5522050/ git-svn-id: http://skia.googlecode.com/svn/trunk@3010 2bbb7eff-a529-9590-31e7-b0007b416f81
* Remove accidentally checked in printfGravatar bsalomon@google.com2012-01-10
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@2997 2bbb7eff-a529-9590-31e7-b0007b416f81
* add filterImage() entry-point to SkDevice, to allow it to specialize on ↵Gravatar reed@google.com2012-01-05
| | | | | | | | | | subclasses of SkImageFilter. If that returns false, then the filter itself is invoked. git-svn-id: http://skia.googlecode.com/svn/trunk@2977 2bbb7eff-a529-9590-31e7-b0007b416f81
* Speculative fix to please the skia buildbots. I couldn't repro the failureGravatar senorblanco@chromium.org2012-01-03
| | | | | | | | | | | locally, but I did get valgrind to point out some uninitialized data, which this fix suppresses. Build fix; unreviewed. git-svn-id: http://skia.googlecode.com/svn/trunk@2950 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
* Revert r2872Gravatar bsalomon@google.com2011-12-14
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@2873 2bbb7eff-a529-9590-31e7-b0007b416f81
* two loops for setting stage descsGravatar bsalomon@google.com2011-12-14
| | | | | | | Review URL: http://codereview.appspot.com/5486054/ git-svn-id: http://skia.googlecode.com/svn/trunk@2872 2bbb7eff-a529-9590-31e7-b0007b416f81
* Access sampler matrices directly, cleanup GrSamplerState::reset()sGravatar bsalomon@google.com2011-12-12
| | | | | | | Review URL: http://codereview.appspot.com/5488048/ git-svn-id: http://skia.googlecode.com/svn/trunk@2854 2bbb7eff-a529-9590-31e7-b0007b416f81
* Remove static initiazled gClampNearest in gpu backendGravatar bsalomon@google.com2011-12-12
| | | | | | | Review URL: http://codereview.appspot.com/5487044/ git-svn-id: http://skia.googlecode.com/svn/trunk@2851 2bbb7eff-a529-9590-31e7-b0007b416f81
* add SK_OVERRIDEs, move impl of virtuals into .cppGravatar reed@google.com2011-12-07
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@2819 2bbb7eff-a529-9590-31e7-b0007b416f81
* Prep for GrDrawState as a class Part 2Gravatar bsalomon@google.com2011-12-06
| | | | | | | | Review URL: http://codereview.appspot.com/5450105/ git-svn-id: http://skia.googlecode.com/svn/trunk@2810 2bbb7eff-a529-9590-31e7-b0007b416f81
* Prep #1 for making GrDrawState a classGravatar bsalomon@google.com2011-12-06
| | | | | | | | | Review URL: http://codereview.appspot.com/5437138/ git-svn-id: http://skia.googlecode.com/svn/trunk@2808 2bbb7eff-a529-9590-31e7-b0007b416f81
* Remove fConfig/fFormat union in GrTextureDescGravatar bsalomon@google.com2011-12-06
| | | | | | | Review URL: http://codereview.appspot.com/5448116/ git-svn-id: http://skia.googlecode.com/svn/trunk@2806 2bbb7eff-a529-9590-31e7-b0007b416f81
* [GPU] tile when large bitmap pased drawBitmap and only a small fraction is usedGravatar bsalomon@google.com2011-11-30
| | | | | | | | Review URL: http://codereview.appspot.com/5450048/ git-svn-id: http://skia.googlecode.com/svn/trunk@2760 2bbb7eff-a529-9590-31e7-b0007b416f81
* use AsMode instead of deprecated IsModeGravatar mike@reedtribe.org2011-11-17
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@2705 2bbb7eff-a529-9590-31e7-b0007b416f81
* Make all pixel ops go thru ctx so we can correctly flush. Unify two texture ↵Gravatar bsalomon@google.com2011-11-16
| | | | | | | | | | upload code paths. Review URL: http://codereview.appspot.com/5373108/ git-svn-id: http://skia.googlecode.com/svn/trunk@2701 2bbb7eff-a529-9590-31e7-b0007b416f81
* Do writepixels alpha-premul using gpuGravatar bsalomon@google.com2011-11-11
| | | | | | | | Review URL: http://codereview.appspot.com/5373064/ git-svn-id: http://skia.googlecode.com/svn/trunk@2668 2bbb7eff-a529-9590-31e7-b0007b416f81
* Add config8888 support to writePixelsGravatar bsalomon@google.com2011-11-10
| | | | | | | | Review URL: http://codereview.appspot.com/5374052/ git-svn-id: http://skia.googlecode.com/svn/trunk@2662 2bbb7eff-a529-9590-31e7-b0007b416f81
* Removes warnings generated by gcc and clang.Gravatar tomhudson@google.com2011-11-09
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@2651 2bbb7eff-a529-9590-31e7-b0007b416f81
* Implement Gaussian blurs for images. The caller creates an anGravatar senorblanco@chromium.org2011-11-09
| | | | | | | | | | | | | | | | | | SkBlurImageFilter, sets it on an SkPaint, passes that paint to saveLayer(), draws the primitives which are to be blurred, then calls restore(), which applies the blur. The blurs have separate sizes in the horizontal and vertical direction. This feature is GPU-only for now. NB: Due to the clipping change, there are slight pixel differences on the blurs_gpu and shadows_gpu tests, so those will require rebaselining on all platforms, as will some of the WebKit layout tests (TBD). Review URL: http://codereview.appspot.com/5322068/ git-svn-id: http://skia.googlecode.com/svn/trunk@2643 2bbb7eff-a529-9590-31e7-b0007b416f81
* [GPU] Add explicit byte order and PM vs. UPM 8888 configsGravatar bsalomon@google.com2011-11-07
| | | | | | | | Review URL: http://codereview.appspot.com/5347042/ git-svn-id: http://skia.googlecode.com/svn/trunk@2618 2bbb7eff-a529-9590-31e7-b0007b416f81
* Turn off annoying printfsGravatar bsalomon@google.com2011-11-05
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@2610 2bbb7eff-a529-9590-31e7-b0007b416f81
* Override 32BPP format in SkCanvas::readPixelsGravatar bsalomon@google.com2011-11-03
| | | | | | | | Review URL: http://codereview.appspot.com/5330073/ git-svn-id: http://skia.googlecode.com/svn/trunk@2600 2bbb7eff-a529-9590-31e7-b0007b416f81
* Make SkDevice::onReadPixels take a const& rather than const*Gravatar bsalomon@google.com2011-11-02
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@2587 2bbb7eff-a529-9590-31e7-b0007b416f81