OLD | NEW |
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 Loading... |
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 Loading... |
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_ |
OLD | NEW |