| 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 184 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 195 typedef base::Callback<void(scoped_ptr<CopyOutputRequest> copy_request, | 195 typedef base::Callback<void(scoped_ptr<CopyOutputRequest> copy_request, |
| 196 bool success)> | 196 bool success)> |
| 197 AsyncGetFramebufferPixelsCleanupCallback; | 197 AsyncGetFramebufferPixelsCleanupCallback; |
| 198 void DoGetFramebufferPixels( | 198 void DoGetFramebufferPixels( |
| 199 uint8* pixels, | 199 uint8* pixels, |
| 200 gfx::Rect rect, | 200 gfx::Rect rect, |
| 201 const AsyncGetFramebufferPixelsCleanupCallback& cleanup_callback); | 201 const AsyncGetFramebufferPixelsCleanupCallback& cleanup_callback); |
| 202 void FinishedReadback( | 202 void FinishedReadback( |
| 203 const AsyncGetFramebufferPixelsCleanupCallback& cleanup_callback, | 203 const AsyncGetFramebufferPixelsCleanupCallback& cleanup_callback, |
| 204 unsigned source_buffer, | 204 unsigned source_buffer, |
| 205 unsigned query, |
| 205 uint8_t* dest_pixels, | 206 uint8_t* dest_pixels, |
| 206 gfx::Size size); | 207 gfx::Size size); |
| 207 void PassOnSkBitmap( | 208 void PassOnSkBitmap( |
| 208 scoped_ptr<SkBitmap> bitmap, | 209 scoped_ptr<SkBitmap> bitmap, |
| 209 scoped_ptr<SkAutoLockPixels> lock, | 210 scoped_ptr<SkAutoLockPixels> lock, |
| 210 scoped_ptr<CopyOutputRequest> request, | 211 scoped_ptr<CopyOutputRequest> request, |
| 211 bool success); | 212 bool success); |
| 212 | 213 |
| 213 void ReinitializeGrCanvas(); | 214 void ReinitializeGrCanvas(); |
| 214 void ReinitializeGLState(); | 215 void ReinitializeGLState(); |
| (...skipping 227 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 442 #if DEBUG_GL_CALLS && !defined(NDEBUG) | 443 #if DEBUG_GL_CALLS && !defined(NDEBUG) |
| 443 #define GLC(context, x) \ | 444 #define GLC(context, x) \ |
| 444 (x, GLRenderer::DebugGLCall(&* context, #x, __FILE__, __LINE__)) | 445 (x, GLRenderer::DebugGLCall(&* context, #x, __FILE__, __LINE__)) |
| 445 #else | 446 #else |
| 446 #define GLC(context, x) (x) | 447 #define GLC(context, x) (x) |
| 447 #endif | 448 #endif |
| 448 | 449 |
| 449 } // namespace cc | 450 } // namespace cc |
| 450 | 451 |
| 451 #endif // CC_OUTPUT_GL_RENDERER_H_ | 452 #endif // CC_OUTPUT_GL_RENDERER_H_ |
| OLD | NEW |