| OLD | NEW |
| 1 // Copyright (c) 2016 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2016 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_passthrough.h" | 5 #include "gpu/command_buffer/service/gles2_cmd_decoder_passthrough.h" |
| 6 | 6 |
| 7 #include "base/strings/string_number_conversions.h" | 7 #include "base/strings/string_number_conversions.h" |
| 8 #include "ui/gl/gl_version_info.h" | 8 #include "ui/gl/gl_version_info.h" |
| 9 | 9 |
| 10 namespace gpu { | 10 namespace gpu { |
| (...skipping 1669 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1680 } | 1680 } |
| 1681 | 1681 |
| 1682 error::Error GLES2DecoderPassthroughImpl::DoReadPixels(GLint x, | 1682 error::Error GLES2DecoderPassthroughImpl::DoReadPixels(GLint x, |
| 1683 GLint y, | 1683 GLint y, |
| 1684 GLsizei width, | 1684 GLsizei width, |
| 1685 GLsizei height, | 1685 GLsizei height, |
| 1686 GLenum format, | 1686 GLenum format, |
| 1687 GLenum type, | 1687 GLenum type, |
| 1688 GLsizei bufsize, | 1688 GLsizei bufsize, |
| 1689 GLsizei* length, | 1689 GLsizei* length, |
| 1690 GLsizei* columns, | |
| 1691 GLsizei* rows, | |
| 1692 void* pixels, | 1690 void* pixels, |
| 1693 int32_t* success) { | 1691 int32_t* success) { |
| 1694 FlushErrors(); | 1692 FlushErrors(); |
| 1695 glReadPixelsRobustANGLE(x, y, width, height, format, type, bufsize, length, | 1693 glReadPixelsRobustANGLE(x, y, width, height, format, type, bufsize, length, |
| 1696 columns, rows, pixels); | 1694 pixels); |
| 1697 *success = FlushErrors() ? 0 : 1; | 1695 *success = FlushErrors() ? 0 : 1; |
| 1698 return error::kNoError; | 1696 return error::kNoError; |
| 1699 } | 1697 } |
| 1700 | 1698 |
| 1701 error::Error GLES2DecoderPassthroughImpl::DoReleaseShaderCompiler() { | 1699 error::Error GLES2DecoderPassthroughImpl::DoReleaseShaderCompiler() { |
| 1702 glReleaseShaderCompiler(); | 1700 glReleaseShaderCompiler(); |
| 1703 return error::kNoError; | 1701 return error::kNoError; |
| 1704 } | 1702 } |
| 1705 | 1703 |
| 1706 error::Error GLES2DecoderPassthroughImpl::DoRenderbufferStorage( | 1704 error::Error GLES2DecoderPassthroughImpl::DoRenderbufferStorage( |
| (...skipping 2262 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3969 } | 3967 } |
| 3970 | 3968 |
| 3971 error::Error GLES2DecoderPassthroughImpl::DoSetEnableDCLayersCHROMIUM( | 3969 error::Error GLES2DecoderPassthroughImpl::DoSetEnableDCLayersCHROMIUM( |
| 3972 GLboolean enable) { | 3970 GLboolean enable) { |
| 3973 NOTIMPLEMENTED(); | 3971 NOTIMPLEMENTED(); |
| 3974 return error::kNoError; | 3972 return error::kNoError; |
| 3975 } | 3973 } |
| 3976 | 3974 |
| 3977 } // namespace gles2 | 3975 } // namespace gles2 |
| 3978 } // namespace gpu | 3976 } // namespace gpu |
| OLD | NEW |