OLD | NEW |
1 // Copyright 2010 The Chromium Authors. All rights reserved. | 1 // Copyright 2010 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 CC_OUTPUT_GL_RENDERER_H_ | 5 #ifndef CC_OUTPUT_GL_RENDERER_H_ |
6 #define CC_OUTPUT_GL_RENDERER_H_ | 6 #define CC_OUTPUT_GL_RENDERER_H_ |
7 | 7 |
8 #include "base/cancelable_callback.h" | 8 #include "base/cancelable_callback.h" |
9 #include "cc/base/cc_export.h" | 9 #include "cc/base/cc_export.h" |
10 #include "cc/base/scoped_ptr_vector.h" | 10 #include "cc/base/scoped_ptr_vector.h" |
(...skipping 186 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
197 typedef base::Callback<void(scoped_ptr<CopyOutputRequest> copy_request, | 197 typedef base::Callback<void(scoped_ptr<CopyOutputRequest> copy_request, |
198 bool success)> | 198 bool success)> |
199 AsyncGetFramebufferPixelsCleanupCallback; | 199 AsyncGetFramebufferPixelsCleanupCallback; |
200 void DoGetFramebufferPixels( | 200 void DoGetFramebufferPixels( |
201 uint8* pixels, | 201 uint8* pixels, |
202 gfx::Rect window_rect, | 202 gfx::Rect window_rect, |
203 const AsyncGetFramebufferPixelsCleanupCallback& cleanup_callback); | 203 const AsyncGetFramebufferPixelsCleanupCallback& cleanup_callback); |
204 void FinishedReadback( | 204 void FinishedReadback( |
205 const AsyncGetFramebufferPixelsCleanupCallback& cleanup_callback, | 205 const AsyncGetFramebufferPixelsCleanupCallback& cleanup_callback, |
206 unsigned source_buffer, | 206 unsigned source_buffer, |
| 207 unsigned query, |
207 uint8_t* dest_pixels, | 208 uint8_t* dest_pixels, |
208 gfx::Size size); | 209 gfx::Size size); |
209 void PassOnSkBitmap(scoped_ptr<SkBitmap> bitmap, | 210 void PassOnSkBitmap(scoped_ptr<SkBitmap> bitmap, |
210 scoped_ptr<SkAutoLockPixels> lock, | 211 scoped_ptr<SkAutoLockPixels> lock, |
211 scoped_ptr<CopyOutputRequest> request, | 212 scoped_ptr<CopyOutputRequest> request, |
212 bool success); | 213 bool success); |
213 void DeleteTextureReleaseCallback(unsigned texture_id, | 214 void DeleteTextureReleaseCallback(unsigned texture_id, |
214 unsigned sync_point, | 215 unsigned sync_point, |
215 bool lost_resource); | 216 bool lost_resource); |
216 | 217 |
(...skipping 231 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
448 #if DEBUG_GL_CALLS && !defined(NDEBUG) | 449 #if DEBUG_GL_CALLS && !defined(NDEBUG) |
449 #define GLC(context, x) \ | 450 #define GLC(context, x) \ |
450 (x, GLRenderer::DebugGLCall(&* context, #x, __FILE__, __LINE__)) | 451 (x, GLRenderer::DebugGLCall(&* context, #x, __FILE__, __LINE__)) |
451 #else | 452 #else |
452 #define GLC(context, x) (x) | 453 #define GLC(context, x) (x) |
453 #endif | 454 #endif |
454 | 455 |
455 } // namespace cc | 456 } // namespace cc |
456 | 457 |
457 #endif // CC_OUTPUT_GL_RENDERER_H_ | 458 #endif // CC_OUTPUT_GL_RENDERER_H_ |
OLD | NEW |