| 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 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 114 void TestWebGraphicsContext3D::reshapeWithScaleFactor( | 114 void TestWebGraphicsContext3D::reshapeWithScaleFactor( |
| 115 int width, int height, float scale_factor) { | 115 int width, int height, float scale_factor) { |
| 116 width_ = width; | 116 width_ = width; |
| 117 height_ = height; | 117 height_ = height; |
| 118 } | 118 } |
| 119 | 119 |
| 120 bool TestWebGraphicsContext3D::isContextLost() { | 120 bool TestWebGraphicsContext3D::isContextLost() { |
| 121 return context_lost_; | 121 return context_lost_; |
| 122 } | 122 } |
| 123 | 123 |
| 124 WGC3Denum TestWebGraphicsContext3D::getGraphicsResetStatusARB() { | |
| 125 return context_lost_ ? GL_UNKNOWN_CONTEXT_RESET_ARB : GL_NO_ERROR; | |
| 126 } | |
| 127 | |
| 128 WGC3Denum TestWebGraphicsContext3D::checkFramebufferStatus( | 124 WGC3Denum TestWebGraphicsContext3D::checkFramebufferStatus( |
| 129 WGC3Denum target) { | 125 WGC3Denum target) { |
| 130 if (context_lost_) | 126 if (context_lost_) |
| 131 return GL_FRAMEBUFFER_UNDEFINED_OES; | 127 return GL_FRAMEBUFFER_UNDEFINED_OES; |
| 132 return GL_FRAMEBUFFER_COMPLETE; | 128 return GL_FRAMEBUFFER_COMPLETE; |
| 133 } | 129 } |
| 134 | 130 |
| 135 WebGraphicsContext3D::Attributes | 131 WebGraphicsContext3D::Attributes |
| 136 TestWebGraphicsContext3D::getContextAttributes() { | 132 TestWebGraphicsContext3D::getContextAttributes() { |
| 137 return attributes_; | 133 return attributes_; |
| (...skipping 539 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 677 | 673 |
| 678 TestWebGraphicsContext3D::Buffer::Buffer() : target(0), size(0) {} | 674 TestWebGraphicsContext3D::Buffer::Buffer() : target(0), size(0) {} |
| 679 | 675 |
| 680 TestWebGraphicsContext3D::Buffer::~Buffer() {} | 676 TestWebGraphicsContext3D::Buffer::~Buffer() {} |
| 681 | 677 |
| 682 TestWebGraphicsContext3D::Image::Image() {} | 678 TestWebGraphicsContext3D::Image::Image() {} |
| 683 | 679 |
| 684 TestWebGraphicsContext3D::Image::~Image() {} | 680 TestWebGraphicsContext3D::Image::~Image() {} |
| 685 | 681 |
| 686 } // namespace cc | 682 } // namespace cc |
| OLD | NEW |