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

Side by Side Diff: content/browser/in_process_webkit/browser_webkitplatformsupport_impl.cc

Issue 12212100: Provide shared context to Platform API in renderer. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: no ifdefs Created 7 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) 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 "content/public/common/serialized_script_value.h" 10 #include "content/public/common/serialized_script_value.h"
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after
114 NOTREACHED(); 114 NOTREACHED();
115 return WebKit::WebData(); 115 return WebKit::WebData();
116 } 116 }
117 117
118 int BrowserWebKitPlatformSupportImpl::databaseDeleteFile( 118 int BrowserWebKitPlatformSupportImpl::databaseDeleteFile(
119 const WebKit::WebString& vfs_file_name, bool sync_dir) { 119 const WebKit::WebString& vfs_file_name, bool sync_dir) {
120 const base::FilePath path = webkit_base::WebStringToFilePath(vfs_file_name); 120 const base::FilePath path = webkit_base::WebStringToFilePath(vfs_file_name);
121 return file_util::Delete(path, false) ? 0 : 1; 121 return file_util::Delete(path, false) ? 0 : 1;
122 } 122 }
123 123
124 GpuChannelHostFactory* 124 WebKit::WebGraphicsContext3D* BrowserWebKitPlatformSupportImpl::
125 BrowserWebKitPlatformSupportImpl::GetGpuChannelHostFactory() { 125 createOffscreenGraphicsContext3D(
126 return BrowserGpuChannelHostFactory::instance(); 126 const WebKit::WebGraphicsContext3D::Attributes& attributes) {
127 NOTREACHED();
128 return NULL;
129 }
130
131 WebKit::WebGraphicsContext3D* BrowserWebKitPlatformSupportImpl::
132 sharedOffscreenGraphicsContext3D() {
133 NOTREACHED();
134 return NULL;
127 } 135 }
128 136
129 } // namespace content 137 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698