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

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

Issue 12217099: Implement the Platform::sharedOffscreenGraphicsContext3D method. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Drop was_created Created 7 years, 9 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/glue/webfileutilities_impl.h" 12 #include "webkit/glue/webfileutilities_impl.h"
13 #include "webkit/glue/webkitplatformsupport_impl.h" 13 #include "webkit/glue/webkitplatformsupport_impl.h"
14 #include "webkit/support/simple_database_system.h" 14 #include "webkit/support/simple_database_system.h"
15 #include "webkit/support/weburl_loader_mock_factory.h" 15 #include "webkit/support/weburl_loader_mock_factory.h"
16 #include "webkit/tools/test_shell/mock_webclipboard_impl.h" 16 #include "webkit/tools/test_shell/mock_webclipboard_impl.h"
17 #include "webkit/tools/test_shell/simple_appcache_system.h" 17 #include "webkit/tools/test_shell/simple_appcache_system.h"
18 #include "webkit/tools/test_shell/simple_dom_storage_system.h" 18 #include "webkit/tools/test_shell/simple_dom_storage_system.h"
19 #include "webkit/tools/test_shell/simple_file_system.h" 19 #include "webkit/tools/test_shell/simple_file_system.h"
20 #include "webkit/tools/test_shell/simple_webcookiejar_impl.h" 20 #include "webkit/tools/test_shell/simple_webcookiejar_impl.h"
21 #include "webkit/tools/test_shell/test_shell_webmimeregistry_impl.h" 21 #include "webkit/tools/test_shell/test_shell_webmimeregistry_impl.h"
22 22
23 class TestShellWebBlobRegistryImpl; 23 class TestShellWebBlobRegistryImpl;
24 24
25 namespace cc {
26 class ContextProvider;
27 }
28
29 namespace webkit {
30 namespace gpu {
31 class TestContextProviderFactory;
32 }
33 }
34
25 namespace WebKit { 35 namespace WebKit {
26 class WebAudioDevice; 36 class WebAudioDevice;
27 class WebLayerTreeView; 37 class WebLayerTreeView;
28 } 38 }
29 39
30 typedef struct _HyphenDict HyphenDict; 40 typedef struct _HyphenDict HyphenDict;
31 41
32 // An implementation of WebKitPlatformSupport for tests. 42 // An implementation of WebKitPlatformSupport for tests.
33 class TestWebKitPlatformSupport : 43 class TestWebKitPlatformSupport :
34 public WebKit::WebUnitTestSupport, 44 public WebKit::WebUnitTestSupport,
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
77 virtual WebKit::WebStorageNamespace* createLocalStorageNamespace( 87 virtual WebKit::WebStorageNamespace* createLocalStorageNamespace(
78 const WebKit::WebString& path, unsigned quota); 88 const WebKit::WebString& path, unsigned quota);
79 89
80 #if defined(OS_WIN) || defined(OS_MACOSX) 90 #if defined(OS_WIN) || defined(OS_MACOSX)
81 void SetThemeEngine(WebKit::WebThemeEngine* engine); 91 void SetThemeEngine(WebKit::WebThemeEngine* engine);
82 virtual WebKit::WebThemeEngine *themeEngine(); 92 virtual WebKit::WebThemeEngine *themeEngine();
83 #endif 93 #endif
84 94
85 virtual WebKit::WebGraphicsContext3D* createOffscreenGraphicsContext3D( 95 virtual WebKit::WebGraphicsContext3D* createOffscreenGraphicsContext3D(
86 const WebKit::WebGraphicsContext3D::Attributes&); 96 const WebKit::WebGraphicsContext3D::Attributes&);
97 virtual WebKit::WebGraphicsContext3D* sharedOffscreenGraphicsContext3D();
98 virtual GrContext* sharedOffscreenGrContext();
87 virtual bool canAccelerate2dCanvas(); 99 virtual bool canAccelerate2dCanvas();
88 100
89 WebURLLoaderMockFactory* url_loader_factory() { 101 WebURLLoaderMockFactory* url_loader_factory() {
90 return &url_loader_factory_; 102 return &url_loader_factory_;
91 } 103 }
92 104
93 const base::FilePath& file_system_root() const { 105 const base::FilePath& file_system_root() const {
94 return file_system_root_.path(); 106 return file_system_root_.path();
95 } 107 }
96 108
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
169 SimpleWebCookieJarImpl cookie_jar_; 181 SimpleWebCookieJarImpl cookie_jar_;
170 scoped_refptr<TestShellWebBlobRegistryImpl> blob_registry_; 182 scoped_refptr<TestShellWebBlobRegistryImpl> blob_registry_;
171 SimpleFileSystem file_system_; 183 SimpleFileSystem file_system_;
172 base::ScopedTempDir file_system_root_; 184 base::ScopedTempDir file_system_root_;
173 WebURLLoaderMockFactory url_loader_factory_; 185 WebURLLoaderMockFactory url_loader_factory_;
174 bool unit_test_mode_; 186 bool unit_test_mode_;
175 WebKit::WebGamepads gamepad_data_; 187 WebKit::WebGamepads gamepad_data_;
176 WebKit::Platform* shadow_platform_delegate_; 188 WebKit::Platform* shadow_platform_delegate_;
177 HyphenDict* hyphen_dictionary_; 189 HyphenDict* hyphen_dictionary_;
178 190
191 webkit::gpu::TestContextProviderFactory* context_provider_factory_;
192 scoped_refptr<cc::ContextProvider> main_thread_contexts_;
193
179 #if defined(OS_WIN) || defined(OS_MACOSX) 194 #if defined(OS_WIN) || defined(OS_MACOSX)
180 WebKit::WebThemeEngine* active_theme_engine_; 195 WebKit::WebThemeEngine* active_theme_engine_;
181 #endif 196 #endif
182 DISALLOW_COPY_AND_ASSIGN(TestWebKitPlatformSupport); 197 DISALLOW_COPY_AND_ASSIGN(TestWebKitPlatformSupport);
183 }; 198 };
184 199
185 #endif // WEBKIT_SUPPORT_TEST_WEBKIT_PLATFORM_SUPPORT_H_ 200 #endif // WEBKIT_SUPPORT_TEST_WEBKIT_PLATFORM_SUPPORT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698