aboutsummaryrefslogtreecommitdiffhomepage
path: root/gpu
Commit message (Collapse)AuthorAge
* separate coverage stages from color stages.Gravatar bsalomon@google.com2011-05-16
| | | | | | | | Review URL: http://codereview.appspot.com/4538064/ git-svn-id: http://skia.googlecode.com/svn/trunk@1339 2bbb7eff-a529-9590-31e7-b0007b416f81
* Fixed color bleeding issue when drawing a sub region of a bitmap with ↵Gravatar junov@google.com2011-05-16
| | | | | | | | | | | filtering enabled. Problem was resolved by adding the notion of a custom texture domain in generated shaders, when necessary. git-svn-id: http://skia.googlecode.com/svn/trunk@1337 2bbb7eff-a529-9590-31e7-b0007b416f81
* use SkPath for GrPath, removing GrPathIter entirelyGravatar reed@google.com2011-05-16
| | | | | | | | http://codereview.appspot.com/4515071/ git-svn-id: http://skia.googlecode.com/svn/trunk@1335 2bbb7eff-a529-9590-31e7-b0007b416f81
* Fix winding order check for negative scale in tesselated path rendering. TheGravatar senorblanco@chromium.org2011-05-16
| | | | | | | | | | | | | isCCW() code in GrTesselatedPathRenderer was using untransformed vertices, which fails for transforms with negative scale. Doing the check after transformation fixes it. This was causing some missing geometry in the PolyToPoly and Shapes tests in SampleApp. Review URL: http://codereview.appspot.com/4545049/ git-svn-id: http://skia.googlecode.com/svn/trunk@1334 2bbb7eff-a529-9590-31e7-b0007b416f81
* Upload matrix as gl float rather than gr scalar (fixes a build break when ↵Gravatar bsalomon@google.com2011-05-16
| | | | | | | | | scalar==fixed) Review URL: http://codereview.appspot.com/4516051/ git-svn-id: http://skia.googlecode.com/svn/trunk@1329 2bbb7eff-a529-9590-31e7-b0007b416f81
* Disable blend for edge AA not general AAGravatar bsalomon@google.com2011-05-12
| | | | | | | | | Review URL: http://codereview.appspot.com/4526051/ git-svn-id: http://skia.googlecode.com/svn/trunk@1316 2bbb7eff-a529-9590-31e7-b0007b416f81
* Style fixGravatar Scroggo2011-05-12
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@1315 2bbb7eff-a529-9590-31e7-b0007b416f81
* Edge antialiasing for convex shapes in GaneshGravatar senorblanco@chromium.org2011-05-12
| | | | | | | | | | | | | | | | | | | This patch implements edge antialiasing for convex shapes, using the fragment shader to compare against the edge equations for each triangle. Currently, it only works for flat shaded primitives (i.e., it was not integrated into the "active stages" path). The skia.gyp changes cause this code to be compiled into SampleApp, but do not enable the tesselated path by default. Notes: the SkOSWindow_Unix.cpp change is to silence a valgrind warning about memcpy() with overlapping regions. The GrBinHashKey change is to avoid running a two-pass hash (GrProgramDesc is now 52 bytes or so, exceeding the 32 byte default size). Review URL: http://codereview.appspot.com/4519054/ git-svn-id: http://skia.googlecode.com/svn/trunk@1314 2bbb7eff-a529-9590-31e7-b0007b416f81
* Allow blending if there is a color filter.Gravatar Scroggo2011-05-11
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@1309 2bbb7eff-a529-9590-31e7-b0007b416f81
* Add space between mediump and float in 2pt radial vertex uniform declGravatar bsalomon@google.com2011-05-11
| | | | | | | | | Review URL http://codereview.appspot.com/4544041/ git-svn-id: http://skia.googlecode.com/svn/trunk@1308 2bbb7eff-a529-9590-31e7-b0007b416f81
* Remove a warning.Gravatar Scroggo2011-05-11
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@1303 2bbb7eff-a529-9590-31e7-b0007b416f81
* Store 1/255 as a constant to reduce number of divides.Gravatar Scroggo2011-05-11
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@1301 2bbb7eff-a529-9590-31e7-b0007b416f81
* Remove unused variable.Gravatar Scroggo2011-05-11
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@1299 2bbb7eff-a529-9590-31e7-b0007b416f81
* Keep program cache consistent when program creation fails.Gravatar bsalomon@google.com2011-05-11
| | | | | | Review URL: http://codereview.appspot.com/4523056/ git-svn-id: http://skia.googlecode.com/svn/trunk@1298 2bbb7eff-a529-9590-31e7-b0007b416f81
* Add color filters to gpu path.Gravatar Scroggo2011-05-11
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@1297 2bbb7eff-a529-9590-31e7-b0007b416f81
* Make GrMatrix an alias of SkMatrix. Add new methods to SkMatrix.Gravatar bsalomon@google.com2011-05-10
| | | | | | | | | | Review URL: http://codereview.appspot.com/4538043/ Checked in on behalf of reed@ with some additional work (remove the do-nother sk->gr matrix converter). git-svn-id: http://skia.googlecode.com/svn/trunk@1289 2bbb7eff-a529-9590-31e7-b0007b416f81
* Fix unused var warningGravatar bsalomon@google.com2011-05-09
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@1285 2bbb7eff-a529-9590-31e7-b0007b416f81
* remove deleted include file (oops)Gravatar bsalomon@google.com2011-05-09
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@1283 2bbb7eff-a529-9590-31e7-b0007b416f81
* Remove previous shader generator class. No longer compiles due to ↵Gravatar bsalomon@google.com2011-05-09
| | | | | | elimination of separate GrStringBuilder class in favor or SkString. git-svn-id: http://skia.googlecode.com/svn/trunk@1282 2bbb7eff-a529-9590-31e7-b0007b416f81
* Make shader generator more legible. Get rid of some magic values.Gravatar bsalomon@google.com2011-05-09
| | | | | | | Review URL: http://codereview.appspot.com/4531043/ git-svn-id: http://skia.googlecode.com/svn/trunk@1281 2bbb7eff-a529-9590-31e7-b0007b416f81
* Share code with SkRectGravatar reed@google.com2011-05-09
| | | | | | | | http://codereview.appspot.com/4523046/ git-svn-id: http://skia.googlecode.com/svn/trunk@1277 2bbb7eff-a529-9590-31e7-b0007b416f81
* remove #if 0 codeGravatar reed@google.com2011-05-09
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@1276 2bbb7eff-a529-9590-31e7-b0007b416f81
* Suppress int/NULL comparison warningGravatar bsalomon@google.com2011-05-09
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@1275 2bbb7eff-a529-9590-31e7-b0007b416f81
* use SkPoint, creating an alias for GrPointGravatar reed@google.com2011-05-06
| | | | | | | | http://codereview.appspot.com/4498041/ git-svn-id: http://skia.googlecode.com/svn/trunk@1268 2bbb7eff-a529-9590-31e7-b0007b416f81
* share macros and types with SkScalar, but keep aliases for now, to avoid editingGravatar reed@google.com2011-05-06
| | | | | | | | call sites. git-svn-id: http://skia.googlecode.com/svn/trunk@1267 2bbb7eff-a529-9590-31e7-b0007b416f81
* Replace GrStringBuilder with SkString. First step in cleaning up the shader ↵Gravatar bsalomon@google.com2011-05-06
| | | | | | | | | | generator. Slight performance hit when creating a new shader (<10% of total shader gen time on my Windows box is spent in building our string before handing it to GL). Much of this can be recovered by better usage pattern of SkString in coming revisions. Review URL: http://codereview.appspot.com/4465053/ git-svn-id: http://skia.googlecode.com/svn/trunk@1266 2bbb7eff-a529-9590-31e7-b0007b416f81
* remove unused var, fixes warningGravatar bsalomon@google.com2011-05-06
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@1265 2bbb7eff-a529-9590-31e7-b0007b416f81
* Switch to GrGpuGLShaders (instead of GrGpuGLShaders2).Gravatar bsalomon@google.com2011-05-05
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@1251 2bbb7eff-a529-9590-31e7-b0007b416f81
* Add 4x4 downsample filter with 4 bilinear texture reads, use for ssaa.Gravatar bsalomon@google.com2011-05-05
| | | | | | Review URL: http://codereview.appspot.com/4483042/ git-svn-id: http://skia.googlecode.com/svn/trunk@1250 2bbb7eff-a529-9590-31e7-b0007b416f81
* SampleApp builds skia on Linux with BGRA pixel order, but Ganesh's SampleAppGravatar senorblanco@chromium.org2011-05-04
| | | | | | | | | | | | | assumes GL_RGBA texture format on all platforms except Windows (where it uses GL_BGRA), so texture colours come out wrong. As a temporary fix, do on Linux what we do on Windows, and assume GL_BGRA. (This should be made more general later, and the assumption of matching formats between Skia and Ganesh removed.) Review URL: http://codereview.appspot.com/4474046/ git-svn-id: http://skia.googlecode.com/svn/trunk@1247 2bbb7eff-a529-9590-31e7-b0007b416f81
* Minor fixes to get SampleApp's OpenGL path not to crash on Linux. InitializeGravatar senorblanco@chromium.org2011-05-04
| | | | | | | | | | | | | SkOSWindow::fGLAttched (and fVi while we're at it), since it was being checked uninitialized. Don't call has_gl_extension() while initializing the GrGLDefaultInterface, since it derefs the default interface (which is still NULL); use has_gl_extension_from_string() instead. Review URL: http://codereview.appspot.com/4480041/ git-svn-id: http://skia.googlecode.com/svn/trunk@1242 2bbb7eff-a529-9590-31e7-b0007b416f81
* Fix validation (glTexEnvi is fixed pipe only)Gravatar bsalomon@google.com2011-05-04
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@1241 2bbb7eff-a529-9590-31e7-b0007b416f81
* Add all ES2 glUniform functions to GrGLInterface. Add interface validation ↵Gravatar bsalomon@google.com2011-05-04
| | | | | | | | | | for fixed pipe or shader pipe use. Review URL: http://codereview.appspot.com/4435082/ git-svn-id: http://skia.googlecode.com/svn/trunk@1234 2bbb7eff-a529-9590-31e7-b0007b416f81
* Remove GrContext.h dependence on GrGpu.hGravatar bsalomon@google.com2011-05-02
| | | | | | | | Review URL: http://codereview.appspot.com/4433096/ git-svn-id: http://skia.googlecode.com/svn/trunk@1227 2bbb7eff-a529-9590-31e7-b0007b416f81
* 4x4 SSAA with improvements in determination of when to apply. Still disabled ↵Gravatar bsalomon@google.com2011-05-02
| | | | | | | | | | | at compile time. Review URL: http://codereview.appspot.com/4445075/ git-svn-id: http://skia.googlecode.com/svn/trunk@1218 2bbb7eff-a529-9590-31e7-b0007b416f81
* Fixing a simple build error in GrGpuGLShaders.cpp with GR_AGGRESSIVE_SHADER_OPTSGravatar junov@google.com2011-04-29
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@1216 2bbb7eff-a529-9590-31e7-b0007b416f81
* Only define debugging GL globals when the code paths are enabledGravatar bsalomon@google.com2011-04-28
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@1212 2bbb7eff-a529-9590-31e7-b0007b416f81
* Make reserveAndLockGeometry set index/vertex ptr to null if none requested. ↵Gravatar bsalomon@google.com2011-04-28
| | | | | | We are expecting this behavior in a caller and it seems reasonable. git-svn-id: http://skia.googlecode.com/svn/trunk@1210 2bbb7eff-a529-9590-31e7-b0007b416f81
* Fix warnings.Gravatar bsalomon@google.com2011-04-28
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@1209 2bbb7eff-a529-9590-31e7-b0007b416f81
* Adding newline at end of file to fix compiler error.Gravatar agl@chromium.org2011-04-27
| | | | | | | Unreviewed, build fix. git-svn-id: http://skia.googlecode.com/svn/trunk@1206 2bbb7eff-a529-9590-31e7-b0007b416f81
* Add bounding rect for pathsGravatar bsalomon@google.com2011-04-27
| | | | | | | | Review URL: http://codereview.appspot.com/4442094/ git-svn-id: http://skia.googlecode.com/svn/trunk@1205 2bbb7eff-a529-9590-31e7-b0007b416f81
* Make Gr clear take a rect for a partial-clearGravatar bsalomon@google.com2011-04-27
| | | | | | | | Review URL: http://codereview.appspot.com/4442093/ git-svn-id: http://skia.googlecode.com/svn/trunk@1203 2bbb7eff-a529-9590-31e7-b0007b416f81
* SSSA for drawVerts, cleanup determination of when stage is enabledGravatar bsalomon@google.com2011-04-26
| | | | | | | | Review URL: http://codereview.appspot.com/4430066/ git-svn-id: http://skia.googlecode.com/svn/trunk@1195 2bbb7eff-a529-9590-31e7-b0007b416f81
* Update GR_API to support non-Windows DLLs.Gravatar bsalomon@google.com2011-04-26
| | | | | | | | Review URL: http://codereview.appspot.com/4441067/ git-svn-id: http://skia.googlecode.com/svn/trunk@1189 2bbb7eff-a529-9590-31e7-b0007b416f81
* Per-draw super sampling. Disabled, path only, 2x2 onlyGravatar bsalomon@google.com2011-04-26
| | | | | | | | Review URL: http://codereview.appspot.com/4452048/ git-svn-id: http://skia.googlecode.com/svn/trunk@1186 2bbb7eff-a529-9590-31e7-b0007b416f81
* Fix signed/unsigned warning in GrInOrderDrawBuffer.cppGravatar bsalomon@google.com2011-04-26
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@1182 2bbb7eff-a529-9590-31e7-b0007b416f81
* Remove sampler state param from lockKeylessTexture. It didn't serve any ↵Gravatar bsalomon@google.com2011-04-26
| | | | | | | | | | function and gave the false impression that tiling modes were handled on APIs with npot limitations. http://codereview.appspot.com/4444061/ git-svn-id: http://skia.googlecode.com/svn/trunk@1181 2bbb7eff-a529-9590-31e7-b0007b416f81
* Make clear a GrDrawTarget virtual method and implement in GrInOrderDrawBufferGravatar bsalomon@google.com2011-04-25
| | | | | | | | Review URL: http://codereview.appspot.com/4442081/ git-svn-id: http://skia.googlecode.com/svn/trunk@1176 2bbb7eff-a529-9590-31e7-b0007b416f81
* Remove unnecessary BindBuffers. These were needed when we used vertex ↵Gravatar bsalomon@google.com2011-04-25
| | | | | | arrays. Now we always use buffer objects. git-svn-id: http://skia.googlecode.com/svn/trunk@1173 2bbb7eff-a529-9590-31e7-b0007b416f81
* Add lockKeylessTexture() for caching texture without a content key.Gravatar bsalomon@google.com2011-04-25
| | | | | | | | | Review URL: http://codereview.appspot.com/4440065/ git-svn-id: http://skia.googlecode.com/svn/trunk@1172 2bbb7eff-a529-9590-31e7-b0007b416f81