Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(240)

Unified Diff: src/gpu/GrTextContext.cpp

Issue 913693002: Clean up clipping code a bit (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Fix assert Created 5 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: src/gpu/GrTextContext.cpp
diff --git a/src/gpu/GrTextContext.cpp b/src/gpu/GrTextContext.cpp
index e62136507c4ea039561adcaeed63523b51b27e69..bc544ad4a00f0623d0ede6efc76c097bc2167e02 100644
--- a/src/gpu/GrTextContext.cpp
+++ b/src/gpu/GrTextContext.cpp
@@ -24,15 +24,9 @@ GrTextContext::~GrTextContext() {
void GrTextContext::init(const GrPaint& grPaint, const SkPaint& skPaint) {
const GrClipData* clipData = fContext->getClip();
- SkRect devConservativeBound;
- clipData->fClipStack->getConservativeBounds(
- -clipData->fOrigin.fX,
- -clipData->fOrigin.fY,
- fContext->getRenderTarget()->width(),
+ clipData->getConservativeBounds(fContext->getRenderTarget()->width(),
fContext->getRenderTarget()->height(),
- &devConservativeBound);
-
- devConservativeBound.roundOut(&fClipRect);
+ &fClipRect);
fDrawTarget = fContext->getTextTarget();

Powered by Google App Engine
This is Rietveld 408576698