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

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

Issue 1784063003: Add caps and GL API for buffer texture (Closed) Base URL: https://skia.googlesource.com/skia.git@upload_precision
Patch Set: Created 4 years, 9 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/GrGLNoOpInterface.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 466 matching lines...) Expand 10 before | Expand all | Expand 10 after
477 functions->fReadBuffer = noOpGLReadBuffer; 477 functions->fReadBuffer = noOpGLReadBuffer;
478 functions->fReadPixels = nullGLReadPixels; 478 functions->fReadPixels = nullGLReadPixels;
479 functions->fScissor = noOpGLScissor; 479 functions->fScissor = noOpGLScissor;
480 functions->fShaderSource = noOpGLShaderSource; 480 functions->fShaderSource = noOpGLShaderSource;
481 functions->fStencilFunc = noOpGLStencilFunc; 481 functions->fStencilFunc = noOpGLStencilFunc;
482 functions->fStencilFuncSeparate = noOpGLStencilFuncSeparate; 482 functions->fStencilFuncSeparate = noOpGLStencilFuncSeparate;
483 functions->fStencilMask = noOpGLStencilMask; 483 functions->fStencilMask = noOpGLStencilMask;
484 functions->fStencilMaskSeparate = noOpGLStencilMaskSeparate; 484 functions->fStencilMaskSeparate = noOpGLStencilMaskSeparate;
485 functions->fStencilOp = noOpGLStencilOp; 485 functions->fStencilOp = noOpGLStencilOp;
486 functions->fStencilOpSeparate = noOpGLStencilOpSeparate; 486 functions->fStencilOpSeparate = noOpGLStencilOpSeparate;
487 functions->fTexBuffer = noOpGLTexBuffer;
487 functions->fTexImage2D = noOpGLTexImage2D; 488 functions->fTexImage2D = noOpGLTexImage2D;
488 functions->fTexParameteri = noOpGLTexParameteri; 489 functions->fTexParameteri = noOpGLTexParameteri;
489 functions->fTexParameteriv = noOpGLTexParameteriv; 490 functions->fTexParameteriv = noOpGLTexParameteriv;
490 functions->fTexSubImage2D = noOpGLTexSubImage2D; 491 functions->fTexSubImage2D = noOpGLTexSubImage2D;
491 functions->fTexStorage2D = noOpGLTexStorage2D; 492 functions->fTexStorage2D = noOpGLTexStorage2D;
492 functions->fDiscardFramebuffer = noOpGLDiscardFramebuffer; 493 functions->fDiscardFramebuffer = noOpGLDiscardFramebuffer;
493 functions->fUniform1f = noOpGLUniform1f; 494 functions->fUniform1f = noOpGLUniform1f;
494 functions->fUniform1i = noOpGLUniform1i; 495 functions->fUniform1i = noOpGLUniform1i;
495 functions->fUniform1fv = noOpGLUniform1fv; 496 functions->fUniform1fv = noOpGLUniform1fv;
496 functions->fUniform1iv = noOpGLUniform1iv; 497 functions->fUniform1iv = noOpGLUniform1iv;
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after
598 interface->fCallbackData = reinterpret_cast<GrGLInterfaceCallbackData>(fStat e); 599 interface->fCallbackData = reinterpret_cast<GrGLInterfaceCallbackData>(fStat e);
599 #endif 600 #endif
600 } 601 }
601 602
602 SkNullGLContext::~SkNullGLContext() { 603 SkNullGLContext::~SkNullGLContext() {
603 this->teardown(); 604 this->teardown();
604 fState->unref(); 605 fState->unref();
605 } 606 }
606 607
607 void SkNullGLContext::onPlatformMakeCurrent() const { set_current_context(fState ); } 608 void SkNullGLContext::onPlatformMakeCurrent() const { set_current_context(fState ); }
OLDNEW
« no previous file with comments | « src/gpu/gl/GrGLNoOpInterface.cpp ('k') | src/gpu/gl/debug/GrGLCreateDebugInterface.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698