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

Unified Diff: src/gpu/GrDrawTarget.cpp

Issue 1073943004: Join non-overlapping Xfer barriers (Closed) Base URL: https://skia.googlesource.com/skia.git@upload_4_implementxferbarriers
Patch Set: Created 5 years, 8 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
« no previous file with comments | « src/gpu/GrDrawTarget.h ('k') | src/gpu/GrTargetCommands.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/gpu/GrDrawTarget.cpp
diff --git a/src/gpu/GrDrawTarget.cpp b/src/gpu/GrDrawTarget.cpp
index 218b729faf01eae1f281699c3c4c53dfedb70a92..e0e9184d9af618214b766365533bdedd85cc5ca1 100644
--- a/src/gpu/GrDrawTarget.cpp
+++ b/src/gpu/GrDrawTarget.cpp
@@ -1065,6 +1065,15 @@ bool GrDrawTarget::PipelineInfo::getConservativeDrawBounds(SkIRect* outBounds) c
return true;
}
+void GrDrawTarget::PipelineInfo::getQuickDrawBounds(SkIRect* outBounds) const {
+ if (fHasDrawBounds) {
+ fDrawBounds.roundOut(outBounds);
+ } else {
+ GrRenderTarget* rt = fPipelineBuilder->getRenderTarget();
+ *outBounds = SkIRect::MakeWH(rt->width(), rt->height());
+ }
+}
+
///////////////////////////////////////////////////////////////////////////////
void GrDrawTargetCaps::reset() {
« no previous file with comments | « src/gpu/GrDrawTarget.h ('k') | src/gpu/GrTargetCommands.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698