Hiding draw batch flush scope.
This commit is contained in:
parent
11b0c076bd
commit
f8db3774cb
|
@ -22,8 +22,6 @@
|
|||
|
||||
#include "third_party/xxhash/xxhash.h"
|
||||
|
||||
#define FINE_GRAINED_DRAW_SCOPES 0
|
||||
|
||||
namespace xe {
|
||||
namespace gpu {
|
||||
namespace gl4 {
|
||||
|
|
|
@ -259,7 +259,9 @@ bool DrawBatcher::CommitDraw() {
|
|||
|
||||
bool DrawBatcher::Flush(FlushMode mode) {
|
||||
if (batch_state_.draw_count) {
|
||||
#if FINE_GRAINED_DRAW_SCOPES
|
||||
SCOPE_profile_cpu_f("gpu");
|
||||
#endif // FINE_GRAINED_DRAW_SCOPES
|
||||
|
||||
assert_not_zero(batch_state_.command_stride);
|
||||
assert_not_zero(batch_state_.state_stride);
|
||||
|
|
|
@ -25,6 +25,8 @@ DECLARE_bool(vendor_gl_extensions);
|
|||
DECLARE_bool(disable_framebuffer_readback);
|
||||
DECLARE_bool(disable_textures);
|
||||
|
||||
#define FINE_GRAINED_DRAW_SCOPES 0
|
||||
|
||||
namespace xe {
|
||||
namespace gpu {
|
||||
namespace gl4 {
|
||||
|
|
Loading…
Reference in New Issue