Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 | 5 |
| 6 #include "ui/gl/gl_bindings_skia_in_process.h" | 6 #include "ui/gl/gl_bindings_skia_in_process.h" |
| 7 | 7 |
| 8 #include "base/logging.h" | 8 #include "base/logging.h" |
| 9 #include "third_party/skia/include/gpu/gl/GrGLInterface.h" | 9 #include "third_party/skia/include/gpu/gl/GrGLInterface.h" |
| 10 #include "ui/gl/gl_bindings.h" | 10 #include "ui/gl/gl_bindings.h" |
| (...skipping 328 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 339 | 339 |
| 340 GLvoid StubGLGetTexLevelParameteriv(GLenum target, GLint level, | 340 GLvoid StubGLGetTexLevelParameteriv(GLenum target, GLint level, |
| 341 GLenum pname, GLint* params) { | 341 GLenum pname, GLint* params) { |
| 342 glGetTexLevelParameteriv(target, level, pname, params); | 342 glGetTexLevelParameteriv(target, level, pname, params); |
| 343 } | 343 } |
| 344 | 344 |
| 345 GLint StubGLGetUniformLocation(GLuint program, const char* name) { | 345 GLint StubGLGetUniformLocation(GLuint program, const char* name) { |
| 346 return glGetUniformLocation(program, name); | 346 return glGetUniformLocation(program, name); |
| 347 } | 347 } |
| 348 | 348 |
| 349 GLvoid StubGLInsertEventMarker(GLsizei length, const char* marker) { | |
| 350 glInsertEventMarkerEXT(length, marker); | |
|
piman
2014/03/13 00:29:23
nit: 2 space indent (same below).
piman
2014/03/13 00:29:23
Note: this has different behavior than the command
| |
| 351 } | |
| 352 | |
| 349 GLvoid StubGLLineWidth(GLfloat width) { | 353 GLvoid StubGLLineWidth(GLfloat width) { |
| 350 glLineWidth(width); | 354 glLineWidth(width); |
| 351 } | 355 } |
| 352 | 356 |
| 353 GLvoid StubGLLinkProgram(GLuint program) { | 357 GLvoid StubGLLinkProgram(GLuint program) { |
| 354 glLinkProgram(program); | 358 glLinkProgram(program); |
| 355 } | 359 } |
| 356 | 360 |
| 357 void* StubGLMapBuffer(GLenum target, GLenum access) { | 361 void* StubGLMapBuffer(GLenum target, GLenum access) { |
| 358 return glMapBuffer(target, access); | 362 return glMapBuffer(target, access); |
| 359 } | 363 } |
| 360 | 364 |
| 361 GLvoid StubGLPixelStorei(GLenum pname, GLint param) { | 365 GLvoid StubGLPixelStorei(GLenum pname, GLint param) { |
| 362 glPixelStorei(pname, param); | 366 glPixelStorei(pname, param); |
| 363 } | 367 } |
| 364 | 368 |
| 369 GLvoid StubGLPopGroupMarker() { | |
| 370 glPopGroupMarkerEXT(); | |
| 371 } | |
| 372 | |
| 373 GLvoid StubGLPushGroupMarker(GLsizei length, const char* marker) { | |
| 374 glPushGroupMarkerEXT(length, marker); | |
| 375 } | |
| 376 | |
| 365 GLvoid StubGLQueryCounter(GLuint id, GLenum target) { | 377 GLvoid StubGLQueryCounter(GLuint id, GLenum target) { |
| 366 glQueryCounter(id, target); | 378 glQueryCounter(id, target); |
| 367 } | 379 } |
| 368 | 380 |
| 369 GLvoid StubGLReadBuffer(GLenum src) { | 381 GLvoid StubGLReadBuffer(GLenum src) { |
| 370 glReadBuffer(src); | 382 glReadBuffer(src); |
| 371 } | 383 } |
| 372 | 384 |
| 373 GLvoid StubGLReadPixels(GLint x, GLint y, GLsizei width, GLsizei height, | 385 GLvoid StubGLReadPixels(GLint x, GLint y, GLsizei width, GLsizei height, |
| 374 GLenum format, GLenum type, void* pixels) { | 386 GLenum format, GLenum type, void* pixels) { |
| (...skipping 335 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 710 functions->fBlitFramebuffer = StubGLBlitFramebuffer; | 722 functions->fBlitFramebuffer = StubGLBlitFramebuffer; |
| 711 functions->fMapBuffer = StubGLMapBuffer; | 723 functions->fMapBuffer = StubGLMapBuffer; |
| 712 functions->fUnmapBuffer = StubGLUnmapBuffer; | 724 functions->fUnmapBuffer = StubGLUnmapBuffer; |
| 713 functions->fBindFragDataLocationIndexed = | 725 functions->fBindFragDataLocationIndexed = |
| 714 StubGLBindFragDataLocationIndexed; | 726 StubGLBindFragDataLocationIndexed; |
| 715 | 727 |
| 716 return interface; | 728 return interface; |
| 717 } | 729 } |
| 718 | 730 |
| 719 } // namespace gfx | 731 } // namespace gfx |
| OLD | NEW |