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

Unified Diff: src/gpu/GrClipMaskManager.cpp

Issue 1151283004: Split drawing functionality out of GrContext and into new GrDrawContext (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 5 years, 7 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/GrClipMaskManager.cpp
diff --git a/src/gpu/GrClipMaskManager.cpp b/src/gpu/GrClipMaskManager.cpp
index 15677fc18d9debe4347225fd266f4401b40a3799..38cbbf7635227a6f254c9c76390f773a409660cc 100644
--- a/src/gpu/GrClipMaskManager.cpp
+++ b/src/gpu/GrClipMaskManager.cpp
@@ -8,7 +8,8 @@
#include "GrClipMaskManager.h"
#include "GrAAConvexPathRenderer.h"
#include "GrAAHairLinePathRenderer.h"
-#include "GrAARectRenderer.h"
+#include "GrDrawContext.h"
+#include "GrDrawTarget.h"
#include "GrDrawTargetCaps.h"
#include "GrPaint.h"
#include "GrPathRenderer.h"
@@ -394,14 +395,12 @@ bool GrClipMaskManager::drawElement(GrPipelineBuilder* pipelineBuilder,
if (element->isAA()) {
SkRect devRect = element->getRect();
viewMatrix.mapRect(&devRect);
- this->getContext()->getAARectRenderer()->fillAARect(fClipTarget,
- pipelineBuilder,
- color,
- viewMatrix,
- element->getRect(),
- devRect);
+
+ fClipTarget->drawAARect(pipelineBuilder, color, viewMatrix,
+ element->getRect(), devRect);
} else {
- fClipTarget->drawSimpleRect(pipelineBuilder, color, viewMatrix, element->getRect());
+ fClipTarget->drawSimpleRect(pipelineBuilder, color, viewMatrix,
+ element->getRect());
}
return true;
default: {

Powered by Google App Engine
This is Rietveld 408576698