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

Side by Side Diff: webkit/support/test_webkit_platform_support.h

Issue 14619019: Move compositor support out of base WebKitPlatformSupport into renderer (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebased Created 7 years, 7 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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 WEBKIT_SUPPORT_TEST_WEBKIT_PLATFORM_SUPPORT_H_ 5 #ifndef WEBKIT_SUPPORT_TEST_WEBKIT_PLATFORM_SUPPORT_H_
6 #define WEBKIT_SUPPORT_TEST_WEBKIT_PLATFORM_SUPPORT_H_ 6 #define WEBKIT_SUPPORT_TEST_WEBKIT_PLATFORM_SUPPORT_H_
7 7
8 #include "base/compiler_specific.h" 8 #include "base/compiler_specific.h"
9 #include "third_party/WebKit/Source/Platform/chromium/public/WebGamepads.h" 9 #include "third_party/WebKit/Source/Platform/chromium/public/WebGamepads.h"
10 #include "third_party/WebKit/Source/Platform/chromium/public/WebGraphicsContext3 D.h" 10 #include "third_party/WebKit/Source/Platform/chromium/public/WebGraphicsContext3 D.h"
11 #include "third_party/WebKit/Source/Platform/chromium/public/WebUnitTestSupport. h" 11 #include "third_party/WebKit/Source/Platform/chromium/public/WebUnitTestSupport. h"
12 #include "webkit/compositor_bindings/web_compositor_support_impl.h"
12 #include "webkit/glue/webfileutilities_impl.h" 13 #include "webkit/glue/webfileutilities_impl.h"
13 #include "webkit/glue/webkitplatformsupport_impl.h" 14 #include "webkit/glue/webkitplatformsupport_impl.h"
14 #include "webkit/mocks/mock_webhyphenator.h" 15 #include "webkit/mocks/mock_webhyphenator.h"
15 #include "webkit/support/simple_database_system.h" 16 #include "webkit/support/simple_database_system.h"
16 #include "webkit/support/weburl_loader_mock_factory.h" 17 #include "webkit/support/weburl_loader_mock_factory.h"
17 #include "webkit/tools/test_shell/mock_webclipboard_impl.h" 18 #include "webkit/tools/test_shell/mock_webclipboard_impl.h"
18 #include "webkit/tools/test_shell/simple_appcache_system.h" 19 #include "webkit/tools/test_shell/simple_appcache_system.h"
19 #include "webkit/tools/test_shell/simple_dom_storage_system.h" 20 #include "webkit/tools/test_shell/simple_dom_storage_system.h"
20 #include "webkit/tools/test_shell/simple_file_system.h" 21 #include "webkit/tools/test_shell/simple_file_system.h"
21 #include "webkit/tools/test_shell/simple_webcookiejar_impl.h" 22 #include "webkit/tools/test_shell/simple_webcookiejar_impl.h"
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
88 #endif 89 #endif
89 90
90 virtual WebKit::WebGraphicsContext3D* createOffscreenGraphicsContext3D( 91 virtual WebKit::WebGraphicsContext3D* createOffscreenGraphicsContext3D(
91 const WebKit::WebGraphicsContext3D::Attributes&); 92 const WebKit::WebGraphicsContext3D::Attributes&);
92 virtual WebKit::WebGraphicsContext3D* sharedOffscreenGraphicsContext3D(); 93 virtual WebKit::WebGraphicsContext3D* sharedOffscreenGraphicsContext3D();
93 virtual GrContext* sharedOffscreenGrContext(); 94 virtual GrContext* sharedOffscreenGrContext();
94 virtual WebKit::WebGraphicsContext3DProvider* 95 virtual WebKit::WebGraphicsContext3DProvider*
95 createSharedOffscreenGraphicsContext3DProvider(); 96 createSharedOffscreenGraphicsContext3DProvider();
96 virtual bool canAccelerate2dCanvas(); 97 virtual bool canAccelerate2dCanvas();
97 virtual bool isThreadedCompositingEnabled(); 98 virtual bool isThreadedCompositingEnabled();
99 virtual WebKit::WebCompositorSupport* compositorSupport();
98 100
99 WebURLLoaderMockFactory* url_loader_factory() { 101 WebURLLoaderMockFactory* url_loader_factory() {
100 return &url_loader_factory_; 102 return &url_loader_factory_;
101 } 103 }
102 104
103 const base::FilePath& file_system_root() const { 105 const base::FilePath& file_system_root() const {
104 return file_system_root_.path(); 106 return file_system_root_.path();
105 } 107 }
106 108
107 // Mock out the WebAudioDevice since the real one 109 // Mock out the WebAudioDevice since the real one
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
177 SimpleWebCookieJarImpl cookie_jar_; 179 SimpleWebCookieJarImpl cookie_jar_;
178 scoped_refptr<TestShellWebBlobRegistryImpl> blob_registry_; 180 scoped_refptr<TestShellWebBlobRegistryImpl> blob_registry_;
179 SimpleFileSystem file_system_; 181 SimpleFileSystem file_system_;
180 base::ScopedTempDir file_system_root_; 182 base::ScopedTempDir file_system_root_;
181 webkit_glue::MockWebHyphenator hyphenator_; 183 webkit_glue::MockWebHyphenator hyphenator_;
182 WebURLLoaderMockFactory url_loader_factory_; 184 WebURLLoaderMockFactory url_loader_factory_;
183 bool unit_test_mode_; 185 bool unit_test_mode_;
184 WebKit::WebGamepads gamepad_data_; 186 WebKit::WebGamepads gamepad_data_;
185 WebKit::Platform* shadow_platform_delegate_; 187 WebKit::Platform* shadow_platform_delegate_;
186 bool threaded_compositing_enabled_; 188 bool threaded_compositing_enabled_;
189 webkit::WebCompositorSupportImpl compositor_support_;
187 190
188 scoped_refptr<cc::ContextProvider> main_thread_contexts_; 191 scoped_refptr<cc::ContextProvider> main_thread_contexts_;
189 192
190 #if defined(OS_WIN) || defined(OS_MACOSX) 193 #if defined(OS_WIN) || defined(OS_MACOSX)
191 WebKit::WebThemeEngine* active_theme_engine_; 194 WebKit::WebThemeEngine* active_theme_engine_;
192 #endif 195 #endif
193 DISALLOW_COPY_AND_ASSIGN(TestWebKitPlatformSupport); 196 DISALLOW_COPY_AND_ASSIGN(TestWebKitPlatformSupport);
194 }; 197 };
195 198
196 #endif // WEBKIT_SUPPORT_TEST_WEBKIT_PLATFORM_SUPPORT_H_ 199 #endif // WEBKIT_SUPPORT_TEST_WEBKIT_PLATFORM_SUPPORT_H_
OLDNEW
« no previous file with comments | « webkit/glue/webkitplatformsupport_impl.cc ('k') | webkit/support/test_webkit_platform_support.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698