diff options
author | bsalomon <bsalomon@google.com> | 2015-11-23 11:14:20 -0800 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-11-23 11:14:20 -0800 |
commit | db4758c75fdd30ef58096c685e2d749aacaf3d92 (patch) | |
tree | 34f47cf8c55331acccad6c42451166c2084b59ed /src/gpu/batches/GrBatch.h | |
parent | 266f24aa9447813e978640e4b21c4dcaa0ec5f69 (diff) |
Restrict query bounds for reduce clip to dev bounds
Review URL: https://codereview.chromium.org/1467253002
Diffstat (limited to 'src/gpu/batches/GrBatch.h')
-rw-r--r-- | src/gpu/batches/GrBatch.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/gpu/batches/GrBatch.h b/src/gpu/batches/GrBatch.h index c5fc80c5d5..03e396a29c 100644 --- a/src/gpu/batches/GrBatch.h +++ b/src/gpu/batches/GrBatch.h @@ -31,6 +31,10 @@ class GrBatchFlushState; * If there are any possible optimizations which might require knowing more about the full state of * the draw, ie whether or not the GrBatch is allowed to tweak alpha for coverage, then this * information will be communicated to the GrBatch prior to geometry generation. + * + * The bounds of the batch must contain all the vertices in device space *irrespective* of the clip. + * The bounds are used in determining which clip elements must be applied and thus the bounds cannot + * in turn depend upon the clip. */ #define GR_BATCH_SPEW 0 #if GR_BATCH_SPEW |