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

Side by Side Diff: content/browser/renderer_host/image_transport_factory_android.h

Issue 11227033: Move a bunch of code in content\common (as well as a few left in renderer) to the content namespace. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: fix cros Created 8 years, 2 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 CONTENT_BROWSER_RENDERER_HOST_IMAGE_TRANSPORT_FACTORY_ANDROID_H_ 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_IMAGE_TRANSPORT_FACTORY_ANDROID_H_
6 #define CONTENT_BROWSER_RENDERER_HOST_IMAGE_TRANSPORT_FACTORY_ANDROID_H_ 6 #define CONTENT_BROWSER_RENDERER_HOST_IMAGE_TRANSPORT_FACTORY_ANDROID_H_
7 7
8 #include "base/memory/scoped_ptr.h" 8 #include "base/memory/scoped_ptr.h"
9 #include "ui/gfx/native_widget_types.h" 9 #include "ui/gfx/native_widget_types.h"
10 10
11 namespace content {
11 class WebGraphicsContext3DCommandBufferImpl; 12 class WebGraphicsContext3DCommandBufferImpl;
12 13
13 namespace content {
14
15 class ImageTransportFactoryAndroid { 14 class ImageTransportFactoryAndroid {
16 public: 15 public:
17 ImageTransportFactoryAndroid(); 16 ImageTransportFactoryAndroid();
18 ~ImageTransportFactoryAndroid(); 17 ~ImageTransportFactoryAndroid();
19 18
20 static ImageTransportFactoryAndroid* GetInstance(); 19 static ImageTransportFactoryAndroid* GetInstance();
21 20
22 gfx::GLSurfaceHandle CreateSharedSurfaceHandle(); 21 gfx::GLSurfaceHandle CreateSharedSurfaceHandle();
23 void DestroySharedSurfaceHandle(const gfx::GLSurfaceHandle& handle); 22 void DestroySharedSurfaceHandle(const gfx::GLSurfaceHandle& handle);
24 23
25 uint32_t InsertSyncPoint(); 24 uint32_t InsertSyncPoint();
26 25
27 WebGraphicsContext3DCommandBufferImpl* GetContext3D(); 26 WebGraphicsContext3DCommandBufferImpl* GetContext3D();
28 private: 27 private:
29 scoped_ptr<WebGraphicsContext3DCommandBufferImpl> context_; 28 scoped_ptr<WebGraphicsContext3DCommandBufferImpl> context_;
30 }; 29 };
31 30
32 } // namespace content 31 } // namespace content
33 32
34 #endif // CONTENT_BROWSER_RENDERER_HOST_IMAGE_TRANSPORT_FACTORY_ANDROID_H_ 33 #endif // CONTENT_BROWSER_RENDERER_HOST_IMAGE_TRANSPORT_FACTORY_ANDROID_H_
OLDNEW
« no previous file with comments | « content/browser/renderer_host/image_transport_factory.cc ('k') | content/common/appcache/appcache_backend_proxy.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698