| 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 03de927b15f894e53a29fdb59b8ace10a1df5f71..26460cf580d20910b7750a7e02cf070adcbb21c1 100644
|
| --- a/content/common/gpu/gpu_command_buffer_stub.h
|
| +++ b/content/common/gpu/gpu_command_buffer_stub.h
|
| @@ -12,6 +12,7 @@
|
| #include "base/id_map.h"
|
| #include "base/memory/weak_ptr.h"
|
| #include "base/observer_list.h"
|
| +#include "cc/latency_info.h"
|
| #include "content/common/content_export.h"
|
| #include "content/common/gpu/gpu_memory_allocation.h"
|
| #include "content/common/gpu/gpu_memory_manager.h"
|
| @@ -58,6 +59,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 SetPreemptByFlag(scoped_refptr<gpu::PreemptionFlag> flag);
|
|
|
| + void SetLatencyInfoCallback(const LatencyInfoCallback& callback);
|
| +
|
| + void SetLatencyInfo(const cc::LatencyInfo& latency_info);
|
| +
|
| private:
|
| GpuMemoryManager* GetMemoryManager();
|
| bool MakeCurrent();
|
| @@ -179,6 +187,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::PreemptionFlag> preemption_flag_;
|
|
|
| + LatencyInfoCallback latency_info_callback_;
|
| +
|
| GURL active_url_;
|
| size_t active_url_hash_;
|
|
|
|
|