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

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

Issue 63253002: Rename WebKit namespace to blink (part 3) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 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_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 "cc/resources/ui_resource_bitmap.h" 9 #include "cc/resources/ui_resource_bitmap.h"
10 #include "cc/resources/ui_resource_client.h" 10 #include "cc/resources/ui_resource_client.h"
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
69 69
70 // Generates a UIResource and returns a UIResourceId. May return 0. 70 // Generates a UIResource and returns a UIResourceId. May return 0.
71 virtual cc::UIResourceId GenerateUIResource( 71 virtual cc::UIResourceId GenerateUIResource(
72 const cc::UIResourceBitmap& bitmap) = 0; 72 const cc::UIResourceBitmap& bitmap) = 0;
73 73
74 // Deletes a UIResource. 74 // Deletes a UIResource.
75 virtual void DeleteUIResource(cc::UIResourceId resource_id) = 0; 75 virtual void DeleteUIResource(cc::UIResourceId resource_id) = 0;
76 76
77 // Generates an OpenGL texture and returns a texture handle. May return 0 77 // Generates an OpenGL texture and returns a texture handle. May return 0
78 // if the current context is lost. 78 // if the current context is lost.
79 virtual WebKit::WebGLId GenerateTexture(gfx::JavaBitmap& bitmap) = 0; 79 virtual blink::WebGLId GenerateTexture(gfx::JavaBitmap& bitmap) = 0;
80 80
81 // Generates an OpenGL compressed texture and returns a texture handle. May 81 // Generates an OpenGL compressed texture and returns a texture handle. May
82 // return 0 if the current context is lost. 82 // return 0 if the current context is lost.
83 virtual WebKit::WebGLId GenerateCompressedTexture(gfx::Size& size, 83 virtual blink::WebGLId GenerateCompressedTexture(gfx::Size& size,
84 int data_size, 84 int data_size,
85 void* data) = 0; 85 void* data) = 0;
86 86
87 // Deletes an OpenGL texture. 87 // Deletes an OpenGL texture.
88 virtual void DeleteTexture(WebKit::WebGLId texture_id) = 0; 88 virtual void DeleteTexture(blink::WebGLId texture_id) = 0;
89 89
90 // Grabs a copy of |texture_id| and saves it into |bitmap|. No scaling is 90 // Grabs a copy of |texture_id| and saves it into |bitmap|. No scaling is
91 // done. It is assumed that the texture size matches that of the bitmap. 91 // done. It is assumed that the texture size matches that of the bitmap.
92 virtual bool CopyTextureToBitmap(WebKit::WebGLId texture_id, 92 virtual bool CopyTextureToBitmap(blink::WebGLId texture_id,
93 gfx::JavaBitmap& bitmap) = 0; 93 gfx::JavaBitmap& bitmap) = 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. |src_rect| allows the caller to specify which rect of |texture_id| 96 // done. |src_rect| allows the caller to specify which rect of |texture_id|
97 // to copy to |bitmap|. It needs to match the size of |bitmap|. Returns 97 // to copy to |bitmap|. It needs to match the size of |bitmap|. Returns
98 // true if the |texture_id| was copied into |bitmap|, false if not. 98 // true if the |texture_id| was copied into |bitmap|, false if not.
99 virtual bool CopyTextureToBitmap(WebKit::WebGLId texture_id, 99 virtual bool CopyTextureToBitmap(blink::WebGLId texture_id,
100 const gfx::Rect& src_rect, 100 const gfx::Rect& src_rect,
101 gfx::JavaBitmap& bitmap) = 0; 101 gfx::JavaBitmap& bitmap) = 0;
102 protected: 102 protected:
103 Compositor() {} 103 Compositor() {}
104 }; 104 };
105 105
106 } // namespace content 106 } // namespace content
107 107
108 #endif // CONTENT_PUBLIC_BROWSER_ANDROID_COMPOSITOR_H_ 108 #endif // CONTENT_PUBLIC_BROWSER_ANDROID_COMPOSITOR_H_
OLDNEW
« no previous file with comments | « content/ppapi_plugin/ppapi_webkitplatformsupport_impl.cc ('k') | content/public/browser/android/content_view_layer_renderer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698