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

Side by Side Diff: content/browser/renderer_host/test_render_view_host.h

Issue 8622004: Reland 110355 - Use shared D3D9 texture to transport the compositor's backing buffer to the brows... (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_RENDER_VIEW_HOST_H_ 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_TEST_RENDER_VIEW_HOST_H_
6 #define CONTENT_BROWSER_RENDERER_HOST_TEST_RENDER_VIEW_HOST_H_ 6 #define CONTENT_BROWSER_RENDERER_HOST_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 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 OnAcceleratedCompositingStateChange() OVERRIDE; 91 virtual void OnAcceleratedCompositingStateChange() OVERRIDE;
92 virtual void AcceleratedSurfaceBuffersSwapped(
93 const GpuHostMsg_AcceleratedSurfaceBuffersSwapped_Params& params,
94 int gpu_host_id) OVERRIDE;
92 #if defined(OS_MACOSX) 95 #if defined(OS_MACOSX)
93 virtual void SetTakesFocusOnlyOnMouseDown(bool flag) OVERRIDE {} 96 virtual void SetTakesFocusOnlyOnMouseDown(bool flag) OVERRIDE {}
94 virtual gfx::Rect GetViewCocoaBounds() const OVERRIDE; 97 virtual gfx::Rect GetViewCocoaBounds() const OVERRIDE;
95 virtual void SetActive(bool active) OVERRIDE; 98 virtual void SetActive(bool active) OVERRIDE;
96 virtual void SetWindowVisibility(bool visible) OVERRIDE {} 99 virtual void SetWindowVisibility(bool visible) OVERRIDE {}
97 virtual void WindowFrameChanged() OVERRIDE {} 100 virtual void WindowFrameChanged() OVERRIDE {}
98 virtual void PluginFocusChanged(bool focused, int plugin_id) OVERRIDE; 101 virtual void PluginFocusChanged(bool focused, int plugin_id) OVERRIDE;
99 virtual void StartPluginIme() OVERRIDE; 102 virtual void StartPluginIme() OVERRIDE;
100 virtual bool PostProcessEventForPluginIme( 103 virtual bool PostProcessEventForPluginIme(
101 const NativeWebKeyboardEvent& event) OVERRIDE; 104 const NativeWebKeyboardEvent& event) OVERRIDE;
102 virtual gfx::PluginWindowHandle AllocateFakePluginWindowHandle( 105 virtual gfx::PluginWindowHandle AllocateFakePluginWindowHandle(
103 bool opaque, 106 bool opaque,
104 bool root) OVERRIDE; 107 bool root) OVERRIDE;
105 virtual void DestroyFakePluginWindowHandle( 108 virtual void DestroyFakePluginWindowHandle(
106 gfx::PluginWindowHandle window) OVERRIDE; 109 gfx::PluginWindowHandle window) OVERRIDE;
107 virtual void AcceleratedSurfaceSetIOSurface(gfx::PluginWindowHandle window, 110 virtual void AcceleratedSurfaceSetIOSurface(gfx::PluginWindowHandle window,
108 int32 width, 111 int32 width,
109 int32 height, 112 int32 height,
110 uint64 surface_id) OVERRIDE; 113 uint64 surface_id) OVERRIDE;
111 virtual void AcceleratedSurfaceSetTransportDIB( 114 virtual void AcceleratedSurfaceSetTransportDIB(
112 gfx::PluginWindowHandle window, 115 gfx::PluginWindowHandle window,
113 int32 width, 116 int32 width,
114 int32 height, 117 int32 height,
115 TransportDIB::Handle transport_dib) OVERRIDE; 118 TransportDIB::Handle transport_dib) OVERRIDE;
116 virtual void AcceleratedSurfaceBuffersSwapped(
117 gfx::PluginWindowHandle window,
118 uint64 surface_id,
119 int renderer_id,
120 int32 route_id,
121 int gpu_host_id) OVERRIDE;
122 #elif defined(OS_WIN) 119 #elif defined(OS_WIN)
123 virtual void WillWmDestroy() OVERRIDE; 120 virtual void WillWmDestroy() OVERRIDE;
124 #endif 121 #endif
125 #if defined(OS_POSIX) || defined(USE_AURA) 122 #if defined(OS_POSIX) || defined(USE_AURA)
126 virtual void GetScreenInfo(WebKit::WebScreenInfo* results) OVERRIDE {} 123 virtual void GetScreenInfo(WebKit::WebScreenInfo* results) OVERRIDE {}
127 virtual gfx::Rect GetRootWindowBounds() OVERRIDE; 124 virtual gfx::Rect GetRootWindowBounds() OVERRIDE;
128 #endif 125 #endif
129 virtual void SetVisuallyDeemphasized(const SkColor* color, 126 virtual void SetVisuallyDeemphasized(const SkColor* color,
130 bool animate) OVERRIDE { } 127 bool animate) OVERRIDE { }
131 virtual void UnhandledWheelEvent( 128 virtual void UnhandledWheelEvent(
(...skipping 204 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_RENDER_VIEW_HOST_H_ 342 #endif // CONTENT_BROWSER_RENDERER_HOST_TEST_RENDER_VIEW_HOST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698