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

Side by Side Diff: chrome/browser/renderer_host/render_widget_host_view.h

Issue 6462034: Refactor how surfaces are acquired for GPU compositing. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Remove unnecessary include. Created 9 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
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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 CHROME_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_H_ 5 #ifndef CHROME_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_H_
6 #define CHROME_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_H_ 6 #define CHROME_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_H_
7 #pragma once 7 #pragma once
8 8
9 #if defined(OS_MACOSX) 9 #if defined(OS_MACOSX)
10 #include <OpenGL/OpenGL.h> 10 #include <OpenGL/OpenGL.h>
(...skipping 243 matching lines...) Expand 10 before | Expand all | Expand 10 after
254 virtual void GpuRenderingStateDidChange() = 0; 254 virtual void GpuRenderingStateDidChange() = 0;
255 #endif 255 #endif
256 256
257 #if defined(TOOLKIT_USES_GTK) 257 #if defined(TOOLKIT_USES_GTK)
258 virtual void CreatePluginContainer(gfx::PluginWindowHandle id) = 0; 258 virtual void CreatePluginContainer(gfx::PluginWindowHandle id) = 0;
259 virtual void DestroyPluginContainer(gfx::PluginWindowHandle id) = 0; 259 virtual void DestroyPluginContainer(gfx::PluginWindowHandle id) = 0;
260 virtual void AcceleratedCompositingActivated(bool activated) = 0; 260 virtual void AcceleratedCompositingActivated(bool activated) = 0;
261 #endif 261 #endif
262 262
263 #if defined(OS_WIN) 263 #if defined(OS_WIN)
264 virtual gfx::PluginWindowHandle GetCompositorHostWindow() = 0;
265 virtual void WillWmDestroy() = 0; 264 virtual void WillWmDestroy() = 0;
266 virtual void ShowCompositorHostWindow(bool show) = 0; 265 virtual void ShowCompositorHostWindow(bool show) = 0;
267 #endif 266 #endif
268 267
268 virtual gfx::PluginWindowHandle AcquireCompositingSurface() = 0;
269 virtual void ReleaseCompositingSurface(gfx::PluginWindowHandle surface) = 0;
270
269 // Toggles visual muting of the render view area. This is on when a 271 // Toggles visual muting of the render view area. This is on when a
270 // constrained window is showing, for example. |color| is the shade of 272 // constrained window is showing, for example. |color| is the shade of
271 // the overlay that covers the render view. If |animate| is true, the overlay 273 // the overlay that covers the render view. If |animate| is true, the overlay
272 // gradually fades in; otherwise it takes effect immediately. To remove the 274 // gradually fades in; otherwise it takes effect immediately. To remove the
273 // fade effect, pass a NULL value for |color|. In this case, |animate| is 275 // fade effect, pass a NULL value for |color|. In this case, |animate| is
274 // ignored. 276 // ignored.
275 virtual void SetVisuallyDeemphasized(const SkColor* color, bool animate) = 0; 277 virtual void SetVisuallyDeemphasized(const SkColor* color, bool animate) = 0;
276 278
277 void set_popup_type(WebKit::WebPopupType popup_type) { 279 void set_popup_type(WebKit::WebPopupType popup_type) {
278 popup_type_ = popup_type; 280 popup_type_ = popup_type;
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
315 317
316 // The current reserved area in view coordinates where contents should not be 318 // The current reserved area in view coordinates where contents should not be
317 // rendered to draw the resize corner, sidebar mini tabs etc. 319 // rendered to draw the resize corner, sidebar mini tabs etc.
318 gfx::Rect reserved_rect_; 320 gfx::Rect reserved_rect_;
319 321
320 private: 322 private:
321 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostView); 323 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostView);
322 }; 324 };
323 325
324 #endif // CHROME_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_H_ 326 #endif // CHROME_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_H_
OLDNEW
« no previous file with comments | « chrome/browser/gpu_process_host_ui_shim.cc ('k') | chrome/browser/renderer_host/render_widget_host_view_gtk.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698