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

Side by Side Diff: cc/output/gl_renderer.h

Issue 16831004: Perform glReadPixels with PBOs in the gpu, if PBOs are available. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: oops, did not mean to upload license.py Created 7 years, 6 months 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 | « no previous file | cc/output/gl_renderer.cc » ('j') | content/common/gpu/client/gl_helper.cc » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « no previous file | cc/output/gl_renderer.cc » ('j') | content/common/gpu/client/gl_helper.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698