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

Side by Side Diff: content/browser/renderer_host/test_render_view_host.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
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 CONTENT_BROWSER_RENDERER_HOST_TEST_TEST_RENDER_VIEW_HOST_H_ 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_TEST_TEST_RENDER_VIEW_HOST_H_
6 #define CONTENT_BROWSER_RENDERER_HOST_TEST_TEST_RENDER_VIEW_HOST_H_ 6 #define CONTENT_BROWSER_RENDERER_HOST_TEST_TEST_RENDER_VIEW_HOST_H_
7 #pragma once 7 #pragma once
8 8
9 #include "base/basictypes.h" 9 #include "base/basictypes.h"
10 #include "base/gtest_prod_util.h" 10 #include "base/gtest_prod_util.h"
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
81 virtual void ImeCancelComposition() OVERRIDE {} 81 virtual void ImeCancelComposition() OVERRIDE {}
82 virtual void DidUpdateBackingStore( 82 virtual void DidUpdateBackingStore(
83 const gfx::Rect& scroll_rect, int scroll_dx, int scroll_dy, 83 const gfx::Rect& scroll_rect, int scroll_dx, int scroll_dy,
84 const std::vector<gfx::Rect>& rects) OVERRIDE {} 84 const std::vector<gfx::Rect>& rects) OVERRIDE {}
85 virtual void RenderViewGone(base::TerminationStatus status, 85 virtual void RenderViewGone(base::TerminationStatus status,
86 int error_code) OVERRIDE; 86 int error_code) OVERRIDE;
87 virtual void WillDestroyRenderWidget(RenderWidgetHost* rwh) { } 87 virtual void WillDestroyRenderWidget(RenderWidgetHost* rwh) { }
88 virtual void Destroy() OVERRIDE {} 88 virtual void Destroy() OVERRIDE {}
89 virtual void SetTooltipText(const string16& tooltip_text) OVERRIDE {} 89 virtual void SetTooltipText(const string16& tooltip_text) OVERRIDE {}
90 virtual BackingStore* AllocBackingStore(const gfx::Size& size) OVERRIDE; 90 virtual BackingStore* AllocBackingStore(const gfx::Size& size) OVERRIDE;
91 virtual void AcceleratedSurfaceBuffersSwapped(
92 const GpuHostMsg_AcceleratedSurfaceBuffersSwapped_Params& params,
93 int gpu_host_id) OVERRIDE;
91 #if defined(OS_MACOSX) 94 #if defined(OS_MACOSX)
92 virtual void SetTakesFocusOnlyOnMouseDown(bool flag) OVERRIDE {} 95 virtual void SetTakesFocusOnlyOnMouseDown(bool flag) OVERRIDE {}
93 virtual gfx::Rect GetViewCocoaBounds() const OVERRIDE; 96 virtual gfx::Rect GetViewCocoaBounds() const OVERRIDE;
94 virtual void SetActive(bool active) OVERRIDE; 97 virtual void SetActive(bool active) OVERRIDE;
95 virtual void SetWindowVisibility(bool visible) OVERRIDE {} 98 virtual void SetWindowVisibility(bool visible) OVERRIDE {}
96 virtual void WindowFrameChanged() OVERRIDE {} 99 virtual void WindowFrameChanged() OVERRIDE {}
97 virtual void PluginFocusChanged(bool focused, int plugin_id) OVERRIDE; 100 virtual void PluginFocusChanged(bool focused, int plugin_id) OVERRIDE;
98 virtual void StartPluginIme() OVERRIDE; 101 virtual void StartPluginIme() OVERRIDE;
99 virtual bool PostProcessEventForPluginIme( 102 virtual bool PostProcessEventForPluginIme(
100 const NativeWebKeyboardEvent& event) OVERRIDE; 103 const NativeWebKeyboardEvent& event) OVERRIDE;
101 virtual gfx::PluginWindowHandle AllocateFakePluginWindowHandle( 104 virtual gfx::PluginWindowHandle AllocateFakePluginWindowHandle(
102 bool opaque, 105 bool opaque,
103 bool root) OVERRIDE; 106 bool root) OVERRIDE;
104 virtual void DestroyFakePluginWindowHandle( 107 virtual void DestroyFakePluginWindowHandle(
105 gfx::PluginWindowHandle window) OVERRIDE; 108 gfx::PluginWindowHandle window) OVERRIDE;
106 virtual void AcceleratedSurfaceSetIOSurface(gfx::PluginWindowHandle window, 109 virtual void AcceleratedSurfaceSetIOSurface(gfx::PluginWindowHandle window,
107 int32 width, 110 int32 width,
108 int32 height, 111 int32 height,
109 uint64 surface_id) OVERRIDE; 112 uint64 surface_id) OVERRIDE;
110 virtual void AcceleratedSurfaceSetTransportDIB( 113 virtual void AcceleratedSurfaceSetTransportDIB(
111 gfx::PluginWindowHandle window, 114 gfx::PluginWindowHandle window,
112 int32 width, 115 int32 width,
113 int32 height, 116 int32 height,
114 TransportDIB::Handle transport_dib) OVERRIDE; 117 TransportDIB::Handle transport_dib) OVERRIDE;
115 virtual void AcceleratedSurfaceBuffersSwapped(
116 gfx::PluginWindowHandle window,
117 uint64 surface_id,
118 int renderer_id,
119 int32 route_id,
120 int gpu_host_id) OVERRIDE;
121 virtual void GpuRenderingStateDidChange() OVERRIDE; 118 virtual void GpuRenderingStateDidChange() OVERRIDE;
122 #elif defined(OS_WIN) 119 #elif defined(OS_WIN)
123 virtual void WillWmDestroy() OVERRIDE; 120 virtual void WillWmDestroy() OVERRIDE;
124 virtual void ShowCompositorHostWindow(bool show) OVERRIDE; 121 virtual void ShowCompositorHostWindow(bool show) OVERRIDE;
125 #endif 122 #endif
126 #if defined(OS_POSIX) 123 #if defined(OS_POSIX)
127 virtual void GetScreenInfo(WebKit::WebScreenInfo* results) OVERRIDE {} 124 virtual void GetScreenInfo(WebKit::WebScreenInfo* results) OVERRIDE {}
128 virtual gfx::Rect GetRootWindowBounds() OVERRIDE; 125 virtual gfx::Rect GetRootWindowBounds() OVERRIDE;
129 #endif 126 #endif
130 virtual void SetVisuallyDeemphasized(const SkColor* color, bool animate) { } 127 virtual void SetVisuallyDeemphasized(const SkColor* color, bool animate) { }
(...skipping 205 matching lines...) Expand 10 before | Expand all | Expand 10 after
336 MockRenderProcessHostFactory rph_factory_; 333 MockRenderProcessHostFactory rph_factory_;
337 TestRenderViewHostFactory rvh_factory_; 334 TestRenderViewHostFactory rvh_factory_;
338 335
339 private: 336 private:
340 scoped_ptr<TestTabContents> contents_; 337 scoped_ptr<TestTabContents> contents_;
341 338
342 DISALLOW_COPY_AND_ASSIGN(RenderViewHostTestHarness); 339 DISALLOW_COPY_AND_ASSIGN(RenderViewHostTestHarness);
343 }; 340 };
344 341
345 #endif // CONTENT_BROWSER_RENDERER_HOST_TEST_TEST_RENDER_VIEW_HOST_H_ 342 #endif // CONTENT_BROWSER_RENDERER_HOST_TEST_TEST_RENDER_VIEW_HOST_H_
OLDNEW
« no previous file with comments | « content/browser/renderer_host/render_widget_host_view_win.cc ('k') | content/browser/renderer_host/test_render_view_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698