| Index: content/common/gpu/gpu_command_buffer_stub.h
|
| diff --git a/content/common/gpu/gpu_command_buffer_stub.h b/content/common/gpu/gpu_command_buffer_stub.h
|
| index c133eccdc4750fc3f3a8d0a4567b32e09df1d34b..64cb4c9444e38b8325d081908da8fad948185ee2 100644
|
| --- a/content/common/gpu/gpu_command_buffer_stub.h
|
| +++ b/content/common/gpu/gpu_command_buffer_stub.h
|
| @@ -29,6 +29,7 @@
|
| #include "ui/gl/gl_surface.h"
|
| #include "ui/gl/gpu_preference.h"
|
| #include "ui/surface/transport_dib.h"
|
| +#include "webkit/compositor_bindings/web_latency_info_impl.h"
|
|
|
| #if defined(OS_MACOSX)
|
| #include "ui/surface/accelerated_surface_mac.h"
|
| @@ -62,6 +63,9 @@ class GpuCommandBufferStub
|
| virtual ~DestructionObserver() {}
|
| };
|
|
|
| + typedef base::Callback<void(const cc::LatencyInfo&)>
|
| + LatencyInfoCallback;
|
| +
|
| GpuCommandBufferStub(
|
| GpuChannel* channel,
|
| GpuCommandBufferStub* share_group,
|
| @@ -132,6 +136,10 @@ class GpuCommandBufferStub
|
|
|
| void SetPreemptByCounter(scoped_refptr<gpu::RefCountedCounter> counter);
|
|
|
| + void SetLatencyInfoCallback(const LatencyInfoCallback& callback);
|
| +
|
| + void SetLatencyInfo(const cc::LatencyInfo& latency_info);
|
| +
|
| private:
|
| GpuMemoryManager* GetMemoryManager();
|
| bool MakeCurrent();
|
| @@ -181,6 +189,7 @@ class GpuCommandBufferStub
|
|
|
| void OnCommandProcessed();
|
| void OnParseError();
|
| + void OnSetLatencyInfo(const cc::LatencyInfo& latency_info);
|
|
|
| void ReportState();
|
|
|
| @@ -244,6 +253,8 @@ class GpuCommandBufferStub
|
|
|
| scoped_refptr<gpu::RefCountedCounter> preempt_by_counter_;
|
|
|
| + LatencyInfoCallback latency_info_callback_;
|
| +
|
| GURL active_url_;
|
| size_t active_url_hash_;
|
|
|
|
|