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 |
564 GrGLvoid GR_GL_FUNCTION_TYPE noOpGLGetShaderOrProgramiv(GrGLuint program, | 570 GrGLvoid GR_GL_FUNCTION_TYPE noOpGLGetShaderOrProgramiv(GrGLuint program, |
565 GrGLenum pname, | 571 GrGLenum pname, |
566 GrGLint* params) { | 572 GrGLint* params) { |
567 switch (pname) { | 573 switch (pname) { |
568 case GR_GL_LINK_STATUS: // fallthru | 574 case GR_GL_LINK_STATUS: // fallthru |
569 case GR_GL_COMPILE_STATUS: | 575 case GR_GL_COMPILE_STATUS: |
570 *params = GR_GL_TRUE; | 576 *params = GR_GL_TRUE; |
571 break; | 577 break; |
572 case GR_GL_INFO_LOG_LENGTH: | 578 case GR_GL_INFO_LOG_LENGTH: |
573 *params = 0; | 579 *params = 0; |
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
680 static int gUniLocation = 0; | 686 static int gUniLocation = 0; |
681 return ++gUniLocation; | 687 return ++gUniLocation; |
682 } | 688 } |
683 | 689 |
684 GrGLvoid GR_GL_FUNCTION_TYPE noOpGLInsertEventMarker(GrGLsizei length, const cha
r* marker) { | 690 GrGLvoid GR_GL_FUNCTION_TYPE noOpGLInsertEventMarker(GrGLsizei length, const cha
r* marker) { |
685 } | 691 } |
686 GrGLvoid GR_GL_FUNCTION_TYPE noOpGLPushGroupMarker(GrGLsizei length , const cha
r* marker) { | 692 GrGLvoid GR_GL_FUNCTION_TYPE noOpGLPushGroupMarker(GrGLsizei length , const cha
r* marker) { |
687 } | 693 } |
688 GrGLvoid GR_GL_FUNCTION_TYPE noOpGLPopGroupMarker() { | 694 GrGLvoid GR_GL_FUNCTION_TYPE noOpGLPopGroupMarker() { |
689 } | 695 } |
OLD | NEW |