aboutsummaryrefslogtreecommitdiffhomepage
path: root/gpu/src
Commit message (Collapse)AuthorAge
* 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
* Fix dangling ptr when GrRenderTarget outlives its GrTexture representationGravatar bsalomon@google.com2011-04-05
| | | | | | | | | | | | | | Move management of fRenderTarget ptr from GL texture class to base class Minor: Remove redundant GrContext-per-frame debug code in SampleApp.cpp Add GrTexture.cpp to legacy VS2010 vcxproj Review URL: http://codereview.appspot.com/4352051/ git-svn-id: http://skia.googlecode.com/svn/trunk@1061 2bbb7eff-a529-9590-31e7-b0007b416f81
* Add GrTexture.cpp to legacy project filesGravatar bsalomon@google.com2011-04-05
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@1057 2bbb7eff-a529-9590-31e7-b0007b416f81
* Adds read pixels to GrTexture and GrRenderTargetGravatar bsalomon@google.com2011-04-05
| | | | | | | | | Adds SkGrRenderTargetPixelRef for SkBitmaps that are backed by RTs that aren't textures. Adds onReadPixels implementations for SkGr pixel ref types git-svn-id: http://skia.googlecode.com/svn/trunk@1056 2bbb7eff-a529-9590-31e7-b0007b416f81
* always flush accumulated draws before we purge the font cacheGravatar reed@google.com2011-04-04
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@1051 2bbb7eff-a529-9590-31e7-b0007b416f81
* move trimStorage to outer scope, so its memory is still valid later on whenGravatar reed@google.com2011-04-04
| | | | | | | | we reference the newly assigned src pixels. git-svn-id: http://skia.googlecode.com/svn/trunk@1046 2bbb7eff-a529-9590-31e7-b0007b416f81
* Remove dependence on platform GL headers. Remove code that attempts to infer ↵Gravatar bsalomon@google.com2011-04-04
| | | | | | | | GL function pointers on various platforms. Instead add platform-specific implementations for Windows and Mac. (GLX coming) Review URL: http://codereview.appspot.com/4354048/ git-svn-id: http://skia.googlecode.com/svn/trunk@1045 2bbb7eff-a529-9590-31e7-b0007b416f81
* fix mac build of gr unit testGravatar bsalomon@google.com2011-04-01
| | | | | | | | Review URL: http://codereview.appspot.com/4351042/ git-svn-id: http://skia.googlecode.com/svn/trunk@1034 2bbb7eff-a529-9590-31e7-b0007b416f81
* Refactoring the GrGpuGLShaders2 into 2 classes: GrGpuGLShadersGravatar junov@google.com2011-03-31
| | | | | | | | | | | | | and GrGLProgram. The change also contains stubs and placeholders for GrEffect (work in progress), which will extend shader and rendering capabilities in Ganesh. The hash keys for the program cache table have been modified to be able to accomodate variable-length keys, which will be required for GrEffect support. Code review: http://codereview.appspot.com/4309045/ git-svn-id: http://skia.googlecode.com/svn/trunk@1031 2bbb7eff-a529-9590-31e7-b0007b416f81
* Fix signed/unsigned warnings in debug build in flushStencil()Gravatar bsalomon@google.com2011-03-30
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@1028 2bbb7eff-a529-9590-31e7-b0007b416f81
* Add GrResource.cpp to gr_files.mkGravatar bsalomon@google.com2011-03-30
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@1027 2bbb7eff-a529-9590-31e7-b0007b416f81
* Add GrResource base class for ibs, texs, vbs, etc.Gravatar bsalomon@google.com2011-03-30
| | | | | | | | | | Add lostContext() to GrContext. Review URL: http://codereview.appspot.com/4328044/ git-svn-id: http://skia.googlecode.com/svn/trunk@1026 2bbb7eff-a529-9590-31e7-b0007b416f81
* add new file GrPathUtils.cppGravatar reed@google.com2011-03-30
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@1017 2bbb7eff-a529-9590-31e7-b0007b416f81
* Fix ref leak on GrGpu.Gravatar bsalomon@google.com2011-03-29
| | | | | | | | Review URL: http://codereview.appspot.com/4323043/ git-svn-id: http://skia.googlecode.com/svn/trunk@1015 2bbb7eff-a529-9590-31e7-b0007b416f81
* Two optimizations for the tesselated path renderer:Gravatar senorblanco@chromium.org2011-03-29
| | | | | | | | | | | | | | 1) If the path contains a single convex subpath, and we're not using inverted fill modes, skip the tesselation and draw the interpolated path as a triangle fan directly. 2) Use GrDrawTarget.set*SourceToArray(), rather than creating a new AutoReleaseGeometry, saving a copy of the vertex and index data. Review URL: http://codereview.appspot.com/4280076/ git-svn-id: http://skia.googlecode.com/svn/trunk@1014 2bbb7eff-a529-9590-31e7-b0007b416f81
* This CL implements a tesselated path renderer, using GLU's libtess. All of theGravatar senorblanco@chromium.org2011-03-28
| | | | | | | | | | | | | | | | | | | | | fill modes except hairline are supported. Note that the path renderer is not enabled by default; to enable it, replace "GrCreatePathRenderer_none.cpp" with "GrCreatePathRenderer_tesselated.cpp" in skia.gyp, and run gyp_skia, and build. This change also contains a number of build fixes for Win32 (for building SampleApp on VS2008) and Mac (for my ancient Mac Pro which supports GL_EXT_framebuffer_object but not GL_ARB_framebuffer_object). Also, priorityq-heap.c was removed from the SampleApp build, since it's #included by priorityq.c (weird, I know). NB: When this change is rolled into chrome, some modifications to chromium's skia.gyp will be necessary. Review URL: http://codereview.appspot.com/4289072/ git-svn-id: http://skia.googlecode.com/svn/trunk@1012 2bbb7eff-a529-9590-31e7-b0007b416f81
* Add way to determine at link time what path renderer will be used.Gravatar bsalomon@google.com2011-03-25
| | | | | | | | Added mechanism for a custom path renderer to punt and fallback to default path renderer git-svn-id: http://skia.googlecode.com/svn/trunk@1005 2bbb7eff-a529-9590-31e7-b0007b416f81
* Fix direct-to-stencil clippath rendering logic in GrGpu.Gravatar bsalomon@google.com2011-03-24
| | | | | | Review URL: http://codereview.appspot.com/4273104/ git-svn-id: http://skia.googlecode.com/svn/trunk@1001 2bbb7eff-a529-9590-31e7-b0007b416f81
* Rename flag that disables stencil buffer creationGravatar bsalomon@google.com2011-03-24
| | | | | | | | Review URL: http://codereview.appspot.com/4273103/ git-svn-id: http://skia.googlecode.com/svn/trunk@1000 2bbb7eff-a529-9590-31e7-b0007b416f81
* Add GL_CHROMIUM_framebuffer_multisample support.Gravatar bsalomon@google.com2011-03-23
| | | | | | | | Review URL: http://codereview.appspot.com/4287072/ git-svn-id: http://skia.googlecode.com/svn/trunk@984 2bbb7eff-a529-9590-31e7-b0007b416f81
* Remove IMG multisample texture support.Gravatar bsalomon@google.com2011-03-21
| | | | | | | | | This never worked correctly. The texture loses multisample status when the resolve occurs. We never had code to re-establish it. Also, we'd have to handle the case where you resolve but then want to render to it again without clearing. Review URL: http://codereview.appspot.com/4274074/ git-svn-id: http://skia.googlecode.com/svn/trunk@974 2bbb7eff-a529-9590-31e7-b0007b416f81
* Remove old GR_* macros for GL extensions in favor of GrGLDefines.hGravatar bsalomon@google.com2011-03-21
| | | | | | | | | Review URL: http://codereview.appspot.com/4275061/ git-svn-id: http://skia.googlecode.com/svn/trunk@972 2bbb7eff-a529-9590-31e7-b0007b416f81
* Add GR_DLL builds to Ganesh (minimal exports for Chrome multi-dll for now).Gravatar bsalomon@google.com2011-03-21
| | | | | | | | | Review URL: http://codereview.appspot.com/4301044/ git-svn-id: http://skia.googlecode.com/svn/trunk@970 2bbb7eff-a529-9590-31e7-b0007b416f81
* Remove the compile-time selection of the GL implementation based on theGravatar twiz@google.com2011-03-18
| | | | | | | | | | | | | GR_SUPPORT_GLDESKTOP family of macros. Support for the platform is configured dynamically, by querying the fBindingsExported member of active GrGLInterface instance. Review: http://codereview.appspot.com/4298048/ git-svn-id: http://skia.googlecode.com/svn/trunk@960 2bbb7eff-a529-9590-31e7-b0007b416f81
* This CL removes all dependencies on GL headers across all of Ganesh. NewGravatar twiz@google.com2011-03-18
| | | | | | | | | | | GrGLint, etc. types are introduced, and new GR_GL_XXXX constants for use at all GL call-sites. Review: http://codereview.appspot.com/4272061/ git-svn-id: http://skia.googlecode.com/svn/trunk@959 2bbb7eff-a529-9590-31e7-b0007b416f81
* need a separate texture for each maskformat in atlasmgrGravatar reed@google.com2011-03-15
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@942 2bbb7eff-a529-9590-31e7-b0007b416f81
* Add blend constant color and use it for lcd text common case (no fancy blend ↵Gravatar bsalomon@google.com2011-03-15
| | | | | | | | or shaded text) Review URL: http://codereview.appspot.com/4274057/ git-svn-id: http://skia.googlecode.com/svn/trunk@941 2bbb7eff-a529-9590-31e7-b0007b416f81
* Correction of GLES build issue introduced by in revision: Gravatar twiz@google.com2011-03-15
| | | | | | | | | | | http://code.google.com/p/skia/source/detail?r=937 Issue: http://code.google.com/p/skia/issues/detail?id=174 Review: http://codereview.appspot.com/4288047/ git-svn-id: http://skia.googlecode.com/svn/trunk@940 2bbb7eff-a529-9590-31e7-b0007b416f81
* support lcd16 in text atlas (sans shader support)Gravatar reed@google.com2011-03-15
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@939 2bbb7eff-a529-9590-31e7-b0007b416f81
* Implementation of a GL-virtualization layer for Skia. This allows forGravatar twiz@google.com2011-03-14
| | | | | | | | | | | | | | | | environments using skia to specify a GL implementation at run-time, instead of relying on the linker to pull in the appropriate GL impl. A new structure, GrGLInterface is exposed. This struct contains a set of function pointers that should point to an appropriate GL implementation. This change also removes the reliance on GLew on windows builds. Review: http://codereview.appspot.com/4254059/ git-svn-id: http://skia.googlecode.com/svn/trunk@937 2bbb7eff-a529-9590-31e7-b0007b416f81
* Upstreaming changes from android.Gravatar djsollen@google.com2011-03-14
| | | | | | | | | | - fix compile warnings in the GPU code - upstream android specific code (ifdef protected) - fail gracefully when a custom allocator fails git-svn-id: http://skia.googlecode.com/svn/trunk@936 2bbb7eff-a529-9590-31e7-b0007b416f81
* Remove "true ||" in conditional that was accidentally checked in.Gravatar bsalomon@google.com2011-03-10
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@916 2bbb7eff-a529-9590-31e7-b0007b416f81
* Delete GL tex ID when last of GrGLTexture or GrGLRenderTarget that reference ↵Gravatar bsalomon@google.com2011-03-10
| | | | | | it is destroyed git-svn-id: http://skia.googlecode.com/svn/trunk@915 2bbb7eff-a529-9590-31e7-b0007b416f81
* Make flush discardable and lazily reset contextGravatar bsalomon@google.com2011-03-10
| | | | | | | | Review URL: http://codereview.appspot.com/4259059/ git-svn-id: http://skia.googlecode.com/svn/trunk@914 2bbb7eff-a529-9590-31e7-b0007b416f81
* If we compute an exact clip bounds prefer it over user passed bounds. Also ↵Gravatar bsalomon@google.com2011-03-08
| | | | | | | | | | clarify that bounds are conservative. Review URL: http://codereview.appspot.com/4254063/ git-svn-id: http://skia.googlecode.com/svn/trunk@909 2bbb7eff-a529-9590-31e7-b0007b416f81
* Add filters to organize the VS project. Remove unused Gr files.Gravatar bsalomon@google.com2011-03-08
| | | | | | Review URL http://codereview.appspot.com/4243064/ git-svn-id: http://skia.googlecode.com/svn/trunk@904 2bbb7eff-a529-9590-31e7-b0007b416f81
* add LF at end of file (dumb warning)Gravatar reed@google.com2011-03-08
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@902 2bbb7eff-a529-9590-31e7-b0007b416f81