aboutsummaryrefslogtreecommitdiff
path: root/tests/GLProgramsTest.cpp
Commit message (Collapse)AuthorAgeFilesLines
...
* Style Change: SkNEW->new; SkDELETE->deletehalcanary2015-08-261-1/+1
| | | | | | DOCS_PREVIEW= https://skia.org/?cl=1316123003 Review URL: https://codereview.chromium.org/1316123003
* Revert of Remove GrStagedProcessor, remove the word Stage as it applies to ↵rmistry2015-08-261-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | FPs (patchset #6 id:90001 of https://codereview.chromium.org/1307223004/ ) Reason for revert: Causes bot failures: https://uberchromegw.corp.google.com/i/client.skia/builders/Test-Mac10.9-Clang-MacMini6.2-GPU-HD4000-x86_64-Debug/builds/1639 https://uberchromegw.corp.google.com/i/client.skia/builders/Test-Ubuntu-GCC-ShuttleA-GPU-GTX660-x86_64-Debug/builds/1702 https://uberchromegw.corp.google.com/i/client.skia.android/builders/Test-Android-GCC-NexusPlayer-GPU-PowerVR-x86-Debug/builds/1223 Original issue's description: > Remove GrStagedProcessor, remove the word Stage as it applies to FPs > > Committed: https://skia.googlesource.com/skia/+/24243446cdf7b7e4e132c2a0c387c7723777e0c7 TBR=joshualitt@google.com,egdaniel@google.com,bsalomon@google.com NOPRESUBMIT=true NOTREECHECKS=true NOTRY=true Review URL: https://codereview.chromium.org/1306803003
* Remove GrStagedProcessor, remove the word Stage as it applies to FPsbsalomon2015-08-261-2/+2
| | | | Review URL: https://codereview.chromium.org/1307223004
* When getGLInstance is called on a frag proc, the resulting ↵wangyix2015-08-181-1/+1
| | | | | | | | GrGLFragmentProcessor will be the root of a tree of GrGLFragmentProcessors that mirrors the GrFragmentProcessor's tree. This allows setData() to be called recursively (removing the responsibility from compose shader) and allows gl instances direct access to their children gl instances so they can emit their code. BUG=skia:4182 Review URL: https://codereview.chromium.org/1287023009
* Split GrDrawBatch and GrVertexBatch into their own filesbsalomon2015-08-131-1/+1
| | | | | | TBR=joshualitt@google.com Review URL: https://codereview.chromium.org/1296483002
* Introduce GrBatch subclasses GrDrawBatch and GrVertexBatch to prepare for ↵bsalomon2015-08-131-1/+1
| | | | | | non-drawing batches Review URL: https://codereview.chromium.org/1293583002
* Make folder for batchesjoshualitt2015-08-071-1/+4
| | | | | | BUG=skia: Review URL: https://codereview.chromium.org/1277233002
* Added registerChild; transforms, textures, glKey automatically handled.wangyix2015-08-041-5/+4
| | | | | | BUG=skia: Review URL: https://codereview.chromium.org/1266633003
* Some cleanup in GrTextureProvider and GrResourceProvider.bsalomon2015-07-311-3/+3
| | | | Review URL: https://codereview.chromium.org/1261643004
* Added GrGLFragmentProcessor::EmitArgs struct for use with emitCode()wangyix2015-07-221-8/+3
| | | | | | BUG=skia: Review URL: https://codereview.chromium.org/1251173002
* Revert of Remove rt flags that are not necessary (patchset #1 id:1 of ↵bsalomon2015-07-161-0/+1
| | | | | | | | | | | | | | | | | | | | https://codereview.chromium.org/1226123012/) Reason for revert: breaks tests, e.g. https://build.chromium.org/p/client.skia.android/builders/Test-Android-GCC-Nexus9-GPU-TegraK1-Arm64-Release/builds/752/steps/dm/logs/stdio Original issue's description: > Remove rt flags that are not necessary > > Committed: https://skia.googlesource.com/skia/+/b6b0a6ef179f4143c94ba7e0e1be6e7ce4b0a23a TBR=joshualitt@google.com NOPRESUBMIT=true NOTREECHECKS=true NOTRY=true Review URL: https://codereview.chromium.org/1234503004
* Remove rt flags that are not necessarybsalomon2015-07-161-1/+0
| | | | Review URL: https://codereview.chromium.org/1226123012
* Start to propagate constness of GrPipelineBuilder up the stackjoshualitt2015-07-131-1/+1
| | | | | | BUG=skia: Review URL: https://codereview.chromium.org/1229143007
* rename GrShaderDataManager -> GrProcessorDataManagerjoshualitt2015-07-091-2/+2
| | | | | | BUG=skia: Review URL: https://codereview.chromium.org/1228683002
* fix up test create functionsjoshualitt2015-07-081-29/+12
| | | | | | | TBR=bsalomon@google.com BUG=skia: Review URL: https://codereview.chromium.org/1213623022
* Implement support for mixed sampled render targetsvbuzinov2015-06-121-1/+1
| | | | | | | | | | | | | | | | | | Adds a new FBO type kStencil_MSFBOType that is selected whenever NV_framebuffer_mixed_samples extension is available. In this new FBO type a non-msaa color buffer is created with a multisampled stencil buffer attachment. Replaces numSamples() with separate numColorSamples and numStencilSamples methods in RenderTarget. In mixed samples mode non-MSAA codepaths are used to draw simple shapes, while NVPR-rendered paths and text are rendered with a multisampled stencil. BUG=skia:3177 Review URL: https://codereview.chromium.org/1001503002
* Remove GrContext from GrDrawTargetbsalomon2015-05-291-14/+17
| | | | | | Still exists on clip target (for now). Review URL: https://codereview.chromium.org/1166553002
* Store context options on caps.bsalomon2015-05-221-1/+1
| | | | | | Committed: https://skia.googlesource.com/skia/+/f28cff71db2cbb1ff18a8fbf1e80ca761d1f69bc Review URL: https://codereview.chromium.org/1158433006
* Revert of Store context options on caps. (patchset #3 id:40001 of ↵bsalomon2015-05-221-1/+1
| | | | | | | | | | | | | | | | | | | https://codereview.chromium.org/1158433006/) Reason for revert: breaking chromeos build (???) Original issue's description: > Store context options on caps. > > Committed: https://skia.googlesource.com/skia/+/f28cff71db2cbb1ff18a8fbf1e80ca761d1f69bc TBR=joshualitt@google.com NOPRESUBMIT=true NOTREECHECKS=true NOTRY=true Review URL: https://codereview.chromium.org/1151603005
* Store context options on caps.bsalomon2015-05-221-1/+1
| | | | Review URL: https://codereview.chromium.org/1158433006
* rename GrDrawTargetCaps to GrCapsbsalomon2015-05-191-3/+3
| | | | Review URL: https://codereview.chromium.org/1133123009
* fix for angle botjoshualitt2015-05-131-3/+4
| | | | | | | TBR= BUG=skia: Review URL: https://codereview.chromium.org/1137333004
* GLProgramsTest 3.0joshualitt2015-05-131-87/+32
| | | | | | BUG=skia: Review URL: https://codereview.chromium.org/1139743002
* This replaces the texture creation/caching functions on GrContext with a ↵bsalomon2015-04-301-3/+3
| | | | | | GrTextureProvider interface. The goal is to pass this narrowly focused object in places that currently take a GrContext but don't need and shouldn't use its other methods. It also has an extended private interface for interacting with non-texture resource types. Review URL: https://codereview.chromium.org/1107973004
* Use texture barriers to read directly from the RTcdalton2015-04-291-0/+6
| | | | | | | | | | | Updates GrXferProcessor to read directly from the RT texture when texture barriers are supported and it needs to know the dst color. Also adds the notion of an Xfer barrier and uses it to issue texture barriers when the XP will read the RT. BUG=skia: Review URL: https://codereview.chromium.org/1040303002
* Pull out shader-specific caps into GrShaderCaps and GrGLSLCapsjvanverth2015-04-291-1/+2
| | | | | | BUG=skia: Review URL: https://codereview.chromium.org/1116713002
* Use GLSLCaps for creating processor keys and GLSL-specific programsjvanverth2015-04-281-2/+2
| | | | | | | | | Effectively all this does is future-proof any GLSL-specific code, as GLSLCaps is just a typedef of GLCaps. BUG=skia: Review URL: https://codereview.chromium.org/1109863004
* Remove legacy NVPR supportjvanverth2015-04-271-13/+0
| | | | | | BUG=skia: Review URL: https://codereview.chromium.org/1110553003
* Make non-AA hairline stroke rects snap to pixels centers so they close.bsalomon2015-04-271-1/+1
| | | | | | BUG=skia:3717 Review URL: https://codereview.chromium.org/1101663007
* C++11 override should now be supported by all of {bots,Chrome,Android,Mozilla}mtklein2015-03-251-5/+5
| | | | | | | | | NOPRESUBMIT=true BUG=skia: DOCS_PREVIEW= https://skia.org/?cl=1037793002 Review URL: https://codereview.chromium.org/1037793002
* Move GrAutoLocaleSetter to new file and fix issue with null localebsalomon2015-03-161-0/+1
| | | | | | | TBR=egdaniel@google.com NOTREECHECKS=true Review URL: https://codereview.chromium.org/1002623004
* Use C locale for numerics when emitting shaders.bsalomon2015-03-161-0/+8
| | | | | | BUG=skia:3330 Review URL: https://codereview.chromium.org/1012723002
* I'd really like to land this before the branch so speedy reviews are ↵joshualitt2015-02-251-1/+1
| | | | | | | | | | appreciated. BUG=skia: Committed: https://skia.googlesource.com/skia/+/586d5d640b19860dfbbd903a5188da1bbbe87336 Review URL: https://codereview.chromium.org/936943002
* Revert of Pass clip to context (patchset #8 id:180001 of ↵joshualitt2015-02-251-1/+1
| | | | | | | | | | | | | | | | | | | | | | https://codereview.chromium.org/936943002/) Reason for revert: Strange blur problems on nexus 5 Original issue's description: > I'd really like to land this before the branch so speedy reviews are appreciated. > > BUG=skia: > > Committed: https://skia.googlesource.com/skia/+/586d5d640b19860dfbbd903a5188da1bbbe87336 TBR=jvanverth@google.com,senorblanco@google.com,bsalomon@google.com,senorblanco@chromium.org,joshualitt@chromium.org NOPRESUBMIT=true NOTREECHECKS=true NOTRY=true BUG=skia: Review URL: https://codereview.chromium.org/956083002
* I'd really like to land this before the branch so speedy reviews are ↵joshualitt2015-02-251-1/+1
| | | | | | | | appreciated. BUG=skia: Review URL: https://codereview.chromium.org/936943002
* Move clip off of draw targetjoshualitt2015-02-231-3/+3
| | | | | | BUG=skia: Review URL: https://codereview.chromium.org/947443003
* Allow resources' unique keys to be changed.bsalomon2015-02-191-1/+1
| | | | Review URL: https://codereview.chromium.org/938943002
* Rename GrContentKey to GrUniqueKeybsalomon2015-02-191-3/+3
| | | | Review URL: https://codereview.chromium.org/940463006
* Decrease number of allowed stages for Angle on GLProgramTestegdaniel2015-02-171-1/+1
| | | | | | BUG=skia:3435 Review URL: https://codereview.chromium.org/931783003
* Pass in ProcOptInfos into willNeedDstCopy on XPsegdaniel2015-02-131-2/+8
| | | | | | BUG=skia: Review URL: https://codereview.chromium.org/912413002
* One createTexture function, attempt to recycle scratch in createTexture.bsalomon2015-02-061-1/+1
| | | | Review URL: https://codereview.chromium.org/864383003
* Revert of Revert of Move DstCopy on gpu into the GrXferProcessor. (patchset ↵bsalomon2015-02-061-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | #1 id:1 of https://codereview.chromium.org/901663007/) Reason for revert: The revert didn't help the 10.9 bot. Unreverting by reverting the revert (which is basically relanding the original patch which itself was a revert of a revert). Revert. Original issue's description: > Revert of Move DstCopy on gpu into the GrXferProcessor. (patchset #11 id:200001 of https://codereview.chromium.org/885923002/) > > Reason for revert: > Testing to see if reverting fixes 10.9 bots. > > Original issue's description: > > Move DstCopy on gpu into the GrXferProcessor. > > > > BUG=skia: > > > > Committed: https://skia.googlesource.com/skia/+/74a11753604768bf461b80cabb66060e8564d82c > > > > Committed: https://skia.googlesource.com/skia/+/5e1378d0e075a323144ba14e0a4cbcca35eccc69 > > TBR=joshualitt@google.com,egdaniel@google.com > NOPRESUBMIT=true > NOTREECHECKS=true > NOTRY=true > BUG=skia: > > Committed: https://skia.googlesource.com/skia/+/21b2c53218ab25f4268e3992e51d916076a2a7ee TBR=joshualitt@google.com,egdaniel@google.com NOPRESUBMIT=true NOTREECHECKS=true NOTRY=true BUG=skia: Review URL: https://codereview.chromium.org/873723009
* Revert of Move DstCopy on gpu into the GrXferProcessor. (patchset #11 ↵bsalomon2015-02-051-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | id:200001 of https://codereview.chromium.org/885923002/) Reason for revert: Testing to see if reverting fixes 10.9 bots. Original issue's description: > Move DstCopy on gpu into the GrXferProcessor. > > BUG=skia: > > Committed: https://skia.googlesource.com/skia/+/74a11753604768bf461b80cabb66060e8564d82c > > Committed: https://skia.googlesource.com/skia/+/5e1378d0e075a323144ba14e0a4cbcca35eccc69 TBR=joshualitt@google.com,egdaniel@google.com NOPRESUBMIT=true NOTREECHECKS=true NOTRY=true BUG=skia: Review URL: https://codereview.chromium.org/901663007
* Move DstCopy on gpu into the GrXferProcessor.egdaniel2015-02-051-2/+2
| | | | | | | | BUG=skia: Committed: https://skia.googlesource.com/skia/+/74a11753604768bf461b80cabb66060e8564d82c Review URL: https://codereview.chromium.org/885923002
* BUG=skia:joshualitt2015-02-051-1/+1
| | | | Review URL: https://codereview.chromium.org/894693003
* Revert "Move DstCopy on gpu into the GrXferProcessor."egdaniel2015-02-041-2/+2
| | | | | | | | | | | | | | This reverts commit 74a11753604768bf461b80cabb66060e8564d82c. TBR=joshualitt@google.com,bsalomon@google.com NOPRESUBMIT=true NOTREECHECKS=true NOTRY=true BUG=skia: Committed: https://skia.googlesource.com/skia/+/3e9dfdb3784c0cbfecf7589a74aa9aff7ef40abd Review URL: https://codereview.chromium.org/896163003
* Revert of Revert "Move DstCopy on gpu into the GrXferProcessor." (patchset ↵egdaniel2015-02-041-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | #1 id:1 of https://codereview.chromium.org/896163003/) Reason for revert: failed on my manual revert Original issue's description: > Revert "Move DstCopy on gpu into the GrXferProcessor." > > This reverts commit 74a11753604768bf461b80cabb66060e8564d82c. > > TBR=joshualitt@google.com,bsalomon@google.com > NOPRESUBMIT=true > NOTREECHECKS=true > NOTRY=true > BUG=skia: > > Committed: https://skia.googlesource.com/skia/+/3e9dfdb3784c0cbfecf7589a74aa9aff7ef40abd TBR= NOPRESUBMIT=true NOTREECHECKS=true NOTRY=true BUG=skia: Review URL: https://codereview.chromium.org/900913002
* Revert "Move DstCopy on gpu into the GrXferProcessor."egdaniel2015-02-041-2/+2
| | | | | | | | | | | | This reverts commit 74a11753604768bf461b80cabb66060e8564d82c. TBR=joshualitt@google.com,bsalomon@google.com NOPRESUBMIT=true NOTREECHECKS=true NOTRY=true BUG=skia: Review URL: https://codereview.chromium.org/896163003
* Move DstCopy on gpu into the GrXferProcessor.egdaniel2015-02-031-2/+2
| | | | | | BUG=skia: Review URL: https://codereview.chromium.org/885923002
* Move npot resizing out of GrContext and simplify GrContext texture functions.bsalomon2015-02-021-5/+5
| | | | | | | | Committed: https://skia.googlesource.com/skia/+/8a8100349105c8c6de39fcb34e47679da7a67f54 Committed: https://skia.googlesource.com/skia/+/6c96672491b04cb782bce8fee778124df66524a0 Review URL: https://codereview.chromium.org/882223003