| Index: include/gpu/gl/SkGLContextHelper.h
|
| diff --git a/include/gpu/gl/SkGLContextHelper.h b/include/gpu/gl/SkGLContextHelper.h
|
| index 97d416b34a7a5923c00ff1cbe9734787717134d0..44eb509a044262414b83cbb6379ad71f8b8d4a4c 100644
|
| --- a/include/gpu/gl/SkGLContextHelper.h
|
| +++ b/include/gpu/gl/SkGLContextHelper.h
|
| @@ -34,6 +34,18 @@ public:
|
|
|
| virtual void makeCurrent() const = 0;
|
|
|
| + /**
|
| + * The primary purpose of this function it to provide a means of scheduling
|
| + * work on the GPU (since all of the subclasses create primary buffers for
|
| + * testing that are small and not meant to be rendered to the screen).
|
| + *
|
| + * If the drawing surface provided by the platform is double buffered this
|
| + * call will cause the platform to swap which buffer is currently being
|
| + * targeted. If the current surface does not include a back buffer, this
|
| + * call has no effect.
|
| + */
|
| + virtual void swapBuffers() const = 0;
|
| +
|
| bool hasExtension(const char* extensionName) const {
|
| SkASSERT(NULL != fGL);
|
| return fExtensions.has(extensionName);
|
|
|