From e63ffef6248bd103b5f7827f1e4bc75e47ca9e20 Mon Sep 17 00:00:00 2001 From: bsalomon Date: Fri, 5 Feb 2016 07:17:34 -0800 Subject: Remove deferred clear from SkGpuDevice Add combining to GrClearBatch Fix issue with state tracking in GrGLGpu::createTestingOnlyBackendTexture Add tests for clearing GPU SkSurfaces and add tests for GrDrawContext::clear(). Add comment that SkCanvas::flush will resolve the RT in the GPU case. BUG=skia: GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1658823002 Review URL: https://codereview.chromium.org/1658823002 --- gm/imagefromyuvtextures.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'gm/imagefromyuvtextures.cpp') diff --git a/gm/imagefromyuvtextures.cpp b/gm/imagefromyuvtextures.cpp index 28d2cf84c5..c53df295cd 100644 --- a/gm/imagefromyuvtextures.cpp +++ b/gm/imagefromyuvtextures.cpp @@ -94,7 +94,7 @@ protected: } void createYUVTextures(GrContext* context, GrBackendObject yuvHandles[3]) { - const GrGpu* gpu = context->getGpu(); + GrGpu* gpu = context->getGpu(); if (!gpu) { return; } @@ -111,7 +111,7 @@ protected: void deleteYUVTextures(GrContext* context, const GrBackendObject yuvHandles[3]) { - const GrGpu* gpu = context->getGpu(); + GrGpu* gpu = context->getGpu(); if (!gpu) { return; } -- cgit v1.2.3