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

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

Issue 10382213: Defer CGLFlushDrawable until OSX-requested drawRect to avoid spinning when window is obscured. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fixed animation halt during resize Created 8 years, 7 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
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 #pragma once 7 #pragma once
8 8
9 #include "base/callback.h" 9 #include "base/callback.h"
10 #include "base/process_util.h" 10 #include "base/process_util.h"
(...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after
169 169
170 // Release the accelerated surface temporarily. It will be recreated on the 170 // Release the accelerated surface temporarily. It will be recreated on the
171 // next swap buffers or post sub buffer. 171 // next swap buffers or post sub buffer.
172 virtual void AcceleratedSurfaceSuspend() = 0; 172 virtual void AcceleratedSurfaceSuspend() = 0;
173 173
174 // Return true if the view has an accelerated surface that contains the last 174 // Return true if the view has an accelerated surface that contains the last
175 // presented frame for the view. If |desired_size| is non-empty, true is 175 // presented frame for the view. If |desired_size| is non-empty, true is
176 // returned only if the accelerated surface size matches. 176 // returned only if the accelerated surface size matches.
177 virtual bool HasAcceleratedSurface(const gfx::Size& desired_size) = 0; 177 virtual bool HasAcceleratedSurface(const gfx::Size& desired_size) = 0;
178 178
179 // Called just before GetBackingStore blocks for an updated frame.
180 virtual void AboutToWaitForBackingStoreMsg() {}
Jói 2012/05/18 07:28:27 I'd prefer to leave this pure virtual like all the
jbates 2012/05/21 22:41:59 Done.
181
179 #if defined(OS_MACOSX) 182 #if defined(OS_MACOSX)
180 // Retrieve the bounds of the view, in cocoa view coordinates. 183 // Retrieve the bounds of the view, in cocoa view coordinates.
181 // If the UI scale factor is 2, |GetViewBounds()| will return a size of e.g. 184 // If the UI scale factor is 2, |GetViewBounds()| will return a size of e.g.
182 // (400, 300) in pixels, while this method will return (200, 150). 185 // (400, 300) in pixels, while this method will return (200, 150).
183 // Even though this returns an gfx::Rect, the result is NOT IN PIXELS. 186 // Even though this returns an gfx::Rect, the result is NOT IN PIXELS.
184 virtual gfx::Rect GetViewCocoaBounds() const = 0; 187 virtual gfx::Rect GetViewCocoaBounds() const = 0;
185 188
186 // Informs the view that a plugin gained or lost focus. 189 // Informs the view that a plugin gained or lost focus.
187 virtual void PluginFocusChanged(bool focused, int plugin_id) = 0; 190 virtual void PluginFocusChanged(bool focused, int plugin_id) = 0;
188 191
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
260 virtual BrowserAccessibilityManager* 263 virtual BrowserAccessibilityManager*
261 GetBrowserAccessibilityManager() const = 0; 264 GetBrowserAccessibilityManager() const = 0;
262 virtual void OnAccessibilityNotifications( 265 virtual void OnAccessibilityNotifications(
263 const std::vector<AccessibilityHostMsg_NotificationParams>& params) { 266 const std::vector<AccessibilityHostMsg_NotificationParams>& params) {
264 } 267 }
265 }; 268 };
266 269
267 } // namespace content 270 } // namespace content
268 271
269 #endif // CONTENT_PORT_BROWSER_RENDER_WIDGET_HOST_VIEW_PORT_H_ 272 #endif // CONTENT_PORT_BROWSER_RENDER_WIDGET_HOST_VIEW_PORT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698