OLD | NEW |
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 Loading... |
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_ |
OLD | NEW |