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

Side by Side Diff: webkit/gpu/webgraphicscontext3d_in_process_command_buffer_impl.h

Issue 12250017: Fixed bug in allocation of temporary scanline during frame buffer readback. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Added early out from out-of-process command buffer impl. Created 7 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | webkit/gpu/webgraphicscontext3d_in_process_command_buffer_impl.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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 WEBKIT_GPU_WEBGRAPHICSCONTEXT3D_IN_PROCESS_COMMAND_BUFFER_IMPL_H_ 5 #ifndef WEBKIT_GPU_WEBGRAPHICSCONTEXT3D_IN_PROCESS_COMMAND_BUFFER_IMPL_H_
6 #define WEBKIT_GPU_WEBGRAPHICSCONTEXT3D_IN_PROCESS_COMMAND_BUFFER_IMPL_H_ 6 #define WEBKIT_GPU_WEBGRAPHICSCONTEXT3D_IN_PROCESS_COMMAND_BUFFER_IMPL_H_
7 7
8 #if defined(ENABLE_GPU) 8 #if defined(ENABLE_GPU)
9 9
10 #include <vector> 10 #include <vector>
(...skipping 515 matching lines...) Expand 10 before | Expand all | Expand 10 after
526 WebKit::WebGraphicsContext3D::Attributes attributes_; 526 WebKit::WebGraphicsContext3D::Attributes attributes_;
527 int cached_width_, cached_height_; 527 int cached_width_, cached_height_;
528 528
529 // For tracking which FBO is bound. 529 // For tracking which FBO is bound.
530 WebGLId bound_fbo_; 530 WebGLId bound_fbo_;
531 531
532 // Errors raised by synthesizeGLError(). 532 // Errors raised by synthesizeGLError().
533 std::vector<WGC3Denum> synthetic_errors_; 533 std::vector<WGC3Denum> synthetic_errors_;
534 534
535 #ifdef FLIP_FRAMEBUFFER_VERTICALLY 535 #ifdef FLIP_FRAMEBUFFER_VERTICALLY
536 scoped_array<uint8> scanline_; 536 std::vector<uint8> scanline_;
537 void FlipVertically(uint8* framebuffer, 537 void FlipVertically(uint8* framebuffer,
538 unsigned int width, 538 unsigned int width,
539 unsigned int height); 539 unsigned int height);
540 #endif 540 #endif
541 }; 541 };
542 542
543 } // namespace gpu 543 } // namespace gpu
544 } // namespace webkit 544 } // namespace webkit
545 545
546 #endif // defined(ENABLE_GPU) 546 #endif // defined(ENABLE_GPU)
547 #endif // WEBKIT_GPU_WEBGRAPHICSCONTEXT3D_IN_PROCESS_COMMAND_BUFFER_IMPL_H_ 547 #endif // WEBKIT_GPU_WEBGRAPHICSCONTEXT3D_IN_PROCESS_COMMAND_BUFFER_IMPL_H_
OLDNEW
« no previous file with comments | « no previous file | webkit/gpu/webgraphicscontext3d_in_process_command_buffer_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698