| 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 | 8 |
| 9 namespace gpu { | 9 namespace gpu { |
| 10 namespace gles2 { | 10 namespace gles2 { |
| (...skipping 693 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 704 error::Error GLES2DecoderPassthroughImpl::DoFinish() { | 704 error::Error GLES2DecoderPassthroughImpl::DoFinish() { |
| 705 glFinish(); | 705 glFinish(); |
| 706 return error::kNoError; | 706 return error::kNoError; |
| 707 } | 707 } |
| 708 | 708 |
| 709 error::Error GLES2DecoderPassthroughImpl::DoFlush() { | 709 error::Error GLES2DecoderPassthroughImpl::DoFlush() { |
| 710 glFlush(); | 710 glFlush(); |
| 711 return error::kNoError; | 711 return error::kNoError; |
| 712 } | 712 } |
| 713 | 713 |
| 714 error::Error GLES2DecoderPassthroughImpl::DoFlushMappedBufferRange( |
| 715 GLenum target, |
| 716 GLintptr offset, |
| 717 GLsizeiptr size) { |
| 718 return error::kNoError; |
| 719 } |
| 720 |
| 714 error::Error GLES2DecoderPassthroughImpl::DoFramebufferRenderbuffer( | 721 error::Error GLES2DecoderPassthroughImpl::DoFramebufferRenderbuffer( |
| 715 GLenum target, | 722 GLenum target, |
| 716 GLenum attachment, | 723 GLenum attachment, |
| 717 GLenum renderbuffertarget, | 724 GLenum renderbuffertarget, |
| 718 GLuint renderbuffer) { | 725 GLuint renderbuffer) { |
| 719 // TODO(geofflang): Handle this case in ANGLE by adding a WebGL validation | 726 // TODO(geofflang): Handle this case in ANGLE by adding a WebGL validation |
| 720 // mode. | 727 // mode. |
| 721 if (attachment == GL_DEPTH_STENCIL_ATTACHMENT) { | 728 if (attachment == GL_DEPTH_STENCIL_ATTACHMENT) { |
| 722 glFramebufferRenderbufferEXT( | 729 glFramebufferRenderbufferEXT( |
| 723 target, GL_DEPTH_ATTACHMENT, renderbuffertarget, | 730 target, GL_DEPTH_ATTACHMENT, renderbuffertarget, |
| (...skipping 2334 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3058 GLES2DecoderPassthroughImpl::DoUniformMatrix4fvStreamTextureMatrixCHROMIUM( | 3065 GLES2DecoderPassthroughImpl::DoUniformMatrix4fvStreamTextureMatrixCHROMIUM( |
| 3059 GLint location, | 3066 GLint location, |
| 3060 GLboolean transpose, | 3067 GLboolean transpose, |
| 3061 const volatile GLfloat* defaultValue) { | 3068 const volatile GLfloat* defaultValue) { |
| 3062 NOTIMPLEMENTED(); | 3069 NOTIMPLEMENTED(); |
| 3063 return error::kNoError; | 3070 return error::kNoError; |
| 3064 } | 3071 } |
| 3065 | 3072 |
| 3066 } // namespace gles2 | 3073 } // namespace gles2 |
| 3067 } // namespace gpu | 3074 } // namespace gpu |
| OLD | NEW |