Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2311)

Unified Diff: ui/gl/gl_context.h

Issue 937263006: Refactored GLContext to own GPUTiming which spawn GPUTimingClients. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: ui/gl/gl_context.h
diff --git a/ui/gl/gl_context.h b/ui/gl/gl_context.h
index 5eac8383f38d40c5afc67a560ea3566208735327..1ba61d0c33a9b2e37f660adfd8e37bd86bd93659 100644
--- a/ui/gl/gl_context.h
+++ b/ui/gl/gl_context.h
@@ -16,6 +16,10 @@
#include "ui/gl/gl_state_restorer.h"
#include "ui/gl/gpu_preference.h"
+namespace gpu {
+ class GPUTiming;
+}
+
namespace gfx {
class GLSurface;
@@ -91,6 +95,10 @@ class GL_EXPORT GLContext : public base::RefCounted<GLContext> {
// current.
const GLVersionInfo* GetVersionInfo();
+ // Returns a GPUTiming object used to create GPUTimingClients. This class
+ // is used to abstract the various GPU Timing extensions.
+ gpu::GPUTiming* GetGPUTiming();
+
GLShareGroup* share_group();
// Create a GL context that is compatible with the given surface.
@@ -163,6 +171,7 @@ class GL_EXPORT GLContext : public base::RefCounted<GLContext> {
scoped_ptr<VirtualGLApi> virtual_gl_api_;
scoped_ptr<GLStateRestorer> state_restorer_;
scoped_ptr<GLVersionInfo> version_info_;
+ scoped_ptr<gpu::GPUTiming> gpu_timing_;
int swap_interval_;
bool force_swap_interval_zero_;

Powered by Google App Engine
This is Rietveld 408576698