OLD | NEW |
---|---|
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 #include "content/browser/in_process_webkit/browser_webkitplatformsupport_impl.h " | 5 #include "content/browser/in_process_webkit/browser_webkitplatformsupport_impl.h " |
6 | 6 |
7 #include "base/file_util.h" | 7 #include "base/file_util.h" |
8 #include "base/logging.h" | 8 #include "base/logging.h" |
9 #include "content/browser/gpu/browser_gpu_channel_host_factory.h" | 9 #include "content/browser/gpu/browser_gpu_channel_host_factory.h" |
10 #include "third_party/WebKit/Source/Platform/chromium/public/WebData.h" | 10 #include "third_party/WebKit/Source/Platform/chromium/public/WebData.h" |
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
113 NOTREACHED(); | 113 NOTREACHED(); |
114 return WebKit::WebData(); | 114 return WebKit::WebData(); |
115 } | 115 } |
116 | 116 |
117 int BrowserWebKitPlatformSupportImpl::databaseDeleteFile( | 117 int BrowserWebKitPlatformSupportImpl::databaseDeleteFile( |
118 const WebKit::WebString& vfs_file_name, bool sync_dir) { | 118 const WebKit::WebString& vfs_file_name, bool sync_dir) { |
119 const base::FilePath path = webkit_base::WebStringToFilePath(vfs_file_name); | 119 const base::FilePath path = webkit_base::WebStringToFilePath(vfs_file_name); |
120 return file_util::Delete(path, false) ? 0 : 1; | 120 return file_util::Delete(path, false) ? 0 : 1; |
121 } | 121 } |
122 | 122 |
123 GpuChannelHostFactory* | 123 WebKit::WebGraphicsContext3D* BrowserWebKitPlatformSupportImpl:: |
124 BrowserWebKitPlatformSupportImpl::GetGpuChannelHostFactory() { | 124 createOffscreenGraphicsContext3D( |
125 return BrowserGpuChannelHostFactory::instance(); | 125 const WebKit::WebGraphicsContext3D::Attributes& attributes) { |
126 NOTREACHED(); | |
127 return NULL; | |
jamesr
2013/03/06 00:26:10
Why bother overriding this? Isn't there a default
danakj
2013/03/06 00:27:10
There is, in the Platform class. This just adds a
| |
128 } | |
129 | |
130 WebKit::WebGraphicsContext3D* BrowserWebKitPlatformSupportImpl:: | |
131 sharedOffscreenGraphicsContext3D() { | |
132 NOTREACHED(); | |
133 return NULL; | |
134 } | |
135 | |
136 GrContext* BrowserWebKitPlatformSupportImpl::sharedOffscreenGrContext() { | |
137 NOTREACHED(); | |
138 return NULL; | |
126 } | 139 } |
127 | 140 |
128 } // namespace content | 141 } // namespace content |
OLD | NEW |