OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2013 Google Inc. | 2 * Copyright 2013 Google Inc. |
3 * | 3 * |
4 * Use of this source code is governed by a BSD-style license that can be | 4 * Use of this source code is governed by a BSD-style license that can be |
5 * found in the LICENSE file. | 5 * found in the LICENSE file. |
6 */ | 6 */ |
7 | 7 |
8 #include "GrGLNoOpInterface.h" | 8 #include "GrGLNoOpInterface.h" |
9 #include "SkMutex.h" | 9 #include "SkMutex.h" |
10 #include "SkString.h" | 10 #include "SkString.h" |
(...skipping 543 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
554 GrGLsizei* length, | 554 GrGLsizei* length, |
555 char* infolog) { | 555 char* infolog) { |
556 if (length) { | 556 if (length) { |
557 *length = 0; | 557 *length = 0; |
558 } | 558 } |
559 if (bufsize > 0) { | 559 if (bufsize > 0) { |
560 *infolog = 0; | 560 *infolog = 0; |
561 } | 561 } |
562 } | 562 } |
563 | 563 |
564 GrGLvoid GR_GL_FUNCTION_TYPE noOpGLGetMultisamplefv(GrGLenum pname, | |
565 GrGLuint index, | |
566 GrGLfloat* val) { | |
567 val[0] = val[1] = 0.5f; | |
568 } | |
569 | |
570 GrGLvoid GR_GL_FUNCTION_TYPE noOpGLGetShaderOrProgramiv(GrGLuint program, | 564 GrGLvoid GR_GL_FUNCTION_TYPE noOpGLGetShaderOrProgramiv(GrGLuint program, |
571 GrGLenum pname, | 565 GrGLenum pname, |
572 GrGLint* params) { | 566 GrGLint* params) { |
573 switch (pname) { | 567 switch (pname) { |
574 case GR_GL_LINK_STATUS: // fallthru | 568 case GR_GL_LINK_STATUS: // fallthru |
575 case GR_GL_COMPILE_STATUS: | 569 case GR_GL_COMPILE_STATUS: |
576 *params = GR_GL_TRUE; | 570 *params = GR_GL_TRUE; |
577 break; | 571 break; |
578 case GR_GL_INFO_LOG_LENGTH: | 572 case GR_GL_INFO_LOG_LENGTH: |
579 *params = 0; | 573 *params = 0; |
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
686 static int gUniLocation = 0; | 680 static int gUniLocation = 0; |
687 return ++gUniLocation; | 681 return ++gUniLocation; |
688 } | 682 } |
689 | 683 |
690 GrGLvoid GR_GL_FUNCTION_TYPE noOpGLInsertEventMarker(GrGLsizei length, const cha
r* marker) { | 684 GrGLvoid GR_GL_FUNCTION_TYPE noOpGLInsertEventMarker(GrGLsizei length, const cha
r* marker) { |
691 } | 685 } |
692 GrGLvoid GR_GL_FUNCTION_TYPE noOpGLPushGroupMarker(GrGLsizei length , const cha
r* marker) { | 686 GrGLvoid GR_GL_FUNCTION_TYPE noOpGLPushGroupMarker(GrGLsizei length , const cha
r* marker) { |
693 } | 687 } |
694 GrGLvoid GR_GL_FUNCTION_TYPE noOpGLPopGroupMarker() { | 688 GrGLvoid GR_GL_FUNCTION_TYPE noOpGLPopGroupMarker() { |
695 } | 689 } |
OLD | NEW |