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

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

Issue 1434813002: Add support for EGLImage to GrGLInterface (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: cleanup Created 5 years, 1 month 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/GrGLInterface.cpp ('k') | src/gpu/gl/android/GrGLCreateNativeInterface_android.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 473 matching lines...) Expand 10 before | Expand all | Expand 10 after
484 functions->fGetRenderbufferParameteriv = noOpGLGetRenderbufferParameteriv; 484 functions->fGetRenderbufferParameteriv = noOpGLGetRenderbufferParameteriv;
485 functions->fRenderbufferStorage = noOpGLRenderbufferStorage; 485 functions->fRenderbufferStorage = noOpGLRenderbufferStorage;
486 functions->fRenderbufferStorageMultisample = noOpGLRenderbufferStorageMultis ample; 486 functions->fRenderbufferStorageMultisample = noOpGLRenderbufferStorageMultis ample;
487 functions->fBlitFramebuffer = noOpGLBlitFramebuffer; 487 functions->fBlitFramebuffer = noOpGLBlitFramebuffer;
488 functions->fResolveMultisampleFramebuffer = noOpGLResolveMultisampleFramebuf fer; 488 functions->fResolveMultisampleFramebuffer = noOpGLResolveMultisampleFramebuf fer;
489 functions->fMatrixLoadf = noOpGLMatrixLoadf; 489 functions->fMatrixLoadf = noOpGLMatrixLoadf;
490 functions->fMatrixLoadIdentity = noOpGLMatrixLoadIdentity; 490 functions->fMatrixLoadIdentity = noOpGLMatrixLoadIdentity;
491 functions->fBindFragDataLocationIndexed = noOpGLBindFragDataLocationIndexed; 491 functions->fBindFragDataLocationIndexed = noOpGLBindFragDataLocationIndexed;
492 492
493 interface->fExtensions.init(kGL_GrGLStandard, functions->fGetString, functio ns->fGetStringi, 493 interface->fExtensions.init(kGL_GrGLStandard, functions->fGetString, functio ns->fGetStringi,
494 functions->fGetIntegerv); 494 functions->fGetIntegerv, nullptr, GR_EGL_NO_DISP LAY);
495 return interface; 495 return interface;
496 } 496 }
497 497
498 ////////////////////////////////////////////////////////////////////////////// 498 //////////////////////////////////////////////////////////////////////////////
499 499
500 static void* create_tls() { 500 static void* create_tls() {
501 State** current = new State*; 501 State** current = new State*;
502 *current = nullptr; 502 *current = nullptr;
503 return current; 503 return current;
504 } 504 }
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
553 interface->fCallbackData = reinterpret_cast<GrGLInterfaceCallbackData>(fStat e); 553 interface->fCallbackData = reinterpret_cast<GrGLInterfaceCallbackData>(fStat e);
554 #endif 554 #endif
555 } 555 }
556 556
557 SkNullGLContext::~SkNullGLContext() { 557 SkNullGLContext::~SkNullGLContext() {
558 this->teardown(); 558 this->teardown();
559 fState->unref(); 559 fState->unref();
560 } 560 }
561 561
562 void SkNullGLContext::onPlatformMakeCurrent() const { set_current_context(fState ); } 562 void SkNullGLContext::onPlatformMakeCurrent() const { set_current_context(fState ); }
OLDNEW
« no previous file with comments | « src/gpu/gl/GrGLInterface.cpp ('k') | src/gpu/gl/android/GrGLCreateNativeInterface_android.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698