Hiding draw batch flush scope.

This commit is contained in:
Ben Vanik 2015-03-22 11:41:46 -07:00
parent 11b0c076bd
commit f8db3774cb
3 changed files with 4 additions and 2 deletions

View File

@ -22,8 +22,6 @@
#include "third_party/xxhash/xxhash.h"
#define FINE_GRAINED_DRAW_SCOPES 0
namespace xe {
namespace gpu {
namespace gl4 {

View File

@ -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);

View File

@ -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 {