OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 CONTENT_RENDERER_GPU_WEBGRAPHICSCONTEXT3D_COMMAND_BUFFER_IMPL_H_ | 5 #ifndef CONTENT_RENDERER_GPU_WEBGRAPHICSCONTEXT3D_COMMAND_BUFFER_IMPL_H_ |
6 #define CONTENT_RENDERER_GPU_WEBGRAPHICSCONTEXT3D_COMMAND_BUFFER_IMPL_H_ | 6 #define CONTENT_RENDERER_GPU_WEBGRAPHICSCONTEXT3D_COMMAND_BUFFER_IMPL_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #if defined(ENABLE_GPU) | 9 #if defined(ENABLE_GPU) |
10 | 10 |
(...skipping 498 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
509 | 509 |
510 // For tracking which FBO is bound. | 510 // For tracking which FBO is bound. |
511 WebGLId bound_fbo_; | 511 WebGLId bound_fbo_; |
512 | 512 |
513 // Errors raised by synthesizeGLError(). | 513 // Errors raised by synthesizeGLError(). |
514 std::vector<WGC3Denum> synthetic_errors_; | 514 std::vector<WGC3Denum> synthetic_errors_; |
515 | 515 |
516 base::WeakPtrFactory<WebGraphicsContext3DCommandBufferImpl> weak_ptr_factory_; | 516 base::WeakPtrFactory<WebGraphicsContext3DCommandBufferImpl> weak_ptr_factory_; |
517 | 517 |
518 #ifdef FLIP_FRAMEBUFFER_VERTICALLY | 518 #ifdef FLIP_FRAMEBUFFER_VERTICALLY |
519 scoped_array<uint8> scanline_; | 519 std::vector<uint8> scanline_; |
520 void FlipVertically(uint8* framebuffer, | 520 void FlipVertically(uint8* framebuffer, |
521 unsigned int width, | 521 unsigned int width, |
522 unsigned int height); | 522 unsigned int height); |
523 #endif | 523 #endif |
524 }; | 524 }; |
525 | 525 |
526 #endif // defined(ENABLE_GPU) | 526 #endif // defined(ENABLE_GPU) |
527 #endif // CONTENT_RENDERER_GPU_WEBGRAPHICSCONTEXT3D_COMMAND_BUFFER_IMPL_H_ | 527 #endif // CONTENT_RENDERER_GPU_WEBGRAPHICSCONTEXT3D_COMMAND_BUFFER_IMPL_H_ |
OLD | NEW |