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

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

Issue 145313006: [#7] Pass gfx structs by const ref (gfx::Size) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 6 years, 10 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
« no previous file with comments | « cc/output/direct_renderer.cc ('k') | 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 190 matching lines...) Expand 10 before | Expand all | Expand 10 after
201 AsyncGetFramebufferPixelsCleanupCallback; 201 AsyncGetFramebufferPixelsCleanupCallback;
202 void DoGetFramebufferPixels( 202 void DoGetFramebufferPixels(
203 uint8* pixels, 203 uint8* pixels,
204 const gfx::Rect& window_rect, 204 const gfx::Rect& window_rect,
205 const AsyncGetFramebufferPixelsCleanupCallback& cleanup_callback); 205 const AsyncGetFramebufferPixelsCleanupCallback& cleanup_callback);
206 void FinishedReadback( 206 void FinishedReadback(
207 const AsyncGetFramebufferPixelsCleanupCallback& cleanup_callback, 207 const AsyncGetFramebufferPixelsCleanupCallback& cleanup_callback,
208 unsigned source_buffer, 208 unsigned source_buffer,
209 unsigned query, 209 unsigned query,
210 uint8_t* dest_pixels, 210 uint8_t* dest_pixels,
211 gfx::Size size); 211 const gfx::Size& size);
212 void PassOnSkBitmap(scoped_ptr<SkBitmap> bitmap, 212 void PassOnSkBitmap(scoped_ptr<SkBitmap> bitmap,
213 scoped_ptr<SkAutoLockPixels> lock, 213 scoped_ptr<SkAutoLockPixels> lock,
214 scoped_ptr<CopyOutputRequest> request, 214 scoped_ptr<CopyOutputRequest> request,
215 bool success); 215 bool success);
216 216
217 void ReinitializeGLState(); 217 void ReinitializeGLState();
218 218
219 virtual void DiscardBackbuffer() OVERRIDE; 219 virtual void DiscardBackbuffer() OVERRIDE;
220 virtual void EnsureBackbuffer() OVERRIDE; 220 virtual void EnsureBackbuffer() OVERRIDE;
221 void EnforceMemoryPolicy(); 221 void EnforceMemoryPolicy();
(...skipping 218 matching lines...) Expand 10 before | Expand all | Expand 10 after
440 #if DEBUG_GL_CALLS && !defined(NDEBUG) 440 #if DEBUG_GL_CALLS && !defined(NDEBUG)
441 #define GLC(context, x) \ 441 #define GLC(context, x) \
442 (x, GLRenderer::DebugGLCall(&* context, #x, __FILE__, __LINE__)) 442 (x, GLRenderer::DebugGLCall(&* context, #x, __FILE__, __LINE__))
443 #else 443 #else
444 #define GLC(context, x) (x) 444 #define GLC(context, x) (x)
445 #endif 445 #endif
446 446
447 } // namespace cc 447 } // namespace cc
448 448
449 #endif // CC_OUTPUT_GL_RENDERER_H_ 449 #endif // CC_OUTPUT_GL_RENDERER_H_
OLDNEW
« no previous file with comments | « cc/output/direct_renderer.cc ('k') | cc/output/gl_renderer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698