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

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: use webglid where approperiate 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') | cc/output/gl_renderer.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 184 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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_
OLDNEW
« no previous file with comments | « no previous file | cc/output/gl_renderer.cc » ('j') | cc/output/gl_renderer.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698