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

Side by Side Diff: content/port/browser/render_widget_host_view_port.h

Issue 11833009: Provide a vsync notification to the renderer (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebased. Created 7 years, 10 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 | Annotate | Revision Log
« no previous file with comments | « content/common/view_messages.h ('k') | content/renderer/gpu/compositor_output_surface.h » ('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_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 163 matching lines...) Expand 10 before | Expand all | Expand 10 after
174 // enforced; this case is currently used for accelerated plugins. 174 // enforced; this case is currently used for accelerated plugins.
175 virtual void AcceleratedSurfaceBuffersSwapped( 175 virtual void AcceleratedSurfaceBuffersSwapped(
176 const GpuHostMsg_AcceleratedSurfaceBuffersSwapped_Params& params_in_pixel, 176 const GpuHostMsg_AcceleratedSurfaceBuffersSwapped_Params& params_in_pixel,
177 int gpu_host_id) = 0; 177 int gpu_host_id) = 0;
178 // Similar to above, except |params.(x|y|width|height)| define the region 178 // Similar to above, except |params.(x|y|width|height)| define the region
179 // of the surface that changed. 179 // of the surface that changed.
180 virtual void AcceleratedSurfacePostSubBuffer( 180 virtual void AcceleratedSurfacePostSubBuffer(
181 const GpuHostMsg_AcceleratedSurfacePostSubBuffer_Params& params_in_pixel, 181 const GpuHostMsg_AcceleratedSurfacePostSubBuffer_Params& params_in_pixel,
182 int gpu_host_id) = 0; 182 int gpu_host_id) = 0;
183 183
184 // Request a periodic vsync signal notification from the View. The signal will
185 // be delivered until explicitly disabled.
186 virtual void EnableVSyncNotification(bool enable) {}
187
184 // Release the accelerated surface temporarily. It will be recreated on the 188 // Release the accelerated surface temporarily. It will be recreated on the
185 // next swap buffers or post sub buffer. 189 // next swap buffers or post sub buffer.
186 virtual void AcceleratedSurfaceSuspend() = 0; 190 virtual void AcceleratedSurfaceSuspend() = 0;
187 191
188 // Return true if the view has an accelerated surface that contains the last 192 // Return true if the view has an accelerated surface that contains the last
189 // presented frame for the view. If |desired_size| is non-empty, true is 193 // presented frame for the view. If |desired_size| is non-empty, true is
190 // returned only if the accelerated surface size matches. 194 // returned only if the accelerated surface size matches.
191 virtual bool HasAcceleratedSurface(const gfx::Size& desired_size) = 0; 195 virtual bool HasAcceleratedSurface(const gfx::Size& desired_size) = 0;
192 196
193 #if defined(OS_MACOSX) 197 #if defined(OS_MACOSX)
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after
286 virtual BrowserAccessibilityManager* 290 virtual BrowserAccessibilityManager*
287 GetBrowserAccessibilityManager() const = 0; 291 GetBrowserAccessibilityManager() const = 0;
288 virtual void OnAccessibilityNotifications( 292 virtual void OnAccessibilityNotifications(
289 const std::vector<AccessibilityHostMsg_NotificationParams>& params) { 293 const std::vector<AccessibilityHostMsg_NotificationParams>& params) {
290 } 294 }
291 }; 295 };
292 296
293 } // namespace content 297 } // namespace content
294 298
295 #endif // CONTENT_PORT_BROWSER_RENDER_WIDGET_HOST_VIEW_PORT_H_ 299 #endif // CONTENT_PORT_BROWSER_RENDER_WIDGET_HOST_VIEW_PORT_H_
OLDNEW
« no previous file with comments | « content/common/view_messages.h ('k') | content/renderer/gpu/compositor_output_surface.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698