Virtualize SkGLContext with subclasses SkNativeGLContext and SkMesaGLContext, allow...
authorbsalomon@google.com <bsalomon@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>
Wed, 19 Oct 2011 20:43:20 +0000 (20:43 +0000)
committerbsalomon@google.com <bsalomon@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>
Wed, 19 Oct 2011 20:43:20 +0000 (20:43 +0000)
commit373a6635b7190b4af4d265fdd4b70f102ec3a6fd
treedfa02655ebe3cc2f4f3ead29426c2eb1a80adcf9
parent5960d0049585d66efdba058a0930870dafd44079
Virtualize SkGLContext with subclasses SkNativeGLContext and SkMesaGLContext, allow both in gm
Review URL: http://codereview.appspot.com/5307045/

git-svn-id: http://skia.googlecode.com/svn/trunk@2499 2bbb7eff-a529-9590-31e7-b0007b416f81
37 files changed:
bench/BenchGpuTimer_gl.cpp
bench/BenchGpuTimer_gl.h
bench/BenchGpuTimer_none.cpp [deleted file]
bench/BenchGpuTimer_none.h [deleted file]
bench/BenchTimer.cpp
bench/BenchTimer.h
bench/benchmain.cpp
gm/gmmain.cpp
gyp/bench.gypi
gyp/common.gypi
gyp/common_variables.gypi
gyp/gpu.gyp
include/gpu/GrGLDefines.h
include/gpu/GrGLInterface.h
include/gpu/SkGLContext.h
include/gpu/SkMesaGLContext.h [new file with mode: 0644]
include/gpu/SkNativeGLContext.h [new file with mode: 0644]
src/gpu/GrGLCreateNativeInterface_none.cpp [new file with mode: 0644]
src/gpu/GrGLDefaultInterface_native.cpp [new file with mode: 0644]
src/gpu/GrGLInterface.cpp
src/gpu/GrGLProgram.cpp
src/gpu/GrGLProgram.h
src/gpu/GrGpuGLShaders.cpp
src/gpu/SkGLContext.cpp [new file with mode: 0644]
src/gpu/SkGLContext_none.cpp [deleted file]
src/gpu/mac/GrGLCreateNativeInterface_mac.cpp [moved from src/gpu/mac/GrGLDefaultInterface_mac.cpp with 83% similarity]
src/gpu/mac/SkGLContext_mac.cpp [deleted file]
src/gpu/mac/SkNativeGLContext_mac.cpp [new file with mode: 0644]
src/gpu/mesa/GrGLCreateMesaInterface.cpp [moved from src/gpu/mesa/GrGLDefaultInterface_mesa.cpp with 64% similarity]
src/gpu/mesa/SkGLContext_mesa.cpp [deleted file]
src/gpu/mesa/SkMesaGLContext.cpp [new file with mode: 0644]
src/gpu/unix/GrGLCreateNativeInterface_unix.cpp [moved from src/gpu/unix/GrGLDefaultInterface_unix.cpp with 90% similarity]
src/gpu/unix/SkNativeGLContext_unix.cpp [moved from src/gpu/unix/SkGLContext_unix.cpp with 51% similarity]
src/gpu/win/GrGLCreateNativeInterface_win.cpp [moved from src/gpu/win/GrGLDefaultInterface_win.cpp with 98% similarity]
src/gpu/win/SkGLContext_win.cpp [deleted file]
src/gpu/win/SkNativeGLContext_win.cpp [new file with mode: 0644]
tests/Test.cpp