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

Side by Side Diff: chrome/browser/renderer_host/test/test_render_view_host.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) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2009 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_TEST_TEST_RENDER_VIEW_HOST_H_ 5 #ifndef CHROME_BROWSER_RENDERER_HOST_TEST_TEST_RENDER_VIEW_HOST_H_
6 #define CHROME_BROWSER_RENDERER_HOST_TEST_TEST_RENDER_VIEW_HOST_H_ 6 #define CHROME_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 110 matching lines...) Expand 10 before | Expand all | Expand 10 after
121 int32 height, 121 int32 height,
122 TransportDIB::Handle transport_dib); 122 TransportDIB::Handle transport_dib);
123 virtual void AcceleratedSurfaceBuffersSwapped( 123 virtual void AcceleratedSurfaceBuffersSwapped(
124 gfx::PluginWindowHandle window, 124 gfx::PluginWindowHandle window,
125 uint64 surface_id, 125 uint64 surface_id,
126 int renderer_id, 126 int renderer_id,
127 int32 route_id, 127 int32 route_id,
128 uint64 swap_buffers_count); 128 uint64 swap_buffers_count);
129 virtual void GpuRenderingStateDidChange(); 129 virtual void GpuRenderingStateDidChange();
130 #elif defined(OS_WIN) 130 #elif defined(OS_WIN)
131 virtual gfx::PluginWindowHandle GetCompositorHostWindow();
132 virtual void WillWmDestroy(); 131 virtual void WillWmDestroy();
133 virtual void ShowCompositorHostWindow(bool show); 132 virtual void ShowCompositorHostWindow(bool show);
134 #endif 133 #endif
135 virtual void SetVisuallyDeemphasized(const SkColor* color, bool animate) { } 134 virtual void SetVisuallyDeemphasized(const SkColor* color, bool animate) { }
136 135
137 #if defined(TOOLKIT_USES_GTK) 136 #if defined(TOOLKIT_USES_GTK)
138 virtual void CreatePluginContainer(gfx::PluginWindowHandle id) { } 137 virtual void CreatePluginContainer(gfx::PluginWindowHandle id) { }
139 virtual void DestroyPluginContainer(gfx::PluginWindowHandle id) { } 138 virtual void DestroyPluginContainer(gfx::PluginWindowHandle id) { }
140 virtual void AcceleratedCompositingActivated(bool activated) { } 139 virtual void AcceleratedCompositingActivated(bool activated) { }
141 #endif 140 #endif
142 141
142 virtual gfx::PluginWindowHandle AcquireCompositingSurface() {
143 return gfx::kNullPluginWindow;
144 }
145 virtual void ReleaseCompositingSurface(gfx::PluginWindowHandle surface) { }
146
143 virtual bool ContainsNativeView(gfx::NativeView native_view) const; 147 virtual bool ContainsNativeView(gfx::NativeView native_view) const;
144 148
145 bool is_showing() const { return is_showing_; } 149 bool is_showing() const { return is_showing_; }
146 150
147 private: 151 private:
148 RenderWidgetHost* rwh_; 152 RenderWidgetHost* rwh_;
149 bool is_showing_; 153 bool is_showing_;
150 }; 154 };
151 155
152 // TestRenderViewHost ---------------------------------------------------------- 156 // TestRenderViewHost ----------------------------------------------------------
(...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after
289 293
290 MockRenderProcessHostFactory rph_factory_; 294 MockRenderProcessHostFactory rph_factory_;
291 TestRenderViewHostFactory rvh_factory_; 295 TestRenderViewHostFactory rvh_factory_;
292 296
293 scoped_ptr<TestTabContents> contents_; 297 scoped_ptr<TestTabContents> contents_;
294 298
295 DISALLOW_COPY_AND_ASSIGN(RenderViewHostTestHarness); 299 DISALLOW_COPY_AND_ASSIGN(RenderViewHostTestHarness);
296 }; 300 };
297 301
298 #endif // CHROME_BROWSER_RENDERER_HOST_TEST_TEST_RENDER_VIEW_HOST_H_ 302 #endif // CHROME_BROWSER_RENDERER_HOST_TEST_TEST_RENDER_VIEW_HOST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698