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

Unified Diff: src/gpu/GrInOrderDrawBuffer.cpp

Issue 1143153008: Fall back to older inorder buffer if we have NVPR (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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/gpu/GrInOrderDrawBuffer.cpp
diff --git a/src/gpu/GrInOrderDrawBuffer.cpp b/src/gpu/GrInOrderDrawBuffer.cpp
index 3827830de94dbdabc95f979cd28b5c0fa7969528..8345c0a48176996e183b7ee495c4f2f7610533b8 100644
--- a/src/gpu/GrInOrderDrawBuffer.cpp
+++ b/src/gpu/GrInOrderDrawBuffer.cpp
@@ -7,11 +7,13 @@
#include "GrInOrderDrawBuffer.h"
-static const bool kEnableReordering = true;
-
+// We will use the reordering buffer, unless we have NVPR.
+// TODO move NVPR to batch so we can reorder
GrInOrderDrawBuffer::GrInOrderDrawBuffer(GrContext* context)
: INHERITED(context)
- , fCommands(GrCommandBuilder::Create(context->getGpu(), kEnableReordering))
+ , fCommands(GrCommandBuilder::Create(
bsalomon 2015/05/27 17:16:06 seems like a lot of logic in the init list. stati
+ context->getGpu(),
+ !context->getGpu()->caps()->shaderCaps()->pathRenderingSupport()))
, fPathIndexBuffer(kPathIdxBufferMinReserve * sizeof(char)/4)
, fPathTransformBuffer(kPathXformBufferMinReserve * sizeof(float)/4)
, fPipelineBuffer(kPipelineBufferMinReserve)
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698