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_PORT_BROWSER_RENDER_WIDGET_HOST_VIEW_PORT_H_ | 5 #ifndef CONTENT_PORT_BROWSER_RENDER_WIDGET_HOST_VIEW_PORT_H_ |
6 #define CONTENT_PORT_BROWSER_RENDER_WIDGET_HOST_VIEW_PORT_H_ | 6 #define CONTENT_PORT_BROWSER_RENDER_WIDGET_HOST_VIEW_PORT_H_ |
7 | 7 |
8 #include "base/callback.h" | 8 #include "base/callback.h" |
9 #include "base/process_util.h" | 9 #include "base/process_util.h" |
10 #include "base/string16.h" | 10 #include "base/string16.h" |
(...skipping 207 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
218 // enforced; this case is currently used for accelerated plugins. | 218 // enforced; this case is currently used for accelerated plugins. |
219 virtual void AcceleratedSurfaceBuffersSwapped( | 219 virtual void AcceleratedSurfaceBuffersSwapped( |
220 const GpuHostMsg_AcceleratedSurfaceBuffersSwapped_Params& params_in_pixel, | 220 const GpuHostMsg_AcceleratedSurfaceBuffersSwapped_Params& params_in_pixel, |
221 int gpu_host_id) = 0; | 221 int gpu_host_id) = 0; |
222 // Similar to above, except |params.(x|y|width|height)| define the region | 222 // Similar to above, except |params.(x|y|width|height)| define the region |
223 // of the surface that changed. | 223 // of the surface that changed. |
224 virtual void AcceleratedSurfacePostSubBuffer( | 224 virtual void AcceleratedSurfacePostSubBuffer( |
225 const GpuHostMsg_AcceleratedSurfacePostSubBuffer_Params& params_in_pixel, | 225 const GpuHostMsg_AcceleratedSurfacePostSubBuffer_Params& params_in_pixel, |
226 int gpu_host_id) = 0; | 226 int gpu_host_id) = 0; |
227 | 227 |
| 228 // Request a periodic vsync signal notification from the View. The signal will |
| 229 // be delivered until explicitly disabled. |
| 230 virtual void EnableVSyncNotification(bool enable) = 0; |
| 231 |
228 // Release the accelerated surface temporarily. It will be recreated on the | 232 // Release the accelerated surface temporarily. It will be recreated on the |
229 // next swap buffers or post sub buffer. | 233 // next swap buffers or post sub buffer. |
230 virtual void AcceleratedSurfaceSuspend() = 0; | 234 virtual void AcceleratedSurfaceSuspend() = 0; |
231 | 235 |
232 virtual void AcceleratedSurfaceRelease() = 0; | 236 virtual void AcceleratedSurfaceRelease() = 0; |
233 | 237 |
234 // Return true if the view has an accelerated surface that contains the last | 238 // Return true if the view has an accelerated surface that contains the last |
235 // presented frame for the view. If |desired_size| is non-empty, true is | 239 // presented frame for the view. If |desired_size| is non-empty, true is |
236 // returned only if the accelerated surface size matches. | 240 // returned only if the accelerated surface size matches. |
237 virtual bool HasAcceleratedSurface(const gfx::Size& desired_size) = 0; | 241 virtual bool HasAcceleratedSurface(const gfx::Size& desired_size) = 0; |
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
314 #endif | 318 #endif |
315 | 319 |
316 #if defined(OS_WIN) && !defined(USE_AURA) | 320 #if defined(OS_WIN) && !defined(USE_AURA) |
317 virtual void WillWmDestroy() = 0; | 321 virtual void WillWmDestroy() = 0; |
318 #endif | 322 #endif |
319 }; | 323 }; |
320 | 324 |
321 } // namespace content | 325 } // namespace content |
322 | 326 |
323 #endif // CONTENT_PORT_BROWSER_RENDER_WIDGET_HOST_VIEW_PORT_H_ | 327 #endif // CONTENT_PORT_BROWSER_RENDER_WIDGET_HOST_VIEW_PORT_H_ |
OLD | NEW |