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

Side by Side Diff: content/public/browser/android/compositor.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, 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_PUBLIC_BROWSER_ANDROID_COMPOSITOR_H_ 5 #ifndef CONTENT_PUBLIC_BROWSER_ANDROID_COMPOSITOR_H_
6 #define CONTENT_PUBLIC_BROWSER_ANDROID_COMPOSITOR_H_ 6 #define CONTENT_PUBLIC_BROWSER_ANDROID_COMPOSITOR_H_
7 7
8 #include "base/callback.h" 8 #include "base/callback.h"
9 #include "ui/gfx/native_widget_types.h" 9 #include "ui/gfx/native_widget_types.h"
10 #include "ui/gfx/rect.h" 10 #include "ui/gfx/rect.h"
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
66 66
67 // Generates an OpenGL compressed texture and returns a texture handle. May 67 // Generates an OpenGL compressed texture and returns a texture handle. May
68 // return 0 if the current context is lost. 68 // return 0 if the current context is lost.
69 virtual WebKit::WebGLId GenerateCompressedTexture(gfx::Size& size, 69 virtual WebKit::WebGLId GenerateCompressedTexture(gfx::Size& size,
70 int data_size, 70 int data_size,
71 void* data) = 0; 71 void* data) = 0;
72 72
73 // Deletes an OpenGL texture. 73 // Deletes an OpenGL texture.
74 virtual void DeleteTexture(WebKit::WebGLId texture_id) = 0; 74 virtual void DeleteTexture(WebKit::WebGLId texture_id) = 0;
75 75
76 // Grabs a copy of |texture_id| and saves it into |bitmap|. No scaling is
77 // done. It is assumed that the texture size matches that of the bitmap.
78 virtual void CopyTextureToBitmap(WebKit::WebGLId texture_id,
79 gfx::JavaBitmap& bitmap) = 0;
76 protected: 80 protected:
77 Compositor() {} 81 Compositor() {}
78 }; 82 };
79 83
80 } // namespace content 84 } // namespace content
81 85
82 #endif // CONTENT_PUBLIC_BROWSER_ANDROID_COMPOSITOR_H_ 86 #endif // CONTENT_PUBLIC_BROWSER_ANDROID_COMPOSITOR_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698