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

Unified Diff: content/common/gpu/image_transport_surface.h

Issue 123563002: Remove gpu side LatencyInfo merging (Closed) Base URL: http://git.chromium.org/chromium/src.git@gpu-per-event-latency-6-small
Patch Set: fix mac_rel compiler error. Move kMaxLatencyInfoNumber to .cc file Created 6 years, 11 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
« no previous file with comments | « content/common/gpu/gpu_messages.h ('k') | content/common/gpu/image_transport_surface.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/common/gpu/image_transport_surface.h
diff --git a/content/common/gpu/image_transport_surface.h b/content/common/gpu/image_transport_surface.h
index 0bad48c4af91cb157dd441d6bb6a68e56038e7d3..40c258f4e67746fccd145598fedd8ae48a4b49a3 100644
--- a/content/common/gpu/image_transport_surface.h
+++ b/content/common/gpu/image_transport_surface.h
@@ -63,7 +63,7 @@ class ImageTransportSurface {
virtual void OnResizeViewACK() = 0;
virtual void OnResize(gfx::Size size, float scale_factor) = 0;
virtual void SetLatencyInfo(
- const ui::LatencyInfo& latency_info) = 0;
+ const std::vector<ui::LatencyInfo>& latency_info) = 0;
virtual void WakeUpGpu() = 0;
// Creates a surface with the given attributes.
@@ -125,7 +125,7 @@ class ImageTransportHelper
void SendUpdateVSyncParameters(
base::TimeTicks timebase, base::TimeDelta interval);
- void SendLatencyInfo(const ui::LatencyInfo& latency_info);
+ void SendLatencyInfo(const std::vector<ui::LatencyInfo>& latency_info);
// Whether or not we should execute more commands.
void SetScheduled(bool is_scheduled);
@@ -159,7 +159,7 @@ class ImageTransportHelper
// Backbuffer resize callback.
void Resize(gfx::Size size, float scale_factor);
- void SetLatencyInfo(const ui::LatencyInfo& latency_info);
+ void SetLatencyInfo(const std::vector<ui::LatencyInfo>& latency_info);
// Weak pointers that point to objects that outlive this helper.
ImageTransportSurface* surface_;
@@ -198,7 +198,7 @@ class PassThroughImageTransportSurface
virtual void OnResize(gfx::Size size, float scale_factor) OVERRIDE;
virtual gfx::Size GetSize() OVERRIDE;
virtual void SetLatencyInfo(
- const ui::LatencyInfo& latency_info) OVERRIDE;
+ const std::vector<ui::LatencyInfo>& latency_info) OVERRIDE;
virtual void WakeUpGpu() OVERRIDE;
protected:
@@ -217,7 +217,7 @@ class PassThroughImageTransportSurface
bool did_set_swap_interval_;
bool did_unschedule_;
bool is_swap_buffers_pending_;
- ui::LatencyInfo latency_info_;
+ std::vector<ui::LatencyInfo> latency_info_;
DISALLOW_COPY_AND_ASSIGN(PassThroughImageTransportSurface);
};
« no previous file with comments | « content/common/gpu/gpu_messages.h ('k') | content/common/gpu/image_transport_surface.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698