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 #include "gpu/command_buffer/service/gles2_cmd_copy_texture_chromium.h" | 5 #include "gpu/command_buffer/service/gles2_cmd_copy_texture_chromium.h" |
6 | 6 |
| 7 #include <stddef.h> |
| 8 |
7 #include <algorithm> | 9 #include <algorithm> |
8 | 10 |
9 #include "base/basictypes.h" | |
10 #include "gpu/command_buffer/service/gl_utils.h" | 11 #include "gpu/command_buffer/service/gl_utils.h" |
11 #include "gpu/command_buffer/service/gles2_cmd_decoder.h" | 12 #include "gpu/command_buffer/service/gles2_cmd_decoder.h" |
12 #include "ui/gl/gl_implementation.h" | 13 #include "ui/gl/gl_implementation.h" |
13 | 14 |
14 namespace { | 15 namespace { |
15 | 16 |
16 const GLfloat kIdentityMatrix[16] = {1.0f, 0.0f, 0.0f, 0.0f, | 17 const GLfloat kIdentityMatrix[16] = {1.0f, 0.0f, 0.0f, 0.0f, |
17 0.0f, 1.0f, 0.0f, 0.0f, | 18 0.0f, 1.0f, 0.0f, 0.0f, |
18 0.0f, 0.0f, 1.0f, 0.0f, | 19 0.0f, 0.0f, 1.0f, 0.0f, |
19 0.0f, 0.0f, 0.0f, 1.0f}; | 20 0.0f, 0.0f, 0.0f, 1.0f}; |
(...skipping 638 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
658 decoder->RestoreTextureState(dest_id); | 659 decoder->RestoreTextureState(dest_id); |
659 decoder->RestoreTextureUnitBindings(0); | 660 decoder->RestoreTextureUnitBindings(0); |
660 decoder->RestoreActiveTexture(); | 661 decoder->RestoreActiveTexture(); |
661 decoder->RestoreProgramBindings(); | 662 decoder->RestoreProgramBindings(); |
662 decoder->RestoreBufferBindings(); | 663 decoder->RestoreBufferBindings(); |
663 decoder->RestoreFramebufferBindings(); | 664 decoder->RestoreFramebufferBindings(); |
664 decoder->RestoreGlobalState(); | 665 decoder->RestoreGlobalState(); |
665 } | 666 } |
666 | 667 |
667 } // namespace gpu | 668 } // namespace gpu |
OLD | NEW |