| 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 "webkit/gpu/webgraphicscontext3d_in_process_impl.h" | 5 #include "webkit/gpu/webgraphicscontext3d_in_process_impl.h" |
| 6 | 6 |
| 7 #include <string.h> | 7 #include <string.h> |
| 8 | 8 |
| 9 #include <algorithm> | 9 #include <algorithm> |
| 10 #include <string> | 10 #include <string> |
| (...skipping 676 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 687 0, // level | 687 0, // level |
| 688 GL_RGBA, | 688 GL_RGBA, |
| 689 0, 0, // x, y | 689 0, 0, // x, y |
| 690 width, | 690 width, |
| 691 height, | 691 height, |
| 692 0); // border | 692 0); // border |
| 693 glBindTexture(GL_TEXTURE_2D, bound_texture_); | 693 glBindTexture(GL_TEXTURE_2D, bound_texture_); |
| 694 glBindFramebufferEXT(GL_FRAMEBUFFER_EXT, bound_fbo_); | 694 glBindFramebufferEXT(GL_FRAMEBUFFER_EXT, bound_fbo_); |
| 695 } | 695 } |
| 696 | 696 |
| 697 void WebGraphicsContext3DInProcessImpl::mapExternalTextureCHROMIUM( |
| 698 WebGLId source_texture, WebGraphicsContext3D* source_context, |
| 699 WebGLId destination_texture) { |
| 700 // TODO(jamesr): implement this, if this is a supported configuration. |
| 701 } |
| 702 |
| 697 WebString WebGraphicsContext3DInProcessImpl:: | 703 WebString WebGraphicsContext3DInProcessImpl:: |
| 698 getRequestableExtensionsCHROMIUM() { | 704 getRequestableExtensionsCHROMIUM() { |
| 699 return WebString(); | 705 return WebString(); |
| 700 } | 706 } |
| 701 | 707 |
| 702 void WebGraphicsContext3DInProcessImpl::requestExtensionCHROMIUM(const char*) { | 708 void WebGraphicsContext3DInProcessImpl::requestExtensionCHROMIUM(const char*) { |
| 703 } | 709 } |
| 704 | 710 |
| 705 void WebGraphicsContext3DInProcessImpl::blitFramebufferCHROMIUM( | 711 void WebGraphicsContext3DInProcessImpl::blitFramebufferCHROMIUM( |
| 706 WGC3Dint srcX0, WGC3Dint srcY0, WGC3Dint srcX1, WGC3Dint srcY1, | 712 WGC3Dint srcX0, WGC3Dint srcY0, WGC3Dint srcX1, WGC3Dint srcY1, |
| (...skipping 931 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1638 if (length > 1) { | 1644 if (length > 1) { |
| 1639 entry->translated_source.reset(new char[length]); | 1645 entry->translated_source.reset(new char[length]); |
| 1640 ShGetObjectCode(compiler, entry->translated_source.get()); | 1646 ShGetObjectCode(compiler, entry->translated_source.get()); |
| 1641 } | 1647 } |
| 1642 entry->is_valid = true; | 1648 entry->is_valid = true; |
| 1643 return true; | 1649 return true; |
| 1644 } | 1650 } |
| 1645 | 1651 |
| 1646 } // namespace gpu | 1652 } // namespace gpu |
| 1647 } // namespace webkit | 1653 } // namespace webkit |
| OLD | NEW |