| 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 <stddef.h> | 7 #include <stddef.h> |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <algorithm> | 10 #include <algorithm> |
| (...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 67 height_(0), | 67 height_(0), |
| 68 scale_factor_(-1.f), | 68 scale_factor_(-1.f), |
| 69 test_support_(NULL), | 69 test_support_(NULL), |
| 70 last_update_type_(NO_UPDATE), | 70 last_update_type_(NO_UPDATE), |
| 71 next_insert_fence_sync_(1), | 71 next_insert_fence_sync_(1), |
| 72 unpack_alignment_(4), | 72 unpack_alignment_(4), |
| 73 bound_buffer_(0), | 73 bound_buffer_(0), |
| 74 weak_ptr_factory_(this) { | 74 weak_ptr_factory_(this) { |
| 75 CreateNamespace(); | 75 CreateNamespace(); |
| 76 set_support_image(true); | 76 set_support_image(true); |
| 77 set_have_extension_egl_image(true); // For stream textures. | |
| 78 } | 77 } |
| 79 | 78 |
| 80 TestWebGraphicsContext3D::~TestWebGraphicsContext3D() { | 79 TestWebGraphicsContext3D::~TestWebGraphicsContext3D() { |
| 81 base::AutoLock lock(g_shared_namespace_lock.Get()); | 80 base::AutoLock lock(g_shared_namespace_lock.Get()); |
| 82 namespace_ = NULL; | 81 namespace_ = NULL; |
| 83 } | 82 } |
| 84 | 83 |
| 85 void TestWebGraphicsContext3D::CreateNamespace() { | 84 void TestWebGraphicsContext3D::CreateNamespace() { |
| 86 base::AutoLock lock(g_shared_namespace_lock.Get()); | 85 base::AutoLock lock(g_shared_namespace_lock.Get()); |
| 87 if (shared_namespace_) { | 86 if (shared_namespace_) { |
| (...skipping 737 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 825 | 824 |
| 826 TestWebGraphicsContext3D::Buffer::Buffer() : target(0), size(0) {} | 825 TestWebGraphicsContext3D::Buffer::Buffer() : target(0), size(0) {} |
| 827 | 826 |
| 828 TestWebGraphicsContext3D::Buffer::~Buffer() {} | 827 TestWebGraphicsContext3D::Buffer::~Buffer() {} |
| 829 | 828 |
| 830 TestWebGraphicsContext3D::Image::Image() {} | 829 TestWebGraphicsContext3D::Image::Image() {} |
| 831 | 830 |
| 832 TestWebGraphicsContext3D::Image::~Image() {} | 831 TestWebGraphicsContext3D::Image::~Image() {} |
| 833 | 832 |
| 834 } // namespace cc | 833 } // namespace cc |
| OLD | NEW |