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

Side by Side Diff: content/public/browser/android/compositor.h

Issue 11558039: Subrect snapshot support. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Moved capture to the readback method Created 8 years 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
« no previous file with comments | « content/common/gpu/client/gl_helper.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 "content/common/content_export.h" 9 #include "content/common/content_export.h"
10 #include "ui/gfx/native_widget_types.h" 10 #include "ui/gfx/native_widget_types.h"
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
86 // Generates an OpenGL compressed texture and returns a texture handle. May 86 // Generates an OpenGL compressed texture and returns a texture handle. May
87 // return 0 if the current context is lost. 87 // return 0 if the current context is lost.
88 virtual WebKit::WebGLId GenerateCompressedTexture(gfx::Size& size, 88 virtual WebKit::WebGLId GenerateCompressedTexture(gfx::Size& size,
89 int data_size, 89 int data_size,
90 void* data) = 0; 90 void* data) = 0;
91 91
92 // Deletes an OpenGL texture. 92 // Deletes an OpenGL texture.
93 virtual void DeleteTexture(WebKit::WebGLId texture_id) = 0; 93 virtual void DeleteTexture(WebKit::WebGLId texture_id) = 0;
94 94
95 // Grabs a copy of |texture_id| and saves it into |bitmap|. No scaling is 95 // Grabs a copy of |texture_id| and saves it into |bitmap|. No scaling is
96 // done. It is assumed that the texture size matches that of the bitmap. 96 // done. It is assumed that the texture size matches that of the bitmap.
no sievers 2012/12/17 23:48:59 update the comment -> "src_rect needs to match the
David Trainor- moved to gerrit 2012/12/18 19:14:31 Done.
97 virtual void CopyTextureToBitmap(WebKit::WebGLId texture_id, 97 virtual void CopyTextureToBitmap(WebKit::WebGLId texture_id,
98 const gfx::Rect& src_rect,
98 gfx::JavaBitmap& bitmap) = 0; 99 gfx::JavaBitmap& bitmap) = 0;
99 protected: 100 protected:
100 Compositor() {} 101 Compositor() {}
101 }; 102 };
102 103
103 } // namespace content 104 } // namespace content
104 105
105 #endif // CONTENT_PUBLIC_BROWSER_ANDROID_COMPOSITOR_H_ 106 #endif // CONTENT_PUBLIC_BROWSER_ANDROID_COMPOSITOR_H_
OLDNEW
« no previous file with comments | « content/common/gpu/client/gl_helper.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698