diff options
author | commit-bot@chromium.org <commit-bot@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2014-04-25 06:21:30 +0000 |
---|---|---|
committer | commit-bot@chromium.org <commit-bot@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2014-04-25 06:21:30 +0000 |
commit | f66967243c3732523c2035f7d6dbf65c2d20b264 (patch) | |
tree | bb55b19d466ee8f989e57c533d05211aa9e66c78 /src/gpu/gl/win | |
parent | 0ea05d8491741b20ff857c8f89bba7d9eaf4c798 (diff) |
Use EXT_direct_state_access for path matrix manipulation
Use EXT_direct_state_access for path matrix manipulation when using
NV_path_rendering extension. This makes Chromium command buffer
integration easier, since the current matrix mode does not need to be
exposed as state and fewer function calls and enums are needed.
BUG=chromium:344330
R=bsalomon@google.com
Author: kkinnunen@nvidia.com
Review URL: https://codereview.chromium.org/245963009
git-svn-id: http://skia.googlecode.com/svn/trunk@14374 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'src/gpu/gl/win')
-rw-r--r-- | src/gpu/gl/win/GrGLCreateNativeInterface_win.cpp | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/gpu/gl/win/GrGLCreateNativeInterface_win.cpp b/src/gpu/gl/win/GrGLCreateNativeInterface_win.cpp index c5c80bc406..6fd3d91c5a 100644 --- a/src/gpu/gl/win/GrGLCreateNativeInterface_win.cpp +++ b/src/gpu/gl/win/GrGLCreateNativeInterface_win.cpp @@ -103,9 +103,6 @@ const GrGLInterface* GrGLCreateNativeInterface() { SET_PROC(GetString) SET_PROC(GetTexLevelParameteriv) SET_PROC(LineWidth) - SET_PROC(LoadIdentity) - SET_PROC(LoadMatrixf) - SET_PROC(MatrixMode) SET_PROC(PixelStorei) SET_PROC(ReadBuffer) SET_PROC(ReadPixels) @@ -242,7 +239,12 @@ const GrGLInterface* GrGLCreateNativeInterface() { delete interface; return NULL; } + WGL_SET_PROC(MapBuffer); + if (extensions.has("GL_EXT_direct_state_access")) { + WGL_SET_PROC_SUFFIX(MatrixLoadf, EXT); + WGL_SET_PROC_SUFFIX(MatrixLoadIdentity, EXT); + } WGL_SET_PROC(UnmapBuffer); if (extensions.has("GL_NV_path_rendering")) { |