aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests
diff options
context:
space:
mode:
authorGravatar robertphillips <robertphillips@google.com>2015-11-11 13:18:11 -0800
committerGravatar Commit bot <commit-bot@chromium.org>2015-11-11 13:18:11 -0800
commitcaef3450488f98aa0bc429c4e2d8e29d6a7fece4 (patch)
tree4952b658de120e5cae3f034b73e47ef2e2671d48 /tests
parentdad57c8c48066a2e4b270b9f6992257f7090664c (diff)
Readd "immediate" mode
This isn't an exact replacement. The accumulated batches are now flushed at drawContext-entry-point granularity (via the AutoCheckFlush objects) rather than per batch. TBR=bsalomon@google.com Review URL: https://codereview.chromium.org/1439533003
Diffstat (limited to 'tests')
-rw-r--r--tests/GLProgramsTest.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/GLProgramsTest.cpp b/tests/GLProgramsTest.cpp
index dedd00959c..d1798fc8fa 100644
--- a/tests/GLProgramsTest.cpp
+++ b/tests/GLProgramsTest.cpp
@@ -301,8 +301,9 @@ static void set_random_stencil(GrPipelineBuilder* pipelineBuilder, SkRandom* ran
}
}
-bool GrDrawingManager::ProgramUnitTest(GrContext* context, GrDrawTarget* drawTarget, int maxStages) {
-
+bool GrDrawingManager::ProgramUnitTest(GrContext* context,
+ GrDrawTarget* drawTarget,
+ int maxStages) {
GrDrawingManager* drawingManager = context->drawingManager();
// setup dummy textures