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 #include "gpu/command_buffer/service/gles2_cmd_decoder.h" | 5 #include "gpu/command_buffer/service/gles2_cmd_decoder.h" |
6 | 6 |
7 #include <stdio.h> | 7 #include <stdio.h> |
8 | 8 |
9 #include <algorithm> | 9 #include <algorithm> |
10 #include <list> | 10 #include <list> |
(...skipping 2611 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2622 0, // level | 2622 0, // level |
2623 GL_RGBA, | 2623 GL_RGBA, |
2624 0, 0, // x, y | 2624 0, 0, // x, y |
2625 width, | 2625 width, |
2626 height, | 2626 height, |
2627 0); // border | 2627 0); // border |
2628 } | 2628 } |
2629 } | 2629 } |
2630 | 2630 |
2631 void GLES2DecoderImpl::DoResizeCHROMIUM(GLuint width, GLuint height) { | 2631 void GLES2DecoderImpl::DoResizeCHROMIUM(GLuint width, GLuint height) { |
2632 #if defined(OS_LINUX) | 2632 #if defined(OS_POSIX) && !defined(OS_MACOSX) |
2633 // Make sure that we are done drawing to the back buffer before resizing. | 2633 // Make sure that we are done drawing to the back buffer before resizing. |
2634 glFinish(); | 2634 glFinish(); |
2635 #endif | 2635 #endif |
2636 if (resize_callback_.get()) { | 2636 if (resize_callback_.get()) { |
2637 gfx::Size size(width, height); | 2637 gfx::Size size(width, height); |
2638 resize_callback_->Run(size); | 2638 resize_callback_->Run(size); |
2639 } | 2639 } |
2640 } | 2640 } |
2641 | 2641 |
2642 void GLES2DecoderImpl::DoSetSurfaceCHROMIUM(GLint surface_id) { | 2642 void GLES2DecoderImpl::DoSetSurfaceCHROMIUM(GLint surface_id) { |
(...skipping 3920 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6563 return error::kNoError; | 6563 return error::kNoError; |
6564 } | 6564 } |
6565 | 6565 |
6566 // Include the auto-generated part of this file. We split this because it means | 6566 // Include the auto-generated part of this file. We split this because it means |
6567 // we can easily edit the non-auto generated parts right here in this file | 6567 // we can easily edit the non-auto generated parts right here in this file |
6568 // instead of having to edit some template or the code generator. | 6568 // instead of having to edit some template or the code generator. |
6569 #include "gpu/command_buffer/service/gles2_cmd_decoder_autogen.h" | 6569 #include "gpu/command_buffer/service/gles2_cmd_decoder_autogen.h" |
6570 | 6570 |
6571 } // namespace gles2 | 6571 } // namespace gles2 |
6572 } // namespace gpu | 6572 } // namespace gpu |
OLD | NEW |