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 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
111 // IPC::Listener implementation: | 111 // IPC::Listener implementation: |
112 virtual bool OnMessageReceived(const IPC::Message& message) override; | 112 virtual bool OnMessageReceived(const IPC::Message& message) override; |
113 | 113 |
114 // Helper send functions. Caller fills in the surface specific params | 114 // Helper send functions. Caller fills in the surface specific params |
115 // like size and surface id. The helper fills in the rest. | 115 // like size and surface id. The helper fills in the rest. |
116 void SendAcceleratedSurfaceBuffersSwapped( | 116 void SendAcceleratedSurfaceBuffersSwapped( |
117 GpuHostMsg_AcceleratedSurfaceBuffersSwapped_Params params); | 117 GpuHostMsg_AcceleratedSurfaceBuffersSwapped_Params params); |
118 void SendUpdateVSyncParameters( | 118 void SendUpdateVSyncParameters( |
119 base::TimeTicks timebase, base::TimeDelta interval); | 119 base::TimeTicks timebase, base::TimeDelta interval); |
120 | 120 |
121 void SendLatencyInfo(const std::vector<ui::LatencyInfo>& latency_info); | 121 void SwapBuffersCompleted(const std::vector<ui::LatencyInfo>& latency_info); |
122 | 122 |
123 // Whether or not we should execute more commands. | 123 // Whether or not we should execute more commands. |
124 void SetScheduled(bool is_scheduled); | 124 void SetScheduled(bool is_scheduled); |
125 | 125 |
126 void DeferToFence(base::Closure task); | 126 void DeferToFence(base::Closure task); |
127 | 127 |
128 void SetPreemptByFlag( | 128 void SetPreemptByFlag( |
129 scoped_refptr<gpu::PreemptionFlag> preemption_flag); | 129 scoped_refptr<gpu::PreemptionFlag> preemption_flag); |
130 | 130 |
131 // Make the surface's context current. | 131 // Make the surface's context current. |
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
201 scoped_ptr<ImageTransportHelper> helper_; | 201 scoped_ptr<ImageTransportHelper> helper_; |
202 bool did_set_swap_interval_; | 202 bool did_set_swap_interval_; |
203 std::vector<ui::LatencyInfo> latency_info_; | 203 std::vector<ui::LatencyInfo> latency_info_; |
204 | 204 |
205 DISALLOW_COPY_AND_ASSIGN(PassThroughImageTransportSurface); | 205 DISALLOW_COPY_AND_ASSIGN(PassThroughImageTransportSurface); |
206 }; | 206 }; |
207 | 207 |
208 } // namespace content | 208 } // namespace content |
209 | 209 |
210 #endif // CONTENT_COMMON_GPU_IMAGE_TRANSPORT_SURFACE_H_ | 210 #endif // CONTENT_COMMON_GPU_IMAGE_TRANSPORT_SURFACE_H_ |
OLD | NEW |