aboutsummaryrefslogtreecommitdiffhomepage
path: root/gpu/src/GrGpuGL.cpp
Commit message (Collapse)AuthorAge
* Move gpu/include/* to include/gpu and gpu/src/* to src/gpuGravatar bsalomon@google.com2011-10-12
| | | | | | | | Review URL: http://codereview.appspot.com/5250070/ git-svn-id: http://skia.googlecode.com/svn/trunk@2471 2bbb7eff-a529-9590-31e7-b0007b416f81
* Gpu blend optimizations, handle more xfer modes with fractional pixel coverageGravatar bsalomon@google.com2011-10-12
| | | | | | | | Review URL: http://codereview.appspot.com/5237062/ git-svn-id: http://skia.googlecode.com/svn/trunk@2464 2bbb7eff-a529-9590-31e7-b0007b416f81
* Fix some VS2010 warningsGravatar bsalomon@google.com2011-09-29
| | | | | | | | | Review URL: http://codereview.appspot.com/5155043 git-svn-id: http://skia.googlecode.com/svn/trunk@2380 2bbb7eff-a529-9590-31e7-b0007b416f81
* Fix signed/unsigned warning in GLCaps::printGravatar bsalomon@google.com2011-09-23
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@2319 2bbb7eff-a529-9590-31e7-b0007b416f81
* Put caps in a struct, move up to GrDrawTargetGravatar bsalomon@google.com2011-09-22
| | | | | | | | Review URL: http://codereview.appspot.com/5088049 git-svn-id: http://skia.googlecode.com/svn/trunk@2314 2bbb7eff-a529-9590-31e7-b0007b416f81
* Cleanup handling of GL versions, fix function namesGravatar bsalomon@google.com2011-09-22
| | | | | | | | Review URL: http://codereview.appspot.com/5097044/ git-svn-id: http://skia.googlecode.com/svn/trunk@2308 2bbb7eff-a529-9590-31e7-b0007b416f81
* Make GrGpuGL release its resources before GrGLInterface is released.Gravatar bsalomon@google.com2011-09-16
| | | | | | | | | Forward declare GrGLInterface in GrGLDefaultInterface_none file Review URL: http://codereview.appspot.com/5030049/ git-svn-id: http://skia.googlecode.com/svn/trunk@2278 2bbb7eff-a529-9590-31e7-b0007b416f81
* Rename existing nonpreserving reallocs to reset, add reset to SkAutoMalloc, ↵Gravatar bsalomon@google.com2011-09-02
| | | | | | | | | use reset in GrBufferAllocPool Review URL: http://codereview.appspot.com/4951058/ git-svn-id: http://skia.googlecode.com/svn/trunk@2215 2bbb7eff-a529-9590-31e7-b0007b416f81
* Remove unneeded #defineGravatar bsalomon@google.com2011-09-02
| | | | | | | Review URL: http://codereview.appspot.com/4973053/ git-svn-id: http://skia.googlecode.com/svn/trunk@2213 2bbb7eff-a529-9590-31e7-b0007b416f81
* Add optional per-gl-func client callback.Gravatar bsalomon@google.com2011-09-01
| | | | | | | | Review URL: http://codereview.appspot.com/4964055/ git-svn-id: http://skia.googlecode.com/svn/trunk@2207 2bbb7eff-a529-9590-31e7-b0007b416f81
* Fix GPU assumption that clipstack begins with intersect or replace.Gravatar bsalomon@google.com2011-08-29
| | | | | | | | Review URL: http://codereview.appspot.com/4977043/ git-svn-id: http://skia.googlecode.com/svn/trunk@2183 2bbb7eff-a529-9590-31e7-b0007b416f81
* Correctly determine whether HW AA lines can be usedGravatar bsalomon@google.com2011-08-23
| | | | | | | | Review URL: http://codereview.appspot.com/4937049/ git-svn-id: http://skia.googlecode.com/svn/trunk@2162 2bbb7eff-a529-9590-31e7-b0007b416f81
* Get rid of createRenderTargetFrom3DAPIState and associated glGets necessary ↵Gravatar bsalomon@google.com2011-08-19
| | | | | | | | | | to support it. Review URL: http://codereview.appspot.com/4928041/ git-svn-id: http://skia.googlecode.com/svn/trunk@2144 2bbb7eff-a529-9590-31e7-b0007b416f81
* Make GrGLInterface a per-GrContext refcounted object rather than a globalGravatar bsalomon@google.com2011-08-19
| | | | | | | | Review URL: http://codereview.appspot.com/4901046/ git-svn-id: http://skia.googlecode.com/svn/trunk@2140 2bbb7eff-a529-9590-31e7-b0007b416f81
* Fix some ref leaksGravatar bsalomon@google.com2011-08-09
| | | | | | | | Review URL: http://codereview.appspot.com/4837068/ git-svn-id: http://skia.googlecode.com/svn/trunk@2082 2bbb7eff-a529-9590-31e7-b0007b416f81
* fix bug in r2077Gravatar bsalomon@google.com2011-08-09
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@2078 2bbb7eff-a529-9590-31e7-b0007b416f81
* Suppress uninit warning.Gravatar bsalomon@google.com2011-08-09
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@2077 2bbb7eff-a529-9590-31e7-b0007b416f81
* Use a single stencil buffer for a given width,height,samplecountGravatar bsalomon@google.com2011-08-08
| | | | | | | Review URL: http://codereview.appspot.com/4854044/ git-svn-id: http://skia.googlecode.com/svn/trunk@2061 2bbb7eff-a529-9590-31e7-b0007b416f81
* Make RT & TEX base classes aware of NPOT/min-RT bloated sizeGravatar bsalomon@google.com2011-08-08
| | | | | | | Review URL: http://codereview.appspot.com/4849045/ git-svn-id: http://skia.googlecode.com/svn/trunk@2057 2bbb7eff-a529-9590-31e7-b0007b416f81
* Fixes for iOS / Ganesh (consistent fs/vs uni precision decl and don't use ↵Gravatar bsalomon@google.com2011-08-05
| | | | | | | | | stencil-only fbo for clear) Review URL: http://codereview.appspot.com/4850043/ git-svn-id: http://skia.googlecode.com/svn/trunk@2050 2bbb7eff-a529-9590-31e7-b0007b416f81
* Fix dumb copy/paste errorGravatar bsalomon@google.com2011-08-05
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@2049 2bbb7eff-a529-9590-31e7-b0007b416f81
* Add GrStencilBuffer as a separate resource type from render targetGravatar bsalomon@google.com2011-08-03
| | | | | | | | | This is a resubmission of the changes in r2026 with fixes for FBO completeness issues. Review URL: http://codereview.appspot.com/4837046/ git-svn-id: http://skia.googlecode.com/svn/trunk@2035 2bbb7eff-a529-9590-31e7-b0007b416f81
* Revert r2026 due to bot failuresGravatar bsalomon@google.com2011-08-02
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@2027 2bbb7eff-a529-9590-31e7-b0007b416f81
* Create a separate GrStencilBuffer class apart from GrRenderTarget.Gravatar bsalomon@google.com2011-08-02
| | | | | | | | Review URL: http://codereview.appspot.com/4837046/ git-svn-id: http://skia.googlecode.com/svn/trunk@2026 2bbb7eff-a529-9590-31e7-b0007b416f81
* 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
* Split texture upload out from onCreateTextureGravatar bsalomon@google.com2011-08-01
| | | | | | | | Review URL: http://codereview.appspot.com/4809060/ git-svn-id: http://skia.googlecode.com/svn/trunk@2003 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
* 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
* 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
* flip Y in uploads to bottom-up textures (and add gm test)Gravatar bsalomon@google.com2011-07-18
| | | | | | | | Review URL: http://codereview.appspot.com/4756043/ git-svn-id: http://skia.googlecode.com/svn/trunk@1882 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
* 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
* 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
* 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
* Remember last successful stencil formatGravatar bsalomon@google.com2011-06-17
| | | | | | | | Review URL: http://codereview.appspot.com/4625048/ git-svn-id: http://skia.googlecode.com/svn/trunk@1640 2bbb7eff-a529-9590-31e7-b0007b416f81
* Fix self-assignment Gravatar bsalomon@google.com2011-06-17
| | | | | | | | Review URL: http://codereview.appspot.com/4631047/ git-svn-id: http://skia.googlecode.com/svn/trunk@1637 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
* Set texture dirty flag only when texture has really changedGravatar bsalomon@google.com2011-06-15
| | | | | | | | Review URL: http://codereview.appspot.com/4571073/ git-svn-id: http://skia.googlecode.com/svn/trunk@1592 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
* 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
* drop extraneous GrPrintfsGravatar reed@google.com2011-06-13
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@1572 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
* 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
* 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
* 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
* 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