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

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

Issue 11234008: Enable texture readback support for Android (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebased Created 8 years, 1 month 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 WebKit {
12 class WebGraphicsContext3D;
13 }
14
11 namespace content { 15 namespace content {
16 class GLHelper;
12 class WebGraphicsContext3DCommandBufferImpl; 17 class WebGraphicsContext3DCommandBufferImpl;
13 18
14 class ImageTransportFactoryAndroid { 19 class ImageTransportFactoryAndroid {
15 public: 20 public:
16 ImageTransportFactoryAndroid(); 21 ImageTransportFactoryAndroid();
17 ~ImageTransportFactoryAndroid(); 22 ~ImageTransportFactoryAndroid();
18 23
19 static ImageTransportFactoryAndroid* GetInstance(); 24 static ImageTransportFactoryAndroid* GetInstance();
20 25
21 gfx::GLSurfaceHandle CreateSharedSurfaceHandle(); 26 gfx::GLSurfaceHandle CreateSharedSurfaceHandle();
22 void DestroySharedSurfaceHandle(const gfx::GLSurfaceHandle& handle); 27 void DestroySharedSurfaceHandle(const gfx::GLSurfaceHandle& handle);
23 28
24 uint32_t InsertSyncPoint(); 29 uint32_t InsertSyncPoint();
25 30
26 WebGraphicsContext3DCommandBufferImpl* GetContext3D(); 31 WebKit::WebGraphicsContext3D* GetContext3D();
32 GLHelper* GetGLHelper();
33
27 private: 34 private:
28 scoped_ptr<WebGraphicsContext3DCommandBufferImpl> context_; 35 scoped_ptr<WebGraphicsContext3DCommandBufferImpl> context_;
36 scoped_ptr<GLHelper> gl_helper_;
29 }; 37 };
30 38
31 } // namespace content 39 } // namespace content
32 40
33 #endif // CONTENT_BROWSER_RENDERER_HOST_IMAGE_TRANSPORT_FACTORY_ANDROID_H_ 41 #endif // CONTENT_BROWSER_RENDERER_HOST_IMAGE_TRANSPORT_FACTORY_ANDROID_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698