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 183 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
194 typedef base::Callback<void(scoped_ptr<CopyOutputRequest> copy_request, | 194 typedef base::Callback<void(scoped_ptr<CopyOutputRequest> copy_request, |
195 bool success)> | 195 bool success)> |
196 AsyncGetFramebufferPixelsCleanupCallback; | 196 AsyncGetFramebufferPixelsCleanupCallback; |
197 void DoGetFramebufferPixels( | 197 void DoGetFramebufferPixels( |
198 uint8* pixels, | 198 uint8* pixels, |
199 gfx::Rect window_rect, | 199 gfx::Rect window_rect, |
200 const AsyncGetFramebufferPixelsCleanupCallback& cleanup_callback); | 200 const AsyncGetFramebufferPixelsCleanupCallback& cleanup_callback); |
201 void FinishedReadback( | 201 void FinishedReadback( |
202 const AsyncGetFramebufferPixelsCleanupCallback& cleanup_callback, | 202 const AsyncGetFramebufferPixelsCleanupCallback& cleanup_callback, |
203 unsigned source_buffer, | 203 unsigned source_buffer, |
| 204 unsigned query, |
204 uint8_t* dest_pixels, | 205 uint8_t* dest_pixels, |
205 gfx::Size size); | 206 gfx::Size size); |
206 void PassOnSkBitmap(scoped_ptr<SkBitmap> bitmap, | 207 void PassOnSkBitmap(scoped_ptr<SkBitmap> bitmap, |
207 scoped_ptr<SkAutoLockPixels> lock, | 208 scoped_ptr<SkAutoLockPixels> lock, |
208 scoped_ptr<CopyOutputRequest> request, | 209 scoped_ptr<CopyOutputRequest> request, |
209 bool success); | 210 bool success); |
210 | 211 |
211 static void DeleteTextureReleaseCallback( | 212 static void DeleteTextureReleaseCallback( |
212 scoped_refptr<base::SingleThreadTaskRunner> task_runner, | 213 scoped_refptr<base::SingleThreadTaskRunner> task_runner, |
213 base::WeakPtr<GLRenderer> gl_renderer, | 214 base::WeakPtr<GLRenderer> gl_renderer, |
(...skipping 237 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
451 #if DEBUG_GL_CALLS && !defined(NDEBUG) | 452 #if DEBUG_GL_CALLS && !defined(NDEBUG) |
452 #define GLC(context, x) \ | 453 #define GLC(context, x) \ |
453 (x, GLRenderer::DebugGLCall(&* context, #x, __FILE__, __LINE__)) | 454 (x, GLRenderer::DebugGLCall(&* context, #x, __FILE__, __LINE__)) |
454 #else | 455 #else |
455 #define GLC(context, x) (x) | 456 #define GLC(context, x) (x) |
456 #endif | 457 #endif |
457 | 458 |
458 } // namespace cc | 459 } // namespace cc |
459 | 460 |
460 #endif // CC_OUTPUT_GL_RENDERER_H_ | 461 #endif // CC_OUTPUT_GL_RENDERER_H_ |
OLD | NEW |