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

Side by Side Diff: content/common/gpu/image_transport_surface.h

Issue 628703005: Remove GpuHostMsg_FrameDrawn and replace with client channel swap ack (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase, fix cros/threaded Created 6 years, 2 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 unified diff | 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 »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CONTENT_COMMON_GPU_IMAGE_TRANSPORT_SURFACE_H_ 5 #ifndef CONTENT_COMMON_GPU_IMAGE_TRANSPORT_SURFACE_H_
6 #define CONTENT_COMMON_GPU_IMAGE_TRANSPORT_SURFACE_H_ 6 #define CONTENT_COMMON_GPU_IMAGE_TRANSPORT_SURFACE_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/callback.h" 10 #include "base/callback.h"
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after
120 // IPC::Listener implementation: 120 // IPC::Listener implementation:
121 virtual bool OnMessageReceived(const IPC::Message& message) override; 121 virtual bool OnMessageReceived(const IPC::Message& message) override;
122 122
123 // Helper send functions. Caller fills in the surface specific params 123 // Helper send functions. Caller fills in the surface specific params
124 // like size and surface id. The helper fills in the rest. 124 // like size and surface id. The helper fills in the rest.
125 void SendAcceleratedSurfaceBuffersSwapped( 125 void SendAcceleratedSurfaceBuffersSwapped(
126 GpuHostMsg_AcceleratedSurfaceBuffersSwapped_Params params); 126 GpuHostMsg_AcceleratedSurfaceBuffersSwapped_Params params);
127 void SendUpdateVSyncParameters( 127 void SendUpdateVSyncParameters(
128 base::TimeTicks timebase, base::TimeDelta interval); 128 base::TimeTicks timebase, base::TimeDelta interval);
129 129
130 void SendLatencyInfo(const std::vector<ui::LatencyInfo>& latency_info); 130 void SwapBuffersCompleted(const std::vector<ui::LatencyInfo>& latency_info);
131 131
132 // Whether or not we should execute more commands. 132 // Whether or not we should execute more commands.
133 void SetScheduled(bool is_scheduled); 133 void SetScheduled(bool is_scheduled);
134 134
135 void DeferToFence(base::Closure task); 135 void DeferToFence(base::Closure task);
136 136
137 void SetPreemptByFlag( 137 void SetPreemptByFlag(
138 scoped_refptr<gpu::PreemptionFlag> preemption_flag); 138 scoped_refptr<gpu::PreemptionFlag> preemption_flag);
139 139
140 // Make the surface's context current. 140 // Make the surface's context current.
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
214 scoped_ptr<ImageTransportHelper> helper_; 214 scoped_ptr<ImageTransportHelper> helper_;
215 bool did_set_swap_interval_; 215 bool did_set_swap_interval_;
216 std::vector<ui::LatencyInfo> latency_info_; 216 std::vector<ui::LatencyInfo> latency_info_;
217 217
218 DISALLOW_COPY_AND_ASSIGN(PassThroughImageTransportSurface); 218 DISALLOW_COPY_AND_ASSIGN(PassThroughImageTransportSurface);
219 }; 219 };
220 220
221 } // namespace content 221 } // namespace content
222 222
223 #endif // CONTENT_COMMON_GPU_IMAGE_TRANSPORT_SURFACE_H_ 223 #endif // CONTENT_COMMON_GPU_IMAGE_TRANSPORT_SURFACE_H_
OLDNEW
« 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