Implement support for origin-TopLeft render targets. Note that the default behaviour...
authorsenorblanco@chromium.org <senorblanco@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81>
Tue, 5 Feb 2013 19:50:46 +0000 (19:50 +0000)
committersenorblanco@chromium.org <senorblanco@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81>
Tue, 5 Feb 2013 19:50:46 +0000 (19:50 +0000)
commit3cb406bb88f5aa09cf9f5a9554b4b1314cf1a2ee
tree65c641a9f93913a6e131ebaf71aeea30f4d52827
parent0ac6f168f15393a3213c1c95f8adc4434132dcb2
Implement support for origin-TopLeft render targets. Note that the default behaviour remains the same:  textures default to origin-TopLeft, render targets default to origin-BottomLeft, and backend textures default to origin-BottomLeft. However, the caller can override the default by setting fOrigin in GrTextureDesc, GrBackendTextureDesc or GrBackendRenderTargetDesc.

Review URL: https://codereview.appspot.com/7230049

git-svn-id: http://skia.googlecode.com/svn/trunk@7594 2bbb7eff-a529-9590-31e7-b0007b416f81
22 files changed:
include/gpu/GrRenderTarget.h
include/gpu/GrSurface.h
include/gpu/GrTexture.h
include/gpu/GrTypes.h
samplecode/SampleApp.cpp
src/gpu/GrContext.cpp
src/gpu/GrGpu.cpp
src/gpu/GrGpu.h
src/gpu/GrTexture.cpp
src/gpu/gl/GrGLIRect.h
src/gpu/gl/GrGLProgram.cpp
src/gpu/gl/GrGLProgram.h
src/gpu/gl/GrGLRenderTarget.cpp
src/gpu/gl/GrGLRenderTarget.h
src/gpu/gl/GrGLShaderBuilder.cpp
src/gpu/gl/GrGLTexture.cpp
src/gpu/gl/GrGLTexture.h
src/gpu/gl/GrGpuGL.cpp
src/gpu/gl/GrGpuGL.h
src/gpu/gl/GrGpuGL_program.cpp
tests/ReadPixelsTest.cpp
tests/WritePixelsTest.cpp