aboutsummaryrefslogtreecommitdiffhomepage
path: root/gpu/include
Commit message (Collapse)AuthorAge
...
* Remove unnecessary dirty clip flag in GrGpu, remove getUsableStencilBits()Gravatar bsalomon@google.com2011-08-01
| | | | | | | | Review URL: http://codereview.appspot.com/4828050/ git-svn-id: http://skia.googlecode.com/svn/trunk@2011 2bbb7eff-a529-9590-31e7-b0007b416f81
* cleanup GrGLTexture / GrGLRenderTarget cons. Make GrRenderTarget aware of ↵Gravatar bsalomon@google.com2011-07-29
| | | | | | | | | | its msaa sample count. Review URL: http://codereview.appspot.com/4833045/ git-svn-id: http://skia.googlecode.com/svn/trunk@1996 2bbb7eff-a529-9590-31e7-b0007b416f81
* move render target decls / defs to their own headers / srcsGravatar bsalomon@google.com2011-07-29
| | | | | | | | Review URL: http://codereview.appspot.com/4806058/ git-svn-id: http://skia.googlecode.com/svn/trunk@1995 2bbb7eff-a529-9590-31e7-b0007b416f81
* Move GL headers out of public include dirGravatar bsalomon@google.com2011-07-29
| | | | | | | | Review URL: http://codereview.appspot.com/4837041/ git-svn-id: http://skia.googlecode.com/svn/trunk@1992 2bbb7eff-a529-9590-31e7-b0007b416f81
* Automatic update of all copyright notices to reflect new license terms.Gravatar epoger@google.com2011-07-28
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | I have manually examined all of these diffs and restored a few files that seem to require manual adjustment. The following files still need to be modified manually, in a separate CL: android_sample/SampleApp/AndroidManifest.xml android_sample/SampleApp/res/layout/layout.xml android_sample/SampleApp/res/menu/sample.xml android_sample/SampleApp/res/values/strings.xml android_sample/SampleApp/src/com/skia/sampleapp/SampleApp.java android_sample/SampleApp/src/com/skia/sampleapp/SampleView.java experimental/CiCarbonSampleMain.c experimental/CocoaDebugger/main.m experimental/FileReaderApp/main.m experimental/SimpleCocoaApp/main.m experimental/iOSSampleApp/Shared/SkAlertPrompt.h experimental/iOSSampleApp/Shared/SkAlertPrompt.m experimental/iOSSampleApp/SkiOSSampleApp-Base.xcconfig experimental/iOSSampleApp/SkiOSSampleApp-Debug.xcconfig experimental/iOSSampleApp/SkiOSSampleApp-Release.xcconfig gpu/src/android/GrGLDefaultInterface_android.cpp gyp/common.gypi gyp_skia include/ports/SkHarfBuzzFont.h include/views/SkOSWindow_wxwidgets.h make.bat make.py src/opts/memset.arm.S src/opts/memset16_neon.S src/opts/memset32_neon.S src/opts/opts_check_arm.cpp src/ports/SkDebug_brew.cpp src/ports/SkMemory_brew.cpp src/ports/SkOSFile_brew.cpp src/ports/SkXMLParser_empty.cpp src/utils/ios/SkImageDecoder_iOS.mm src/utils/ios/SkOSFile_iOS.mm src/utils/ios/SkStream_NSData.mm tests/FillPathTest.cpp Review URL: http://codereview.appspot.com/4816058 git-svn-id: http://skia.googlecode.com/svn/trunk@1982 2bbb7eff-a529-9590-31e7-b0007b416f81
* Make GrTextureCache into a generic GrResource cache. Also some GrContext ↵Gravatar bsalomon@google.com2011-07-26
| | | | | | | | | texture interface cleanup. http://codereview.appspot.com/4815055/ git-svn-id: http://skia.googlecode.com/svn/trunk@1965 2bbb7eff-a529-9590-31e7-b0007b416f81
* Reapply r1951.Gravatar bsalomon@google.com2011-07-26
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@1959 2bbb7eff-a529-9590-31e7-b0007b416f81
* Revert "Add sizeInBytes to GrResource, make GrRenderTarget aware of its ↵Gravatar vandebo@chromium.org2011-07-26
| | | | | | | | | | | | pixel config (r1951)" Temporarily revert this change in order to roll other changes into Chrome. TBR=bsalomon@google.com Review URL: http://codereview.appspot.com/4807051 git-svn-id: http://skia.googlecode.com/svn/trunk@1958 2bbb7eff-a529-9590-31e7-b0007b416f81
* Add sizeInBytes to GrResource, make GrRenderTarget aware of its pixel configGravatar bsalomon@google.com2011-07-25
| | | | | | | | Review URL: http://codereview.appspot.com/4802058/ git-svn-id: http://skia.googlecode.com/svn/trunk@1951 2bbb7eff-a529-9590-31e7-b0007b416f81
* convolve GrRefCnt and SkRefCntGravatar reed@google.com2011-07-15
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@1873 2bbb7eff-a529-9590-31e7-b0007b416f81
* Remove some cruft from SampleApp.cppGravatar bsalomon@google.com2011-07-14
| | | | | | | | Review URL: http://codereview.appspot.com/4724042 git-svn-id: http://skia.googlecode.com/svn/trunk@1858 2bbb7eff-a529-9590-31e7-b0007b416f81
* Updated SkUIView to use the current code, added a default gl interface for iosGravatar yangsu@google.com2011-07-13
| | | | | | | http://codereview.appspot.com/4717043/ git-svn-id: http://skia.googlecode.com/svn/trunk@1855 2bbb7eff-a529-9590-31e7-b0007b416f81
* Remove unused SkGpuDevice functions, add GrRenderTarget handle gettersGravatar bsalomon@google.com2011-07-13
| | | | | | | | Code Review: http://codereview.appspot.com/4718041/ git-svn-id: http://skia.googlecode.com/svn/trunk@1854 2bbb7eff-a529-9590-31e7-b0007b416f81
* GPU-based blur cleanup. Clean up some issues raised in code review:Gravatar senorblanco@chromium.org2011-07-12
| | | | | | | | | | | | | | | | | - convolveRect() is too low-level; made it private and exposed convolveInX() and convolveInY() instead - added GrAutoTextureEntry to automatically unlock a texture entry - the clipping and bounder checks were returning false from drawWithGPUMaskFilter(), causing the software blur to kick in; return true instead - the Windows build was giving a spurious warning about reading an uninitialized variable; rearrange the code to fix it Review URL: http://codereview.appspot.com/4710042/ git-svn-id: http://skia.googlecode.com/svn/trunk@1842 2bbb7eff-a529-9590-31e7-b0007b416f81
* GPU-based Gaussian blur.Gravatar senorblanco@chromium.org2011-07-08
| | | | | | | | | | | | | | | | This is a first stab at implementing a GPU-based Gaussian blur in Ganesh. The convolution shader is implemented as a new filtering mode. There are several known issues: - no support for blur types other than "normal" - FBO truncation problem at high zoom values - uses bilinear for upsampling instead of Mitchell Review URL: http://codereview.appspot.com/4645082/ git-svn-id: http://skia.googlecode.com/svn/trunk@1830 2bbb7eff-a529-9590-31e7-b0007b416f81
* Fix div by zero in GPU degenerate radials (and add sample and gm baselines)Gravatar bsalomon@google.com2011-07-07
| | | | | | | Review URL: http://codereview.appspot.com/4675062/ git-svn-id: http://skia.googlecode.com/svn/trunk@1817 2bbb7eff-a529-9590-31e7-b0007b416f81
* Reduce gets of ext string and check validity of stencil format enumsGravatar bsalomon@google.com2011-07-06
| | | | | | | | Review URL: http://codereview.appspot.com/4678043/ git-svn-id: http://skia.googlecode.com/svn/trunk@1801 2bbb7eff-a529-9590-31e7-b0007b416f81
* Indexed drawing for paths with multiple contoursGravatar bsalomon@google.com2011-07-06
| | | | | | | | Review URL: http://codereview.appspot.com/4648071/ git-svn-id: http://skia.googlecode.com/svn/trunk@1800 2bbb7eff-a529-9590-31e7-b0007b416f81
* Don't send NULL buffer data hint in chromeGravatar bsalomon@google.com2011-07-01
| | | | | | | | Review URL: http://codereview.appspot.com/4657067/ git-svn-id: http://skia.googlecode.com/svn/trunk@1778 2bbb7eff-a529-9590-31e7-b0007b416f81
* Tesselate path once for tiled offscreen AAGravatar bsalomon@google.com2011-07-01
| | | | | | | Review URL: http://codereview.appspot.com/4661062/ git-svn-id: http://skia.googlecode.com/svn/trunk@1777 2bbb7eff-a529-9590-31e7-b0007b416f81
* Remove GrAuto*Malloc, replace with SkAuto*MallocGravatar bsalomon@google.com2011-06-30
| | | | | | | | Review URL: http://codereview.appspot.com/4629088 git-svn-id: http://skia.googlecode.com/svn/trunk@1774 2bbb7eff-a529-9590-31e7-b0007b416f81
* Adding the notion of a volatile bitmap to SkBitmap. Gravatar junov@google.com2011-06-30
| | | | | | | | | | | | | | | | | Volatility is a hint that indicates that the contents of a bitmap are ephemeral. SkGpuDevice will not preserve volatile bitmaps in its texture cache, and will use textures from a pool of keyless (recyclable) textures to avoid the performance hit of texture allocation and release. A subsequent change is required in webkit in order to take advantage of this optimization. putImageData, and other methods that create temporary bitmaps will have to mark their bitmaps as volatile. before rendering them through skia. git-svn-id: http://skia.googlecode.com/svn/trunk@1769 2bbb7eff-a529-9590-31e7-b0007b416f81
* Remove global curve subdivision tolerance from GrPathUtils.Gravatar tomhudson@google.com2011-06-24
| | | | | | | | | | Put in framework for changing curve subdivision tolerance when rendering offscreen AA tiles; however, comment out actual tolerance changes because of possible quality issues with simple circles (q.v. Arcs slide of SampleApp). git-svn-id: http://skia.googlecode.com/svn/trunk@1702 2bbb7eff-a529-9590-31e7-b0007b416f81
* Add support for 8 bits/component glyphs, toGravatar caryclark@google.com2011-06-22
| | | | | | | | | | | | | | | | | | | | better match the fonts produced by CoreText on OS/X. M include/config/SkUserConfig.h M include/core/SkMask.h M include/core/SkScalerContext.h M src/core/SkBlitter_ARGB32.cpp M src/core/SkScalerContext.cpp M src/core/SkPaint.cpp M src/gpu/SkGrFontScaler.cpp M src/ports/SkFontHost_mac_coretext.cpp M src/ports/SkFontHost_mac.cpp M gpu/include/GrTypes.h M gpu/src/GrAtlas.cpp git-svn-id: http://skia.googlecode.com/svn/trunk@1672 2bbb7eff-a529-9590-31e7-b0007b416f81
* Initialize members to satisfy coverity.Gravatar bsalomon@google.com2011-06-21
| | | | | | | | Code review: http://codereview.appspot.com/4657043/ git-svn-id: http://skia.googlecode.com/svn/trunk@1665 2bbb7eff-a529-9590-31e7-b0007b416f81
* Refactor GrDrawTarget vertex/index apiGravatar bsalomon@google.com2011-06-21
| | | | | | | | Review URL: http://codereview.appspot.com/4631056/ git-svn-id: http://skia.googlecode.com/svn/trunk@1662 2bbb7eff-a529-9590-31e7-b0007b416f81
* Remove redundant GrTouchGesture. Switch its only user to SkTouchGesture.Gravatar Scroggo2011-06-17
| | | | | | | Review at http://codereview.appspot.com/4636045/ git-svn-id: http://skia.googlecode.com/svn/trunk@1636 2bbb7eff-a529-9590-31e7-b0007b416f81
* First pass at improving temporary tex/rt reuseGravatar bsalomon@google.com2011-06-16
| | | | | | | | | Review URL: http://codereview.appspot.com/4625043/ git-svn-id: http://skia.googlecode.com/svn/trunk@1616 2bbb7eff-a529-9590-31e7-b0007b416f81
* Rename GrGLBug to GrGLCapability.Gravatar tomhudson@google.com2011-06-16
| | | | | | | | | Default all architectures to kProbe_GrGLCapability. Use new facilities better from GrGpuGL.cpp git-svn-id: http://skia.googlecode.com/svn/trunk@1613 2bbb7eff-a529-9590-31e7-b0007b416f81
* Avoid checking to see if a bool is less than zero.Gravatar tomhudson@google.com2011-06-15
| | | | | | | | Create a symbolic name for -1 when it means "don't know, probe at runtime". git-svn-id: http://skia.googlecode.com/svn/trunk@1606 2bbb7eff-a529-9590-31e7-b0007b416f81
* Implement edge AA for concave polys in the tesselated path renderer.Gravatar senorblanco@chromium.org2011-06-15
| | | | | | | | Review URL: http://codereview.appspot.com/4571072/ git-svn-id: http://skia.googlecode.com/svn/trunk@1600 2bbb7eff-a529-9590-31e7-b0007b416f81
* Enable SSAA on inverse filled pathsGravatar bsalomon@google.com2011-06-14
| | | | | | | | Review URL: http://codereview.appspot.com/4613044/ git-svn-id: http://skia.googlecode.com/svn/trunk@1584 2bbb7eff-a529-9590-31e7-b0007b416f81
* FBO probing at Context startup is very expensive. This patch removes theGravatar tomhudson@google.com2011-06-14
| | | | | | | | | | | | | test of whether FBOs work at all, and adds parameters to the GrGLInterface so that values can be passed into the Context creation routines instead of executing the probes. The GrGLInterface now defaults to run FBO tests on Android (since hardware varies), but assumes success on desktop and software platforms. git-svn-id: http://skia.googlecode.com/svn/trunk@1582 2bbb7eff-a529-9590-31e7-b0007b416f81
* Fix text-as-path with skshader on gpuGravatar bsalomon@google.com2011-06-13
| | | | | | | | Review URL: http://codereview.appspot.com/4576057/ git-svn-id: http://skia.googlecode.com/svn/trunk@1575 2bbb7eff-a529-9590-31e7-b0007b416f81
* uint32_t -> int for texture extentsGravatar bsalomon@google.com2011-06-13
| | | | | | | | Review URL: http://codereview.appspot.com/4584053/ git-svn-id: http://skia.googlecode.com/svn/trunk@1574 2bbb7eff-a529-9590-31e7-b0007b416f81
* Consider hw render target limit for offscreen supersample and tileGravatar bsalomon@google.com2011-06-13
| | | | | | | | Review URL: http://codereview.appspot.com/4575041/ git-svn-id: http://skia.googlecode.com/svn/trunk@1568 2bbb7eff-a529-9590-31e7-b0007b416f81
* Adding functionality for purgin graphics resource handlesGravatar junov@google.com2011-06-08
| | | | | | | | | | | This will allow a fix to WebKit for preventing a crash when the graphics context is destroyed before the GrContext BUG=http://code.google.com/p/chromium/issues/detail?id=85309 git-svn-id: http://skia.googlecode.com/svn/trunk@1551 2bbb7eff-a529-9590-31e7-b0007b416f81
* include SkTypes.hGravatar reed@google.com2011-06-01
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@1474 2bbb7eff-a529-9590-31e7-b0007b416f81
* Fix copy/paste bug that checks same stencil field twice in isDisabled().Gravatar bsalomon@google.com2011-05-27
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@1442 2bbb7eff-a529-9590-31e7-b0007b416f81
* Fixed point no longer crashes when GL enabled in gm tests.Gravatar bungeman@google.com2011-05-20
| | | | | | | http://codereview.appspot.com/4532073/ git-svn-id: http://skia.googlecode.com/svn/trunk@1394 2bbb7eff-a529-9590-31e7-b0007b416f81
* Tag GrPrintf with GR_API so that it is exposed to users of a Skia DLLGravatar bsalomon@google.com2011-05-20
| | | | | | | Review URL: http://codereview.appspot.com/4530059/ git-svn-id: http://skia.googlecode.com/svn/trunk@1392 2bbb7eff-a529-9590-31e7-b0007b416f81
* Add dual source blending support for proper blending with coverage.Gravatar bsalomon@google.com2011-05-20
| | | | | | | | Review URL: http://codereview.appspot.com/4535088/ git-svn-id: http://skia.googlecode.com/svn/trunk@1390 2bbb7eff-a529-9590-31e7-b0007b416f81
* Remove createPlatformRenderTarget, undeprecate createRenderTargetFrom3DAPIStateGravatar bsalomon@google.com2011-05-19
| | | | | | | | Review URL: http://codereview.appspot.com/4552053/ git-svn-id: http://skia.googlecode.com/svn/trunk@1387 2bbb7eff-a529-9590-31e7-b0007b416f81
* The plain Makefile was using -Wall, but the gyp build wasn't. This CL turns onGravatar senorblanco@chromium.org2011-05-19
| | | | | | | | | | | | | | | | | | | -Wall -Wextra and -Wno-unused in common.gypi. This revealed a lot of warnings (and some actual bugs), all of which I fixed here. This is pretty mindless stuff for the most part (order of intialization, missing initializers, && within ||, etc), but will allow us to build cleanly with -Wall and -Wextra (and -Werror, if we so choose). I put defaults into switches that were missing cases. I could put in the actual missing enums instead if that's desired. I could also assert on missing enums instead of break, if that's desired. I wasn't sure how to test the stuff in "animator", so that should be looked at a bit more closely. Review URL: http://codereview.appspot.com/4547055/ git-svn-id: http://skia.googlecode.com/svn/trunk@1386 2bbb7eff-a529-9590-31e7-b0007b416f81
* Batch up draws into triangle fans as large as possible when drawing convexGravatar senorblanco@chromium.org2011-05-19
| | | | | | | | | | | | | edge AA polys, so we minimize state changes and GL calls. This requires querying GL for the maximum number of fragment uniforms. It also makes the shader generator produce custom shaders for the number of relevant edges. This gives a ~5X speedup on the "Shapes" SampleApp. Review URL: http://codereview.appspot.com/4536070/ git-svn-id: http://skia.googlecode.com/svn/trunk@1380 2bbb7eff-a529-9590-31e7-b0007b416f81
* Fix uninit of mask varGravatar bsalomon@google.com2011-05-18
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@1369 2bbb7eff-a529-9590-31e7-b0007b416f81
* Use coverage stages for supersample AA resolve, edgeAA, and glyph masks. ↵Gravatar bsalomon@google.com2011-05-17
| | | | | | | | | | Expose a mask stage through GrPaint Review URL: http://codereview.appspot.com/4548048/ git-svn-id: http://skia.googlecode.com/svn/trunk@1356 2bbb7eff-a529-9590-31e7-b0007b416f81
* Removing remnants of GrGLEffect.Gravatar junov@google.com2011-05-17
| | | | | | | | | Bug: http://code.google.com/p/skia/issues/detail?id=264 Code review: http://codereview.appspot.com/4517073/ git-svn-id: http://skia.googlecode.com/svn/trunk@1350 2bbb7eff-a529-9590-31e7-b0007b416f81
* 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