Home | History | Annotate | Download | only in gpu

Lines Matching defs:GrContext

9 #include "GrContext.h"
58 class GrContext::AutoCheckFlush {
60 AutoCheckFlush(GrContext* context) : fContext(context) { SkASSERT(context); }
69 GrContext* fContext;
72 GrContext* GrContext::Create(GrBackend backend, GrBackendContext backendContext,
74 GrContext* context;
76 context = SkNEW_ARGS(GrContext, (Options()));
78 context = SkNEW_ARGS(GrContext, (*opts));
98 GrContext::GrContext(const Options& opts) : fOptions(opts), fUniqueID(next_id()) {
112 bool GrContext::init(GrBackend backend, GrBackendContext backendContext) {
123 void GrContext::initCommon() {
143 GrContext::~GrContext() {
167 void GrContext::abandonContext() {
188 void GrContext::resetContext(uint32_t state) {
192 void GrContext::freeGpuResources() {
208 void GrContext::getResourceCacheUsage(int* resourceCount, size_t* resourceBytes) const {
217 GrTextContext* GrContext::createTextContext(GrRenderTarget* renderTarget,
234 bool GrContext::isConfigTexturable(GrPixelConfig config) const {
238 bool GrContext::npotTextureTileSupport() const {
242 void GrContext::OverBudgetCB(void* data) {
245 GrContext* context = reinterpret_cast<GrContext*>(data);
251 void GrContext::TextBlobCacheOverBudgetCB(void* data) {
256 // drawText calls to below the GrContext level, but this is not trivial because they call
258 GrContext* context = reinterpret_cast<GrContext*>(data);
262 int GrContext::getMaxTextureSize() const {
266 int GrContext::getMaxRenderTargetSize() const {
270 int GrContext::getMaxSampleCount() const {
276 void GrContext::clear(const SkIRect* rect,
285 GR_CREATE_TRACE_MARKER_CONTEXT("GrContext::clear", this);
293 void GrContext::drawPaint(GrRenderTarget* rt,
338 GR_CREATE_TRACE_MARKER("GrContext::drawPaintWithPerspective", target);
576 void GrContext::drawRect(GrRenderTarget* rt,
597 GR_CREATE_TRACE_MARKER("GrContext::drawRect", target);
685 void GrContext::drawNonAARectToRect(GrRenderTarget* rt,
700 GR_CREATE_TRACE_MARKER("GrContext::drawRectToRect", target);
987 void GrContext::drawVertices(GrRenderTarget* rt,
1007 GR_CREATE_TRACE_MARKER("GrContext::drawVertices", target);
1036 void GrContext::drawRRect(GrRenderTarget*rt,
1061 GR_CREATE_TRACE_MARKER("GrContext::drawRRect", target);
1082 void GrContext::drawDRRect(GrRenderTarget* rt,
1097 GR_CREATE_TRACE_MARKER("GrContext::drawDRRect", target);
1120 void GrContext::drawOval(GrRenderTarget* rt,
1145 GR_CREATE_TRACE_MARKER("GrContext::drawOval", target);
1217 void GrContext::drawPath(GrRenderTarget* rt,
1245 GR_CREATE_TRACE_MARKER1("GrContext::drawPath", target, "Is Convex", path.isConvex());
1282 void GrContext::internalDrawPath(GrDrawTarget* target,
1292 GR_CREATE_TRACE_MARKER("GrContext::internalDrawPath", target);
1367 void GrContext::flush(int flagsBitfield) {
1400 bool GrContext::writeSurfacePixels(GrSurface* surface,
1530 bool GrContext::readRenderTargetPixels(GrRenderTarget* target,
1671 void GrContext::prepareSurfaceForExternalRead(GrSurface* surface) {
1684 void GrContext::discardRenderTarget(GrRenderTarget* renderTarget) {
1696 void GrContext::copySurface(GrSurface* dst, GrSurface* src, const SkIRect& srcRect,
1719 void GrContext::flushSurfaceWrites(GrSurface* surface) {
1726 GrDrawTarget* GrContext::prepareToDraw(GrPipelineBuilder* pipelineBuilder,
1741 GrDrawTarget* GrContext::prepareToDraw() {
1754 GrPathRenderer* GrContext::getPathRenderer(const GrDrawTarget* target,
1786 bool GrContext::isConfigRenderable(GrPixelConfig config, bool withMSAA) const {
1790 int GrContext::getRecommendedSampleCount(GrPixelConfig config,
1807 GrDrawTarget* GrContext::getTextTarget() {
1812 void test_pm_conversions(GrContext* ctx, int* pmToUPMValue, int* upmToPMValue) {
1821 const GrFragmentProcessor* GrContext::createPMToUPMEffect(GrTexture* texture,
1837 const GrFragmentProcessor* GrContext::createUPMToPMEffect(GrTexture* texture,
1855 void GrContext::getResourceCacheLimits(int* maxTextures, size_t* maxTextureBytes) const {
1864 void GrContext::setResourceCacheLimits(int maxTextures, size_t maxTextureBytes) {
1870 void GrContext::addGpuTraceMarker(const GrGpuTraceMarker* marker) {
1877 void GrContext::removeGpuTraceMarker(const GrGpuTraceMarker* marker) {