Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1096)

Side by Side Diff: src/gpu/gl/SkNullGLContext.cpp

Issue 1669853002: Improve GLSL integer support (Closed) Base URL: https://skia.googlesource.com/skia.git@uploat_dratindirect
Patch Set: rebase Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/gpu/gl/GrGLVertexArray.cpp ('k') | src/gpu/gl/debug/GrGLCreateDebugInterface.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 1
2 /* 2 /*
3 * Copyright 2011 Google Inc. 3 * Copyright 2011 Google Inc.
4 * 4 *
5 * Use of this source code is governed by a BSD-style license that can be 5 * Use of this source code is governed by a BSD-style license that can be
6 * found in the LICENSE file. 6 * found in the LICENSE file.
7 */ 7 */
8 8
9 #include "gl/SkNullGLContext.h" 9 #include "gl/SkNullGLContext.h"
10 #include "gl/GrGLInterface.h" 10 #include "gl/GrGLInterface.h"
(...skipping 496 matching lines...) Expand 10 before | Expand all | Expand 10 after
507 functions->fUniform4iv = noOpGLUniform4iv; 507 functions->fUniform4iv = noOpGLUniform4iv;
508 functions->fUniformMatrix2fv = noOpGLUniformMatrix2fv; 508 functions->fUniformMatrix2fv = noOpGLUniformMatrix2fv;
509 functions->fUniformMatrix3fv = noOpGLUniformMatrix3fv; 509 functions->fUniformMatrix3fv = noOpGLUniformMatrix3fv;
510 functions->fUniformMatrix4fv = noOpGLUniformMatrix4fv; 510 functions->fUniformMatrix4fv = noOpGLUniformMatrix4fv;
511 functions->fUnmapBuffer = nullGLUnmapBuffer; 511 functions->fUnmapBuffer = nullGLUnmapBuffer;
512 functions->fUseProgram = nullGLUseProgram; 512 functions->fUseProgram = nullGLUseProgram;
513 functions->fVertexAttrib1f = noOpGLVertexAttrib1f; 513 functions->fVertexAttrib1f = noOpGLVertexAttrib1f;
514 functions->fVertexAttrib2fv = noOpGLVertexAttrib2fv; 514 functions->fVertexAttrib2fv = noOpGLVertexAttrib2fv;
515 functions->fVertexAttrib3fv = noOpGLVertexAttrib3fv; 515 functions->fVertexAttrib3fv = noOpGLVertexAttrib3fv;
516 functions->fVertexAttrib4fv = noOpGLVertexAttrib4fv; 516 functions->fVertexAttrib4fv = noOpGLVertexAttrib4fv;
517 functions->fVertexAttribDivisor = noOpGLVertexAttribDivisor;
518 functions->fVertexAttribIPointer = noOpGLVertexAttribIPointer;
517 functions->fVertexAttribPointer = noOpGLVertexAttribPointer; 519 functions->fVertexAttribPointer = noOpGLVertexAttribPointer;
518 functions->fVertexAttribDivisor = noOpGLVertexAttribDivisor;
519 functions->fViewport = nullGLViewport; 520 functions->fViewport = nullGLViewport;
520 functions->fBindFramebuffer = nullGLBindFramebuffer; 521 functions->fBindFramebuffer = nullGLBindFramebuffer;
521 functions->fBindRenderbuffer = nullGLBindRenderbuffer; 522 functions->fBindRenderbuffer = nullGLBindRenderbuffer;
522 functions->fCheckFramebufferStatus = noOpGLCheckFramebufferStatus; 523 functions->fCheckFramebufferStatus = noOpGLCheckFramebufferStatus;
523 functions->fDeleteFramebuffers = nullGLDeleteFramebuffers; 524 functions->fDeleteFramebuffers = nullGLDeleteFramebuffers;
524 functions->fDeleteRenderbuffers = nullGLDeleteRenderbuffers; 525 functions->fDeleteRenderbuffers = nullGLDeleteRenderbuffers;
525 functions->fFramebufferRenderbuffer = nullGLFramebufferRenderbuffer; 526 functions->fFramebufferRenderbuffer = nullGLFramebufferRenderbuffer;
526 functions->fFramebufferTexture2D = nullGLFramebufferTexture2D; 527 functions->fFramebufferTexture2D = nullGLFramebufferTexture2D;
527 functions->fGenFramebuffers = noOpGLGenIds; 528 functions->fGenFramebuffers = noOpGLGenIds;
528 functions->fGenRenderbuffers = noOpGLGenIds; 529 functions->fGenRenderbuffers = noOpGLGenIds;
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
596 interface->fCallbackData = reinterpret_cast<GrGLInterfaceCallbackData>(fStat e); 597 interface->fCallbackData = reinterpret_cast<GrGLInterfaceCallbackData>(fStat e);
597 #endif 598 #endif
598 } 599 }
599 600
600 SkNullGLContext::~SkNullGLContext() { 601 SkNullGLContext::~SkNullGLContext() {
601 this->teardown(); 602 this->teardown();
602 fState->unref(); 603 fState->unref();
603 } 604 }
604 605
605 void SkNullGLContext::onPlatformMakeCurrent() const { set_current_context(fState ); } 606 void SkNullGLContext::onPlatformMakeCurrent() const { set_current_context(fState ); }
OLDNEW
« no previous file with comments | « src/gpu/gl/GrGLVertexArray.cpp ('k') | src/gpu/gl/debug/GrGLCreateDebugInterface.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698