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

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

Issue 1185573003: Import new functionality for GL4 backend (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: fix KHR_debug suffixes Created 5 years, 6 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 367 matching lines...) Expand 10 before | Expand all | Expand 10 after
378 functions->fDeleteBuffers = nullGLDeleteBuffers; 378 functions->fDeleteBuffers = nullGLDeleteBuffers;
379 functions->fDeleteProgram = nullGLDelete; 379 functions->fDeleteProgram = nullGLDelete;
380 functions->fDeleteQueries = noOpGLDeleteIds; 380 functions->fDeleteQueries = noOpGLDeleteIds;
381 functions->fDeleteShader = nullGLDelete; 381 functions->fDeleteShader = nullGLDelete;
382 functions->fDeleteTextures = noOpGLDeleteIds; 382 functions->fDeleteTextures = noOpGLDeleteIds;
383 functions->fDeleteVertexArrays = noOpGLDeleteIds; 383 functions->fDeleteVertexArrays = noOpGLDeleteIds;
384 functions->fDepthMask = noOpGLDepthMask; 384 functions->fDepthMask = noOpGLDepthMask;
385 functions->fDisable = noOpGLDisable; 385 functions->fDisable = noOpGLDisable;
386 functions->fDisableVertexAttribArray = noOpGLDisableVertexAttribArray; 386 functions->fDisableVertexAttribArray = noOpGLDisableVertexAttribArray;
387 functions->fDrawArrays = noOpGLDrawArrays; 387 functions->fDrawArrays = noOpGLDrawArrays;
388 functions->fDrawArraysInstanced = noOpGLDrawArraysInstanced;
388 functions->fDrawBuffer = noOpGLDrawBuffer; 389 functions->fDrawBuffer = noOpGLDrawBuffer;
389 functions->fDrawBuffers = noOpGLDrawBuffers; 390 functions->fDrawBuffers = noOpGLDrawBuffers;
390 functions->fDrawElements = noOpGLDrawElements; 391 functions->fDrawElements = noOpGLDrawElements;
392 functions->fDrawElementsInstanced = noOpGLDrawElementsInstanced;
391 functions->fEnable = noOpGLEnable; 393 functions->fEnable = noOpGLEnable;
392 functions->fEnableVertexAttribArray = noOpGLEnableVertexAttribArray; 394 functions->fEnableVertexAttribArray = noOpGLEnableVertexAttribArray;
393 functions->fEndQuery = noOpGLEndQuery; 395 functions->fEndQuery = noOpGLEndQuery;
394 functions->fFinish = noOpGLFinish; 396 functions->fFinish = noOpGLFinish;
395 functions->fFlush = noOpGLFlush; 397 functions->fFlush = noOpGLFlush;
396 functions->fFlushMappedBufferRange = nullGLFlushMappedBufferRange; 398 functions->fFlushMappedBufferRange = nullGLFlushMappedBufferRange;
397 functions->fFrontFace = noOpGLFrontFace; 399 functions->fFrontFace = noOpGLFrontFace;
398 functions->fGenBuffers = nullGLGenBuffers; 400 functions->fGenBuffers = nullGLGenBuffers;
399 functions->fGenerateMipmap = nullGLGenerateMipmap; 401 functions->fGenerateMipmap = nullGLGenerateMipmap;
400 functions->fGenQueries = noOpGLGenIds; 402 functions->fGenQueries = noOpGLGenIds;
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
460 functions->fUniformMatrix2fv = noOpGLUniformMatrix2fv; 462 functions->fUniformMatrix2fv = noOpGLUniformMatrix2fv;
461 functions->fUniformMatrix3fv = noOpGLUniformMatrix3fv; 463 functions->fUniformMatrix3fv = noOpGLUniformMatrix3fv;
462 functions->fUniformMatrix4fv = noOpGLUniformMatrix4fv; 464 functions->fUniformMatrix4fv = noOpGLUniformMatrix4fv;
463 functions->fUnmapBuffer = nullGLUnmapBuffer; 465 functions->fUnmapBuffer = nullGLUnmapBuffer;
464 functions->fUseProgram = nullGLUseProgram; 466 functions->fUseProgram = nullGLUseProgram;
465 functions->fVertexAttrib1f = noOpGLVertexAttrib1f; 467 functions->fVertexAttrib1f = noOpGLVertexAttrib1f;
466 functions->fVertexAttrib2fv = noOpGLVertexAttrib2fv; 468 functions->fVertexAttrib2fv = noOpGLVertexAttrib2fv;
467 functions->fVertexAttrib3fv = noOpGLVertexAttrib3fv; 469 functions->fVertexAttrib3fv = noOpGLVertexAttrib3fv;
468 functions->fVertexAttrib4fv = noOpGLVertexAttrib4fv; 470 functions->fVertexAttrib4fv = noOpGLVertexAttrib4fv;
469 functions->fVertexAttribPointer = noOpGLVertexAttribPointer; 471 functions->fVertexAttribPointer = noOpGLVertexAttribPointer;
472 functions->fVertexAttribDivisor = noOpGLVertexAttribDivisor;
470 functions->fViewport = nullGLViewport; 473 functions->fViewport = nullGLViewport;
471 functions->fBindFramebuffer = nullGLBindFramebuffer; 474 functions->fBindFramebuffer = nullGLBindFramebuffer;
472 functions->fBindRenderbuffer = nullGLBindRenderbuffer; 475 functions->fBindRenderbuffer = nullGLBindRenderbuffer;
473 functions->fCheckFramebufferStatus = noOpGLCheckFramebufferStatus; 476 functions->fCheckFramebufferStatus = noOpGLCheckFramebufferStatus;
474 functions->fDeleteFramebuffers = nullGLDeleteFramebuffers; 477 functions->fDeleteFramebuffers = nullGLDeleteFramebuffers;
475 functions->fDeleteRenderbuffers = nullGLDeleteRenderbuffers; 478 functions->fDeleteRenderbuffers = nullGLDeleteRenderbuffers;
476 functions->fFramebufferRenderbuffer = nullGLFramebufferRenderbuffer; 479 functions->fFramebufferRenderbuffer = nullGLFramebufferRenderbuffer;
477 functions->fFramebufferTexture2D = nullGLFramebufferTexture2D; 480 functions->fFramebufferTexture2D = nullGLFramebufferTexture2D;
478 functions->fGenFramebuffers = noOpGLGenIds; 481 functions->fGenFramebuffers = noOpGLGenIds;
479 functions->fGenRenderbuffers = noOpGLGenIds; 482 functions->fGenRenderbuffers = noOpGLGenIds;
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
550 interface->fCallbackData = reinterpret_cast<GrGLInterfaceCallbackData>(fStat e); 553 interface->fCallbackData = reinterpret_cast<GrGLInterfaceCallbackData>(fStat e);
551 #endif 554 #endif
552 } 555 }
553 556
554 SkNullGLContext::~SkNullGLContext() { 557 SkNullGLContext::~SkNullGLContext() {
555 fGL.reset(NULL); 558 fGL.reset(NULL);
556 fState->unref(); 559 fState->unref();
557 } 560 }
558 561
559 void SkNullGLContext::makeCurrent() const { set_current_context(fState); } 562 void SkNullGLContext::makeCurrent() 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