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

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, 2 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) 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 79 matching lines...) Expand 10 before | Expand all | Expand 10 after
90 int error_code) OVERRIDE; 90 int error_code) OVERRIDE;
91 virtual void Destroy() OVERRIDE; 91 virtual void Destroy() OVERRIDE;
92 virtual void SetTooltipText(const string16& tooltip_text) OVERRIDE; 92 virtual void SetTooltipText(const string16& tooltip_text) OVERRIDE;
93 virtual void SelectionChanged(const string16& text, 93 virtual void SelectionChanged(const string16& text,
94 size_t offset, 94 size_t offset,
95 const ui::Range& range) OVERRIDE; 95 const ui::Range& range) OVERRIDE;
96 virtual void SelectionBoundsChanged(const gfx::Rect& start_rect, 96 virtual void SelectionBoundsChanged(const gfx::Rect& start_rect,
97 const gfx::Rect& end_rect) OVERRIDE; 97 const gfx::Rect& end_rect) OVERRIDE;
98 virtual void ShowingContextMenu(bool showing) OVERRIDE; 98 virtual void ShowingContextMenu(bool showing) OVERRIDE;
99 virtual BackingStore* AllocBackingStore(const gfx::Size& size) OVERRIDE; 99 virtual BackingStore* AllocBackingStore(const gfx::Size& size) OVERRIDE;
100 virtual void AcceleratedSurfaceBuffersSwapped(
101 const GpuHostMsg_AcceleratedSurfaceBuffersSwapped_Params& params,
102 int gpu_host_id) OVERRIDE;
100 virtual void SetBackground(const SkBitmap& background) OVERRIDE; 103 virtual void SetBackground(const SkBitmap& background) OVERRIDE;
101 #if defined(OS_POSIX) 104 #if defined(OS_POSIX)
102 virtual void GetDefaultScreenInfo(WebKit::WebScreenInfo* results); 105 virtual void GetDefaultScreenInfo(WebKit::WebScreenInfo* results);
103 virtual void GetScreenInfo(WebKit::WebScreenInfo* results) OVERRIDE; 106 virtual void GetScreenInfo(WebKit::WebScreenInfo* results) OVERRIDE;
104 virtual gfx::Rect GetRootWindowBounds() OVERRIDE; 107 virtual gfx::Rect GetRootWindowBounds() OVERRIDE;
105 #endif 108 #endif
106 #if defined(TOOLKIT_USES_GTK) 109 #if defined(TOOLKIT_USES_GTK)
107 virtual void CreatePluginContainer(gfx::PluginWindowHandle id) OVERRIDE; 110 virtual void CreatePluginContainer(gfx::PluginWindowHandle id) OVERRIDE;
108 virtual void DestroyPluginContainer(gfx::PluginWindowHandle id) OVERRIDE; 111 virtual void DestroyPluginContainer(gfx::PluginWindowHandle id) OVERRIDE;
109 #endif 112 #endif
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
183 virtual bool ChangeTextDirectionAndLayoutAlignment( 186 virtual bool ChangeTextDirectionAndLayoutAlignment(
184 base::i18n::TextDirection direction) OVERRIDE; 187 base::i18n::TextDirection direction) OVERRIDE;
185 virtual views::View* GetOwnerViewOfTextInputClient() OVERRIDE; 188 virtual views::View* GetOwnerViewOfTextInputClient() OVERRIDE;
186 189
187 #if defined(UI_COMPOSITOR_IMAGE_TRANSPORT) 190 #if defined(UI_COMPOSITOR_IMAGE_TRANSPORT)
188 virtual void AcceleratedSurfaceNew( 191 virtual void AcceleratedSurfaceNew(
189 int32 width, 192 int32 width,
190 int32 height, 193 int32 height,
191 uint64* surface_id, 194 uint64* surface_id,
192 TransportDIB::Handle* surface_handle) OVERRIDE; 195 TransportDIB::Handle* surface_handle) OVERRIDE;
193 virtual void AcceleratedSurfaceBuffersSwapped(
194 uint64 surface_id,
195 int32 route_id,
196 int gpu_host_id) OVERRIDE;
197 virtual void AcceleratedSurfaceRelease(uint64 surface_id) OVERRIDE; 196 virtual void AcceleratedSurfaceRelease(uint64 surface_id) OVERRIDE;
198 197
199 // CompositorObserver implementation: 198 // CompositorObserver implementation:
200 virtual void OnCompositingEnded(ui::Compositor* compositor) OVERRIDE; 199 virtual void OnCompositingEnded(ui::Compositor* compositor) OVERRIDE;
201 #endif 200 #endif
202 201
203 protected: 202 protected:
204 // Overridden from views::View. 203 // Overridden from views::View.
205 virtual void OnPaint(gfx::Canvas* canvas) OVERRIDE; 204 virtual void OnPaint(gfx::Canvas* canvas) OVERRIDE;
206 virtual void OnFocus() OVERRIDE; 205 virtual void OnFocus() OVERRIDE;
(...skipping 109 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

Powered by Google App Engine
This is Rietveld 408576698