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

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: no factory member vars 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
« no previous file with comments | « webkit/gpu/webkit_gpu.gypi ('k') | webkit/support/test_webkit_platform_support.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
25 namespace WebKit { 29 namespace WebKit {
26 class WebAudioDevice; 30 class WebAudioDevice;
27 class WebLayerTreeView; 31 class WebLayerTreeView;
28 } 32 }
29 33
30 typedef struct _HyphenDict HyphenDict; 34 typedef struct _HyphenDict HyphenDict;
31 35
32 // An implementation of WebKitPlatformSupport for tests. 36 // An implementation of WebKitPlatformSupport for tests.
33 class TestWebKitPlatformSupport : 37 class TestWebKitPlatformSupport :
34 public WebKit::WebUnitTestSupport, 38 public WebKit::WebUnitTestSupport,
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
77 virtual WebKit::WebStorageNamespace* createLocalStorageNamespace( 81 virtual WebKit::WebStorageNamespace* createLocalStorageNamespace(
78 const WebKit::WebString& path, unsigned quota); 82 const WebKit::WebString& path, unsigned quota);
79 83
80 #if defined(OS_WIN) || defined(OS_MACOSX) 84 #if defined(OS_WIN) || defined(OS_MACOSX)
81 void SetThemeEngine(WebKit::WebThemeEngine* engine); 85 void SetThemeEngine(WebKit::WebThemeEngine* engine);
82 virtual WebKit::WebThemeEngine *themeEngine(); 86 virtual WebKit::WebThemeEngine *themeEngine();
83 #endif 87 #endif
84 88
85 virtual WebKit::WebGraphicsContext3D* createOffscreenGraphicsContext3D( 89 virtual WebKit::WebGraphicsContext3D* createOffscreenGraphicsContext3D(
86 const WebKit::WebGraphicsContext3D::Attributes&); 90 const WebKit::WebGraphicsContext3D::Attributes&);
91 virtual WebKit::WebGraphicsContext3D* sharedOffscreenGraphicsContext3D();
92 virtual GrContext* sharedOffscreenGrContext();
87 virtual bool canAccelerate2dCanvas(); 93 virtual bool canAccelerate2dCanvas();
88 94
89 WebURLLoaderMockFactory* url_loader_factory() { 95 WebURLLoaderMockFactory* url_loader_factory() {
90 return &url_loader_factory_; 96 return &url_loader_factory_;
91 } 97 }
92 98
93 const base::FilePath& file_system_root() const { 99 const base::FilePath& file_system_root() const {
94 return file_system_root_.path(); 100 return file_system_root_.path();
95 } 101 }
96 102
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
169 SimpleWebCookieJarImpl cookie_jar_; 175 SimpleWebCookieJarImpl cookie_jar_;
170 scoped_refptr<TestShellWebBlobRegistryImpl> blob_registry_; 176 scoped_refptr<TestShellWebBlobRegistryImpl> blob_registry_;
171 SimpleFileSystem file_system_; 177 SimpleFileSystem file_system_;
172 base::ScopedTempDir file_system_root_; 178 base::ScopedTempDir file_system_root_;
173 WebURLLoaderMockFactory url_loader_factory_; 179 WebURLLoaderMockFactory url_loader_factory_;
174 bool unit_test_mode_; 180 bool unit_test_mode_;
175 WebKit::WebGamepads gamepad_data_; 181 WebKit::WebGamepads gamepad_data_;
176 WebKit::Platform* shadow_platform_delegate_; 182 WebKit::Platform* shadow_platform_delegate_;
177 HyphenDict* hyphen_dictionary_; 183 HyphenDict* hyphen_dictionary_;
178 184
185 scoped_refptr<cc::ContextProvider> main_thread_contexts_;
186
179 #if defined(OS_WIN) || defined(OS_MACOSX) 187 #if defined(OS_WIN) || defined(OS_MACOSX)
180 WebKit::WebThemeEngine* active_theme_engine_; 188 WebKit::WebThemeEngine* active_theme_engine_;
181 #endif 189 #endif
182 DISALLOW_COPY_AND_ASSIGN(TestWebKitPlatformSupport); 190 DISALLOW_COPY_AND_ASSIGN(TestWebKitPlatformSupport);
183 }; 191 };
184 192
185 #endif // WEBKIT_SUPPORT_TEST_WEBKIT_PLATFORM_SUPPORT_H_ 193 #endif // WEBKIT_SUPPORT_TEST_WEBKIT_PLATFORM_SUPPORT_H_
OLDNEW
« no previous file with comments | « webkit/gpu/webkit_gpu.gypi ('k') | webkit/support/test_webkit_platform_support.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698