projects
/
platform
/
upstream
/
libSkiaSharp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4089ef7
)
Fix GPU trace marker bug
author
robertphillips
<robertphillips@google.com>
Thu, 5 Mar 2015 16:55:28 +0000
(08:55 -0800)
committer
Commit bot
<commit-bot@chromium.org>
Thu, 5 Mar 2015 16:55:28 +0000
(08:55 -0800)
Without this patch the GPU trace markers can be potentially unbalanced when batching occurs.
Review URL: https://codereview.chromium.org/
981973002
src/gpu/GrTargetCommands.cpp
patch
|
blob
|
history
diff --git
a/src/gpu/GrTargetCommands.cpp
b/src/gpu/GrTargetCommands.cpp
index d326226d1f37719dae4e996c7dc6152f76bd9725..30920f884d959a6639a0e1f907e077576521d905 100644
(file)
--- a/
src/gpu/GrTargetCommands.cpp
+++ b/
src/gpu/GrTargetCommands.cpp
@@
-319,6
+319,10
@@
void GrTargetCommands::flush(GrInOrderDrawBuffer* iodb) {
if (Cmd::kDrawBatch_Cmd == iter->type()) {
DrawBatch* db = reinterpret_cast<DrawBatch*>(iter.get());
fBatchTarget.flushNext(db->fBatch->numberOfDraws());
+
+ if (iter->isTraced()) {
+ gpu->removeGpuTraceMarker(&newMarker);
+ }
continue;
}