SkGLCanvas Class Reference
#include <SkGLCanvas.h>
Inherits SkCanvas.
List of all members.
Detailed Description
Definition at line 31 of file SkGLCanvas.h.
Constructor & Destructor Documentation
SkGLCanvas::SkGLCanvas |
( |
|
) |
|
virtual SkGLCanvas::~SkGLCanvas |
( |
|
) |
[virtual] |
Member Function Documentation
static void SkGLCanvas::AbandonAllTextures |
( |
|
) |
[static] |
Forget all textures without calling delete (including those for text). This should be called if the gl-context has changed, and the texture IDs that have been cached are no longer valid.
virtual SkDevice* SkGLCanvas::createDevice |
( |
SkBitmap::Config |
, |
|
|
int |
width, |
|
|
int |
height, |
|
|
bool |
isOpaque, |
|
|
bool |
isForLayer | |
|
) |
| | [virtual] |
May be overridden by subclasses. This returns a compatible device for this canvas, with the specified config/width/height. If isOpaque is true, then the underlying bitmap is optimized to assume that every pixel will be drawn to, and thus it does not need to clear the alpha channel ahead of time (assuming the specified config supports per-pixel alpha.) If isOpaque is false, then the bitmap should clear its alpha channel.
Reimplemented from SkCanvas.
static void SkGLCanvas::DeleteAllTextures |
( |
|
) |
[static] |
Call glDeleteTextures for all textures (including those for text) This should be called while the gl-context is still valid. Its purpose is to free up gl resources. Note that if a bitmap or text is drawn after this call, new caches will be created.
static size_t SkGLCanvas::GetTextureCacheMaxCount |
( |
|
) |
[static] |
static size_t SkGLCanvas::GetTextureCacheMaxSize |
( |
|
) |
[static] |
virtual bool SkGLCanvas::getViewport |
( |
SkIPoint * |
size |
) |
const [virtual] |
If this subclass of SkCanvas supports GL viewports, return true and set size (if not null) to the size of the viewport. If it is not supported, ignore vp and return false.
Reimplemented from SkCanvas.
static void SkGLCanvas::SetTextureCacheMaxCount |
( |
size_t |
count |
) |
[static] |
static void SkGLCanvas::SetTextureCacheMaxSize |
( |
size_t |
size |
) |
[static] |
virtual bool SkGLCanvas::setViewport |
( |
int |
x, |
|
|
int |
y | |
|
) |
| | [virtual] |
If this subclass of SkCanvas supports GL viewports, return true and set the viewport to the specified x and y dimensions. If it is not supported, ignore x and y and return false.
Reimplemented from SkCanvas.
The documentation for this class was generated from the following file: