aboutsummaryrefslogtreecommitdiffhomepage
path: root/gpu/src
Commit message (Collapse)AuthorAge
* 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
* 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
* 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
* 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
* 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
* 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
* Move alpha-ramp AA to GrContext, detect cases when AA is applied via other ↵Gravatar bsalomon@google.com2011-04-25
| | | | | | | | methods (smooth lines, MSAA) or rect falls on integer coords and skip the alpha ramp path. Use pre-fab index buffer for alpha-ramped fill rects and stroke rects. Review URL: http://codereview.appspot.com/4449047/ git-svn-id: http://skia.googlecode.com/svn/trunk@1169 2bbb7eff-a529-9590-31e7-b0007b416f81
* Fix copy/paste bug that causes stage 0 sample mode to be used for all stagesGravatar bsalomon@google.com2011-04-22
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@1168 2bbb7eff-a529-9590-31e7-b0007b416f81
* Fix alignment issues with stack allocated memory allocated as bytes but used ↵Gravatar bsalomon@google.com2011-04-20
| | | | | | | | | | to hold other types. Review URL: http://codereview.appspot.com/4435060/ git-svn-id: http://skia.googlecode.com/svn/trunk@1162 2bbb7eff-a529-9590-31e7-b0007b416f81
* Fix mask from change r1155. (I blame the mistake on skipping afternoon ↵Gravatar bsalomon@google.com2011-04-20
| | | | | | coffee :)) git-svn-id: http://skia.googlecode.com/svn/trunk@1161 2bbb7eff-a529-9590-31e7-b0007b416f81
* Adds a build flag for GL to never use vertex attributes that don't have ↵Gravatar bsalomon@google.com2011-04-19
| | | | | | | | | | per-vertex values. Also promotes the ATTRIBUTE_MATRIX flag that was local to cpp files to the public config file. Review URL: http://codereview.appspot.com/4434057/ git-svn-id: http://skia.googlecode.com/svn/trunk@1155 2bbb7eff-a529-9590-31e7-b0007b416f81
* remove static from template functionsGravatar reed@google.com2011-04-19
| | | | | | | | http://codereview.appspot.com/4437055/ git-svn-id: http://skia.googlecode.com/svn/trunk@1151 2bbb7eff-a529-9590-31e7-b0007b416f81
* Suppress warnings in GrBufferAllocPoolGravatar bsalomon@google.com2011-04-18
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@1148 2bbb7eff-a529-9590-31e7-b0007b416f81
* Add newline to GrStencil.cpp to prevent warning.Gravatar ctguil@chromium.org2011-04-18
| | | | | | Review URL: http://codereview.appspot.com/4442061 git-svn-id: http://skia.googlecode.com/svn/trunk@1146 2bbb7eff-a529-9590-31e7-b0007b416f81
* http://codereview.appspot.com/4373057/Gravatar Scroggo2011-04-15
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@1135 2bbb7eff-a529-9590-31e7-b0007b416f81
* rename SkDevice::eraseColor to clear and make virtual.Gravatar bsalomon@google.com2011-04-14
| | | | | | | | | | Properly flush in GrContext before calling GrGpu::clear() Review URL: http://codereview.appspot.com/4419043/ git-svn-id: http://skia.googlecode.com/svn/trunk@1130 2bbb7eff-a529-9590-31e7-b0007b416f81
* rename XHelper members to onXGravatar bsalomon@google.com2011-04-12
| | | | | | | | Review URL: http://codereview.appspot.com/4380056/ git-svn-id: http://skia.googlecode.com/svn/trunk@1113 2bbb7eff-a529-9590-31e7-b0007b416f81
* Use has_gl_extension_from_string in GrGLDefaultInterface_win.cpp (before the ↵Gravatar bsalomon@google.com2011-04-12
| | | | | | GL iface is installed). git-svn-id: http://skia.googlecode.com/svn/trunk@1112 2bbb7eff-a529-9590-31e7-b0007b416f81
* Use min of max_texture and max_renderbuffer size when calling fbo_testGravatar bsalomon@google.com2011-04-11
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@1110 2bbb7eff-a529-9590-31e7-b0007b416f81
* Add APIs and plumbing for external rendertaret-textures w/ and w/out MSAA.Gravatar bsalomon@google.com2011-04-11
| | | | | | | | Review URL: http://codereview.appspot.com/4388049/ git-svn-id: http://skia.googlecode.com/svn/trunk@1102 2bbb7eff-a529-9590-31e7-b0007b416f81
* Always bind packed depth stencil formats to both attacment pointsGravatar bsalomon@google.com2011-04-08
| | | | | | | | Review URL: http://codereview.appspot.com/4372048/ git-svn-id: http://skia.googlecode.com/svn/trunk@1087 2bbb7eff-a529-9590-31e7-b0007b416f81
* fix use of smooth linesGravatar bsalomon@google.com2011-04-08
| | | | | | | Review URL:http://codereview.appspot.com/4370050/ git-svn-id: http://skia.googlecode.com/svn/trunk@1085 2bbb7eff-a529-9590-31e7-b0007b416f81
* During ganesh tear-down, it may be the case that the vertex and index buffersGravatar twiz@google.com2011-04-07
| | | | | | | | | | | are those currently bound to the HW geometry state. We should not assert under these conditions. Review: http://codereview.appspot.com/4365046/ git-svn-id: http://skia.googlecode.com/svn/trunk@1076 2bbb7eff-a529-9590-31e7-b0007b416f81
* Add isMultisampled() to GrRenderTarget. Cleanup MSAA vs smooth lines logic ↵Gravatar bsalomon@google.com2011-04-06
| | | | | | | | | | | | in GrGpuGL. Skia issue: 178 Review URL: http://codereview.appspot.com/4382041/ git-svn-id: http://skia.googlecode.com/svn/trunk@1067 2bbb7eff-a529-9590-31e7-b0007b416f81