Lines Matching defs:GrContext

10 #include "GrContext.h"
46 GrContext* GrContext::Create(GrEngine engine,
48 GrContext* ctx = NULL;
51 ctx = new GrContext(fGpu);
57 GrContext::~GrContext() {
71 void GrContext::contextLost() {
76 void GrContext::contextDestroyed() {
102 void GrContext::resetContext() {
106 void GrContext::freeGpuResources() {
114 size_t GrContext::getGpuTextureCacheBytes() const {
120 int GrContext::PaintStageVertexLayoutBits(
151 GrTexture* GrContext::TextureCacheEntry::texture() const {
163 GrContext::TextureKey clientKey,
169 GR_STATIC_ASSERT(sizeof(GrContext::TextureKey) == sizeof(uint64_t));
223 GrContext::TextureCacheEntry GrContext::findAndLockTexture(
235 bool GrContext::isTextureInCache(TextureKey key,
245 GrResourceEntry* GrContext::addAndLockStencilBuffer(GrStencilBuffer* sb) {
253 GrStencilBuffer* GrContext::findStencilBuffer(int width, int height,
268 void GrContext::unlockStencilBuffer(GrResourceEntry* sbEntry) {
300 GrContext::TextureCacheEntry GrContext::createAndLockTexture(
306 SK_TRACE_EVENT0("GrContext::createAndLockTexture");
309 GrPrintf("GrContext::createAndLockTexture [%d %d]\n", desc.fWidth, desc.fHeight);
420 GrContext::TextureKey descKey = (desc.fFlags << 8) |
429 GrContext::TextureCacheEntry GrContext::lockScratchTexture(
499 void GrContext::unlockTexture(TextureCacheEntry entry) {
511 GrTexture* GrContext::createUncachedTexture(const GrTextureDesc& desc,
517 void GrContext::getTextureCacheLimits(int* maxTextures,
522 void GrContext::setTextureCacheLimits(int maxTextures, size_t maxTextureBytes) {
526 int GrContext::getMaxTextureSize() const {
530 int GrContext::getMaxRenderTargetSize() const {
536 GrTexture* GrContext::createPlatformTexture(const GrPlatformTextureDesc& desc) {
540 GrRenderTarget* GrContext::createPlatformRenderTarget(const GrPlatformRenderTargetDesc& desc) {
546 bool GrContext::supportsIndex8PixelConfig(const GrSamplerState* sampler,
568 const GrClip& GrContext::getClip() const { return fGpu->getClip(); }
570 void GrContext::setClip(const GrClip& clip) {
575 void GrContext::setClip(const GrIRect& rect) {
583 void GrContext::clear(const GrIRect* rect, const GrColor color) {
588 void GrContext::drawPaint(const GrPaint& paint) {
679 int GrContext::aaFillRectIndexCount() const {
683 GrIndexBuffer* GrContext::aaFillRectIndexBuffer() {
716 int GrContext::aaStrokeRectIndexCount() const {
720 GrIndexBuffer* GrContext::aaStrokeRectIndexBuffer() {
752 void GrContext::fillAARect(GrDrawTarget* target,
801 void GrContext::strokeAARect(GrDrawTarget* target,
943 void GrContext::drawRect(const GrPaint& paint,
947 SK_TRACE_EVENT0("GrContext::drawRect");
1050 void GrContext::drawRectToRect(const GrPaint& paint,
1055 SK_TRACE_EVENT0("GrContext::drawRectToRect");
1121 void GrContext::drawVertices(const GrPaint& paint,
1129 SK_TRACE_EVENT0("GrContext::drawVertices");
1259 GrContext* context,
1356 void GrContext::drawPath(const GrPaint& paint, const GrPath& path,
1440 void GrContext::flush(int flagsBitfield) {
1451 void GrContext::flushText() {
1457 void GrContext::flushDrawBuffer() {
1466 void GrContext::internalWriteTexturePixels(GrTexture* texture,
1473 SK_TRACE_EVENT0("GrContext::writeTexturePixels");
1489 bool GrContext::internalReadTexturePixels(GrTexture* texture,
1496 SK_TRACE_EVENT0("GrContext::readTexturePixels");
1540 bool GrContext::internalReadRenderTargetPixels(GrRenderTarget* target,
1547 SK_TRACE_EVENT0("GrContext::readRenderTargetPixels");
1668 void GrContext::resolveRenderTarget(GrRenderTarget* target) {
1678 void GrContext::copyTexture(GrTexture* src, GrRenderTarget* dst) {
1698 void GrContext::internalWriteRenderTargetPixels(GrRenderTarget* target,
1705 SK_TRACE_EVENT0("GrContext::writeRenderTargetPixels");
1805 void GrContext::setPaint(const GrPaint& paint, GrDrawTarget* target) {
1855 GrDrawTarget* GrContext::prepareToDraw(const GrPaint& paint,
1883 GrPathRenderer* GrContext::getPathRenderer(const GrPath& path,
1896 void GrContext::setRenderTarget(GrRenderTarget* target) {
1902 GrRenderTarget* GrContext::getRenderTarget() {
1906 const GrRenderTarget* GrContext::getRenderTarget() const {
1910 const GrMatrix& GrContext::getMatrix() const {
1914 void GrContext::setMatrix(const GrMatrix& m) {
1918 void GrContext::concatMatrix(const GrMatrix& m) const {
1932 void GrContext::resetStats() {
1936 const GrGpuStats& GrContext::getStats() const {
1940 void GrContext::printStats() const {
1944 GrContext::GrContext(GrGpu* gpu) {
1967 void GrContext::setupDrawBuffer() {
1993 GrDrawTarget* GrContext::getTextTarget(const GrPaint& paint) {
2004 const GrIndexBuffer* GrContext::getQuadIndexBuffer() const {
2008 void GrContext::convolve(GrTexture* texture,
2031 void GrContext::applyMorphology(GrTexture* texture,