| 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/blink/webgraphicscontext3d_impl.h" | 5 #include "gpu/blink/webgraphicscontext3d_impl.h" |
| 6 | 6 |
| 7 #include <stdint.h> | 7 #include <stdint.h> |
| 8 | 8 |
| 9 #include "base/atomicops.h" | 9 #include "base/atomicops.h" |
| 10 #include "base/lazy_instance.h" | 10 #include "base/lazy_instance.h" |
| (...skipping 181 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 192 | 192 |
| 193 } | 193 } |
| 194 | 194 |
| 195 void WebGraphicsContext3DImpl::synthesizeGLError(WGC3Denum error) { | 195 void WebGraphicsContext3DImpl::synthesizeGLError(WGC3Denum error) { |
| 196 if (std::find(synthetic_errors_.begin(), synthetic_errors_.end(), error) == | 196 if (std::find(synthetic_errors_.begin(), synthetic_errors_.end(), error) == |
| 197 synthetic_errors_.end()) { | 197 synthetic_errors_.end()) { |
| 198 synthetic_errors_.push_back(error); | 198 synthetic_errors_.push_back(error); |
| 199 } | 199 } |
| 200 } | 200 } |
| 201 | 201 |
| 202 bool WebGraphicsContext3DImpl::genSyncTokenCHROMIUM(WGC3Duint64 fenceSync, | |
| 203 WGC3Dbyte* syncToken) { | |
| 204 gl_->GenSyncTokenCHROMIUM(fenceSync, syncToken); | |
| 205 return true; | |
| 206 } | |
| 207 | |
| 208 blink::WebString WebGraphicsContext3DImpl:: | 202 blink::WebString WebGraphicsContext3DImpl:: |
| 209 getRequestableExtensionsCHROMIUM() { | 203 getRequestableExtensionsCHROMIUM() { |
| 210 return blink::WebString::fromUTF8( | 204 return blink::WebString::fromUTF8( |
| 211 gl_->GetRequestableExtensionsCHROMIUM()); | 205 gl_->GetRequestableExtensionsCHROMIUM()); |
| 212 } | 206 } |
| 213 | 207 |
| 214 void WebGraphicsContext3DImpl::blitFramebufferCHROMIUM( | 208 void WebGraphicsContext3DImpl::blitFramebufferCHROMIUM( |
| 215 WGC3Dint srcX0, WGC3Dint srcY0, WGC3Dint srcX1, WGC3Dint srcY1, | 209 WGC3Dint srcX0, WGC3Dint srcY0, WGC3Dint srcX1, WGC3Dint srcY1, |
| 216 WGC3Dint dstX0, WGC3Dint dstY0, WGC3Dint dstX1, WGC3Dint dstY1, | 210 WGC3Dint dstX0, WGC3Dint dstY0, WGC3Dint dstX1, WGC3Dint dstY1, |
| 217 WGC3Dbitfield mask, WGC3Denum filter) { | 211 WGC3Dbitfield mask, WGC3Denum filter) { |
| (...skipping 470 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 688 output_attribs->context_type = ::gpu::gles2::CONTEXT_TYPE_WEBGL2; | 682 output_attribs->context_type = ::gpu::gles2::CONTEXT_TYPE_WEBGL2; |
| 689 break; | 683 break; |
| 690 default: | 684 default: |
| 691 NOTREACHED(); | 685 NOTREACHED(); |
| 692 output_attribs->context_type = ::gpu::gles2::CONTEXT_TYPE_OPENGLES2; | 686 output_attribs->context_type = ::gpu::gles2::CONTEXT_TYPE_OPENGLES2; |
| 693 break; | 687 break; |
| 694 } | 688 } |
| 695 } | 689 } |
| 696 | 690 |
| 697 } // namespace gpu_blink | 691 } // namespace gpu_blink |
| OLD | NEW |