aboutsummaryrefslogtreecommitdiffhomepage
path: root/gpu/src/GrGLTexture.cpp
Commit message (Collapse)AuthorAge
* 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
* 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
* 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
* 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
* 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
* 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
* Always call notifyTextureDelete in onRelease.Gravatar Scroggo2011-06-16
| | | | | | | Reviewed at http://codereview.appspot.com/4620050/ git-svn-id: http://skia.googlecode.com/svn/trunk@1611 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
* 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
* 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
* 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 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
* 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
* 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
* 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
* 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
* 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
* 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
* 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