| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 "cc/test/test_web_graphics_context_3d.h" | 5 #include "cc/test/test_web_graphics_context_3d.h" |
| 6 | 6 |
| 7 #include <algorithm> | 7 #include <algorithm> |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/bind.h" | 10 #include "base/bind.h" |
| (...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 120 reshape_called_ = true; | 120 reshape_called_ = true; |
| 121 width_ = width; | 121 width_ = width; |
| 122 height_ = height; | 122 height_ = height; |
| 123 scale_factor_ = scale_factor; | 123 scale_factor_ = scale_factor; |
| 124 } | 124 } |
| 125 | 125 |
| 126 bool TestWebGraphicsContext3D::isContextLost() { | 126 bool TestWebGraphicsContext3D::isContextLost() { |
| 127 return context_lost_; | 127 return context_lost_; |
| 128 } | 128 } |
| 129 | 129 |
| 130 WGC3Denum TestWebGraphicsContext3D::getGraphicsResetStatusARB() { | |
| 131 return context_lost_ ? GL_UNKNOWN_CONTEXT_RESET_ARB : GL_NO_ERROR; | |
| 132 } | |
| 133 | |
| 134 WGC3Denum TestWebGraphicsContext3D::checkFramebufferStatus( | 130 WGC3Denum TestWebGraphicsContext3D::checkFramebufferStatus( |
| 135 WGC3Denum target) { | 131 WGC3Denum target) { |
| 136 if (context_lost_) | 132 if (context_lost_) |
| 137 return GL_FRAMEBUFFER_UNDEFINED_OES; | 133 return GL_FRAMEBUFFER_UNDEFINED_OES; |
| 138 return GL_FRAMEBUFFER_COMPLETE; | 134 return GL_FRAMEBUFFER_COMPLETE; |
| 139 } | 135 } |
| 140 | 136 |
| 141 WebGraphicsContext3D::Attributes | 137 WebGraphicsContext3D::Attributes |
| 142 TestWebGraphicsContext3D::getContextAttributes() { | 138 TestWebGraphicsContext3D::getContextAttributes() { |
| 143 return attributes_; | 139 return attributes_; |
| (...skipping 559 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 703 | 699 |
| 704 TestWebGraphicsContext3D::Buffer::Buffer() : target(0), size(0) {} | 700 TestWebGraphicsContext3D::Buffer::Buffer() : target(0), size(0) {} |
| 705 | 701 |
| 706 TestWebGraphicsContext3D::Buffer::~Buffer() {} | 702 TestWebGraphicsContext3D::Buffer::~Buffer() {} |
| 707 | 703 |
| 708 TestWebGraphicsContext3D::Image::Image() {} | 704 TestWebGraphicsContext3D::Image::Image() {} |
| 709 | 705 |
| 710 TestWebGraphicsContext3D::Image::~Image() {} | 706 TestWebGraphicsContext3D::Image::~Image() {} |
| 711 | 707 |
| 712 } // namespace cc | 708 } // namespace cc |
| OLD | NEW |