Added metrics gathering for GL calls 44/24144/1
authorDavid Steele <david.steele@partner.samsung.com>
Tue, 1 Jul 2014 16:56:08 +0000 (17:56 +0100)
committerAdeel Kazmi <adeel.kazmi@samsung.com>
Tue, 8 Jul 2014 16:06:51 +0000 (17:06 +0100)
commitfeacfe58828d12ba8cbe0a4c37cb32149dcc34ac
tree6cd45db27bb5f26588812e95942942f10da08273
parentee90c7e97e08068daa0daa5e5f07941e5fc2e75e
Added metrics gathering for GL calls

[solution]     Added a gl proxy implementation class that overrides the methods
that we're interested in gathering metrics on, and only use this proxy implementation
if the DALI_GRAPHICS_STATUS_TIME environment variable is set.
Added calls from RenderThread to use the new PreRender and PostRender methods in the
GL abstraction -this enables the proxy implementation to count per-frame data.

Change-Id: I25e09664f6b2f3fd9a6b33f99622d547362e2849
Signed-off-by: David Steele <david.steele@partner.samsung.com>
Signed-off-by: Adeel Kazmi <adeel.kazmi@samsung.com>
12 files changed:
adaptors/base/environment-options.cpp
adaptors/base/environment-options.h
adaptors/base/environment-variables.h
adaptors/base/render-thread.cpp
adaptors/base/render-thread.h
adaptors/tizen/internal/common/adaptor-impl.cpp
adaptors/tizen/internal/common/file.list
adaptors/tizen/internal/common/gl/gl-implementation.h
adaptors/tizen/internal/common/gl/gl-proxy-implementation.cpp [new file with mode: 0644]
adaptors/tizen/internal/common/gl/gl-proxy-implementation.h [new file with mode: 0644]
automated-tests/src/dali-adaptor/dali-test-suite-utils/test-gl-abstraction.cpp
automated-tests/src/dali-adaptor/dali-test-suite-utils/test-gl-abstraction.h