7322893af0
BUG=skia: R=bsalomon@chromium.org Author: junov@chromium.org Review URL: https://codereview.chromium.org/141813002 git-svn-id: http://skia.googlecode.com/svn/trunk@13119 2bbb7eff-a529-9590-31e7-b0007b416f81
29 lines
583 B
C++
29 lines
583 B
C++
|
|
/*
|
|
* Copyright 2011 Google Inc.
|
|
*
|
|
* Use of this source code is governed by a BSD-style license that can be
|
|
* found in the LICENSE file.
|
|
*/
|
|
#ifndef SkNullGLContext_DEFINED
|
|
#define SkNullGLContext_DEFINED
|
|
|
|
#include "SkGLContextHelper.h"
|
|
|
|
class SK_API SkNullGLContext : public SkGLContextHelper {
|
|
|
|
public:
|
|
SkNullGLContext() {};
|
|
|
|
virtual void makeCurrent() const SK_OVERRIDE {};
|
|
|
|
virtual void swapBuffers() const SK_OVERRIDE {};
|
|
|
|
protected:
|
|
virtual const GrGLInterface* createGLContext() SK_OVERRIDE;
|
|
|
|
virtual void destroyGLContext() SK_OVERRIDE {};
|
|
};
|
|
|
|
#endif
|