diff options
author | jbauman@chromium.org <jbauman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-06-08 16:02:46 +0000 |
---|---|---|
committer | jbauman@chromium.org <jbauman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-06-08 16:02:46 +0000 |
commit | cd841fc15ef3d70571e180cb074e8fdeb0bc3cb9 (patch) | |
tree | ff05dc9de26255d796e83bd44dd7193374d16402 /content/browser/gpu/gpu_surface_tracker.cc | |
parent | e451b807a2f5e6b3aa59ea8f6f8412e49bffa7c6 (diff) | |
download | chromium_src-cd841fc15ef3d70571e180cb074e8fdeb0bc3cb9.zip chromium_src-cd841fc15ef3d70571e180cb074e8fdeb0bc3cb9.tar.gz chromium_src-cd841fc15ef3d70571e180cb074e8fdeb0bc3cb9.tar.bz2 |
Allow Latency measurement on win aura.
These surfaces aren't assocated with renderwidgets, so they LatencyInfo has to go through the CompositorFrameDrawn path.
BUG=155367
Review URL: https://chromiumcodereview.appspot.com/16564007
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@205065 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content/browser/gpu/gpu_surface_tracker.cc')
-rw-r--r-- | content/browser/gpu/gpu_surface_tracker.cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/content/browser/gpu/gpu_surface_tracker.cc b/content/browser/gpu/gpu_surface_tracker.cc index ce1e956..350e6f3 100644 --- a/content/browser/gpu/gpu_surface_tracker.cc +++ b/content/browser/gpu/gpu_surface_tracker.cc @@ -121,6 +121,8 @@ bool GpuSurfaceTracker::GetRenderWidgetIDForSurface(int surface_id, if (it == surface_map_.end()) return false; const SurfaceInfo& info = it->second; + if (!info.handle.is_transport()) + return false; *renderer_id = info.renderer_id; *render_widget_id = info.render_widget_id; return true; |