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

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

Issue 19579008: Revert "Revert 210138 "Perform glReadPixels with PBOs in the gpu, if PBO..."" (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: previous upload reverts the revert, here are the changes Created 7 years, 5 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') | no next file with comments »
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 183 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 253 matching lines...) Expand 10 before | Expand all | Expand 10 after
467 #if DEBUG_GL_CALLS && !defined(NDEBUG) 468 #if DEBUG_GL_CALLS && !defined(NDEBUG)
468 #define GLC(context, x) \ 469 #define GLC(context, x) \
469 (x, GLRenderer::DebugGLCall(&* context, #x, __FILE__, __LINE__)) 470 (x, GLRenderer::DebugGLCall(&* context, #x, __FILE__, __LINE__))
470 #else 471 #else
471 #define GLC(context, x) (x) 472 #define GLC(context, x) (x)
472 #endif 473 #endif
473 474
474 } // namespace cc 475 } // namespace cc
475 476
476 #endif // CC_OUTPUT_GL_RENDERER_H_ 477 #endif // CC_OUTPUT_GL_RENDERER_H_
OLDNEW
« no previous file with comments | « no previous file | cc/output/gl_renderer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698