aboutsummaryrefslogtreecommitdiffhomepage
path: root/gpu/src/GrGpuGL.h
Commit message (Collapse)AuthorAge
* 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
* 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
* 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
* 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
* 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
* 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
* 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
* 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
* 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
* 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
* 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
* 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
* 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
* 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
* 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
* 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
* 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
* 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
* 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
* 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
* 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
* 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
* Add support for clipstack to Gr. GrClip is now a list of rects and paths ↵Gravatar bsalomon@google.com2011-03-03
| | | | | | with set operations to combine them. The stencil buffer is used to perform the set operations to put the clip into the stencil buffer. Building Gr's clip from Skia's clipStack is currently disabled due to the fact that Skia's clipStack is relative to the root layer not the current layer. This will be fixed in a subsequent CL. git-svn-id: http://skia.googlecode.com/svn/trunk@878 2bbb7eff-a529-9590-31e7-b0007b416f81
* Make a separate path renderer object. Move enum types to GrTypes.hGravatar bsalomon@google.com2011-02-22
| | | | | | | | Review URL http://codereview.appspot.com/4167067/ git-svn-id: http://skia.googlecode.com/svn/trunk@829 2bbb7eff-a529-9590-31e7-b0007b416f81
* Reduce glGets for stencil bits.Gravatar bsalomon@google.com2011-02-18
| | | | | | | | Clean up GL vs Gr rect conventions for viewport and scissor. Review URL: http://codereview.appspot.com/4185056/ git-svn-id: http://skia.googlecode.com/svn/trunk@813 2bbb7eff-a529-9590-31e7-b0007b416f81
* Hide alloc size vs content size below APIGravatar bsalomon@google.com2011-02-17
| | | | | | | Remove old gl shaders class Move texture matrix to sampler class git-svn-id: http://skia.googlecode.com/svn/trunk@808 2bbb7eff-a529-9590-31e7-b0007b416f81
* Refactor how Gr handles vertex and index data. GrGpu and GrInOrderDrawBuffer ↵Gravatar bsalomon@google.com2011-02-14
| | | | | | | | both GrBufferAllocPool to manage reserved and set-to-array vertex and index data. rietveld issue 4188049 git-svn-id: http://skia.googlecode.com/svn/trunk@786 2bbb7eff-a529-9590-31e7-b0007b416f81
* git-svn-id: http://skia.googlecode.com/svn/trunk@783 ↵Gravatar bsalomon@google.com2011-02-11
| | | | 2bbb7eff-a529-9590-31e7-b0007b416f81
* fixes for some warnings:Gravatar reed@google.com2011-01-25
| | | | | | | | | | | - #if of something that was not defined - explicit constructor call for baseclass in copy-constructor of subclass http://code.google.com/p/skia/issues/detail?id=112 git-svn-id: http://skia.googlecode.com/svn/trunk@727 2bbb7eff-a529-9590-31e7-b0007b416f81
* Rev the GrContext interface. Context has draw* functions that take a new ↵Gravatar bsalomon@google.com2011-01-21
| | | | | | | | | | | GrPaint object. Removed many of the lower-level GrGpu function call-throughs on context. Remove unused/unsupported point size (we don't draw non-hairline points using GL points). Change current* getter functions to get* for consistency. Fix bounds when drawing inverse-filled paths. git-svn-id: http://skia.googlecode.com/svn/trunk@718 2bbb7eff-a529-9590-31e7-b0007b416f81
* Remove notion of default rendertarget. This doesn't map well to usage ↵Gravatar bsalomon@google.com2011-01-18
| | | | | | patterns outside sample app. Make binding between SkGpuDevice and a GrRenderTarget more explicit. Create method on GrContext to wrap the current target in the 3D API with a GrRenderTarget. git-svn-id: http://skia.googlecode.com/svn/trunk@706 2bbb7eff-a529-9590-31e7-b0007b416f81
* Towards issue #106Gravatar bsalomon@google.com2011-01-13
| | | | | | | Adds notion of texture multiple stages but currently just uses 1. git-svn-id: http://skia.googlecode.com/svn/trunk@694 2bbb7eff-a529-9590-31e7-b0007b416f81
* rename DrawState to DrState -- MS decided to #define DrawState, complicatingGravatar reed@google.com2011-01-12
| | | | | | | | our (compiler) lives :( git-svn-id: http://skia.googlecode.com/svn/trunk@689 2bbb7eff-a529-9590-31e7-b0007b416f81
* add helpers to initialize our var-int args before calling GL. Some driversGravatar reed@google.com2011-01-12
| | | | | | | | | assert that those are zero on input, even though they are logically output-only parameters. git-svn-id: http://skia.googlecode.com/svn/trunk@688 2bbb7eff-a529-9590-31e7-b0007b416f81
* Stop using GrSamplerState to track the texture parameters for GL textures. ↵Gravatar bsalomon@google.com2010-12-23
| | | | | | It has become larger and now holds state that isn't tracked per-texture by GL. Also remove unused setSamplerStateImm from GrGpuGL git-svn-id: http://skia.googlecode.com/svn/trunk@659 2bbb7eff-a529-9590-31e7-b0007b416f81
* add gpu backend (not hooked up yet)Gravatar reed@google.com2010-12-22
git-svn-id: http://skia.googlecode.com/svn/trunk@649 2bbb7eff-a529-9590-31e7-b0007b416f81