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

Unified Diff: content/common/gpu/client/webgraphicscontext3d_command_buffer_impl.h

Issue 11293121: Add latency measurement system (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: minor input event changes Created 8 years 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: content/common/gpu/client/webgraphicscontext3d_command_buffer_impl.h
diff --git a/content/common/gpu/client/webgraphicscontext3d_command_buffer_impl.h b/content/common/gpu/client/webgraphicscontext3d_command_buffer_impl.h
index b88a8cdebca185fc7b95d8cdc8685e8238acdbf5..1ed9b871a9e50936faaea4432781c8338b0a211b 100644
--- a/content/common/gpu/client/webgraphicscontext3d_command_buffer_impl.h
+++ b/content/common/gpu/client/webgraphicscontext3d_command_buffer_impl.h
@@ -629,6 +629,10 @@ class WebGraphicsContext3DCommandBufferImpl
WGC3Denum type,
const void* pixels);
+ virtual void setLatencyInfoCHROMIUM(
+ const WebKit::WebLatencyInfo& latencyInfo);
+ virtual void setLatencyInfoCallbackCHROMIUM(
+ WebGraphicsLatencyInfoCallbackCHROMIUM* callback);
protected:
virtual GrGLInterface* onCreateGrGLInterface();
@@ -704,6 +708,8 @@ class WebGraphicsContext3DCommandBufferImpl
WebGraphicsMemoryAllocationChangedCallbackCHROMIUM* callback,
const GpuMemoryAllocationForRenderer& allocation);
+ void OnSetLatencyInfo(const WebKit::WebLatencyInfoImpl& latency_info);
+
// Convert the gpu cutoff enum to the WebKit enum.
static WebGraphicsMemoryAllocation::PriorityCutoff WebkitPriorityCutoff(
GpuMemoryAllocationForRenderer::PriorityCutoff priorityCutoff);
@@ -733,6 +739,9 @@ class WebGraphicsContext3DCommandBufferImpl
WebGraphicsContext3D::WebGraphicsSwapBuffersCompleteCallbackCHROMIUM*
swapbuffers_complete_callback_;
+ WebGraphicsContext3D::WebGraphicsLatencyInfoCallbackCHROMIUM*
+ latency_info_callback_;
+
WebKit::WebGraphicsContext3D::Attributes attributes_;
gfx::GpuPreference gpu_preference_;
int cached_width_, cached_height_;

Powered by Google App Engine
This is Rietveld 408576698