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

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

Issue 8060045: Use shared D3D9 texture to transport the compositor's backing buffer to the browser... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 1 month 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 | « no previous file | chrome/browser/renderer_host/render_widget_host_view_views.cc » ('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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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_VIEWS_H_ 5 #ifndef CHROME_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_VIEWS_H_
6 #define CHROME_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_VIEWS_H_ 6 #define CHROME_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_VIEWS_H_
7 #pragma once 7 #pragma once
8 8
9 #include <map> 9 #include <map>
10 #include <string> 10 #include <string>
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
92 int error_code) OVERRIDE; 92 int error_code) OVERRIDE;
93 virtual void Destroy() OVERRIDE; 93 virtual void Destroy() OVERRIDE;
94 virtual void SetTooltipText(const string16& tooltip_text) OVERRIDE; 94 virtual void SetTooltipText(const string16& tooltip_text) OVERRIDE;
95 virtual void SelectionChanged(const string16& text, 95 virtual void SelectionChanged(const string16& text,
96 size_t offset, 96 size_t offset,
97 const ui::Range& range) OVERRIDE; 97 const ui::Range& range) OVERRIDE;
98 virtual void SelectionBoundsChanged(const gfx::Rect& start_rect, 98 virtual void SelectionBoundsChanged(const gfx::Rect& start_rect,
99 const gfx::Rect& end_rect) OVERRIDE; 99 const gfx::Rect& end_rect) OVERRIDE;
100 virtual void ShowingContextMenu(bool showing) OVERRIDE; 100 virtual void ShowingContextMenu(bool showing) OVERRIDE;
101 virtual BackingStore* AllocBackingStore(const gfx::Size& size) OVERRIDE; 101 virtual BackingStore* AllocBackingStore(const gfx::Size& size) OVERRIDE;
102 virtual void AcceleratedSurfaceBuffersSwapped(
103 const GpuHostMsg_AcceleratedSurfaceBuffersSwapped_Params& params,
104 int gpu_host_id) OVERRIDE;
102 virtual void SetBackground(const SkBitmap& background) OVERRIDE; 105 virtual void SetBackground(const SkBitmap& background) OVERRIDE;
103 #if defined(OS_POSIX) 106 #if defined(OS_POSIX)
104 virtual void GetDefaultScreenInfo(WebKit::WebScreenInfo* results); 107 virtual void GetDefaultScreenInfo(WebKit::WebScreenInfo* results);
105 virtual void GetScreenInfo(WebKit::WebScreenInfo* results) OVERRIDE; 108 virtual void GetScreenInfo(WebKit::WebScreenInfo* results) OVERRIDE;
106 virtual gfx::Rect GetRootWindowBounds() OVERRIDE; 109 virtual gfx::Rect GetRootWindowBounds() OVERRIDE;
107 #endif 110 #endif
108 #if defined(TOOLKIT_USES_GTK) 111 #if defined(TOOLKIT_USES_GTK)
109 virtual void CreatePluginContainer(gfx::PluginWindowHandle id) OVERRIDE; 112 virtual void CreatePluginContainer(gfx::PluginWindowHandle id) OVERRIDE;
110 virtual void DestroyPluginContainer(gfx::PluginWindowHandle id) OVERRIDE; 113 virtual void DestroyPluginContainer(gfx::PluginWindowHandle id) OVERRIDE;
111 #endif 114 #endif
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
185 virtual bool ChangeTextDirectionAndLayoutAlignment( 188 virtual bool ChangeTextDirectionAndLayoutAlignment(
186 base::i18n::TextDirection direction) OVERRIDE; 189 base::i18n::TextDirection direction) OVERRIDE;
187 virtual views::View* GetOwnerViewOfTextInputClient() OVERRIDE; 190 virtual views::View* GetOwnerViewOfTextInputClient() OVERRIDE;
188 191
189 #if defined(UI_COMPOSITOR_IMAGE_TRANSPORT) 192 #if defined(UI_COMPOSITOR_IMAGE_TRANSPORT)
190 virtual void AcceleratedSurfaceNew( 193 virtual void AcceleratedSurfaceNew(
191 int32 width, 194 int32 width,
192 int32 height, 195 int32 height,
193 uint64* surface_id, 196 uint64* surface_id,
194 TransportDIB::Handle* surface_handle) OVERRIDE; 197 TransportDIB::Handle* surface_handle) OVERRIDE;
195 virtual void AcceleratedSurfaceBuffersSwapped(
196 uint64 surface_id,
197 int32 route_id,
198 int gpu_host_id) OVERRIDE;
199 virtual void AcceleratedSurfaceRelease(uint64 surface_id) OVERRIDE; 198 virtual void AcceleratedSurfaceRelease(uint64 surface_id) OVERRIDE;
200 199
201 // CompositorObserver implementation: 200 // CompositorObserver implementation:
202 virtual void OnCompositingEnded(ui::Compositor* compositor) OVERRIDE; 201 virtual void OnCompositingEnded(ui::Compositor* compositor) OVERRIDE;
203 #endif 202 #endif
204 203
205 protected: 204 protected:
206 // Overridden from views::View. 205 // Overridden from views::View.
207 virtual void OnPaint(gfx::Canvas* canvas) OVERRIDE; 206 virtual void OnPaint(gfx::Canvas* canvas) OVERRIDE;
208 virtual void OnFocus() OVERRIDE; 207 virtual void OnFocus() OVERRIDE;
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after
316 315
317 #if defined(UI_COMPOSITOR_IMAGE_TRANSPORT) 316 #if defined(UI_COMPOSITOR_IMAGE_TRANSPORT)
318 std::map<uint64, scoped_refptr<AcceleratedSurfaceContainerLinux> > 317 std::map<uint64, scoped_refptr<AcceleratedSurfaceContainerLinux> >
319 accelerated_surface_containers_; 318 accelerated_surface_containers_;
320 #endif 319 #endif
321 320
322 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewViews); 321 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewViews);
323 }; 322 };
324 323
325 #endif // CHROME_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_VIEWS_H_ 324 #endif // CHROME_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_VIEWS_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/renderer_host/render_widget_host_view_views.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698