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 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
64 height_(0), | 64 height_(0), |
65 scale_factor_(-1.f), | 65 scale_factor_(-1.f), |
66 test_support_(NULL), | 66 test_support_(NULL), |
67 last_update_type_(NO_UPDATE), | 67 last_update_type_(NO_UPDATE), |
68 next_insert_sync_point_(1), | 68 next_insert_sync_point_(1), |
69 last_waited_sync_point_(0), | 69 last_waited_sync_point_(0), |
70 unpack_alignment_(4), | 70 unpack_alignment_(4), |
71 bound_buffer_(0), | 71 bound_buffer_(0), |
72 weak_ptr_factory_(this) { | 72 weak_ptr_factory_(this) { |
73 CreateNamespace(); | 73 CreateNamespace(); |
| 74 set_support_image(true); |
74 } | 75 } |
75 | 76 |
76 TestWebGraphicsContext3D::~TestWebGraphicsContext3D() { | 77 TestWebGraphicsContext3D::~TestWebGraphicsContext3D() { |
77 base::AutoLock lock(g_shared_namespace_lock.Get()); | 78 base::AutoLock lock(g_shared_namespace_lock.Get()); |
78 namespace_ = NULL; | 79 namespace_ = NULL; |
79 } | 80 } |
80 | 81 |
81 void TestWebGraphicsContext3D::CreateNamespace() { | 82 void TestWebGraphicsContext3D::CreateNamespace() { |
82 base::AutoLock lock(g_shared_namespace_lock.Get()); | 83 base::AutoLock lock(g_shared_namespace_lock.Get()); |
83 if (shared_namespace_) { | 84 if (shared_namespace_) { |
(...skipping 716 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
800 | 801 |
801 TestWebGraphicsContext3D::Buffer::Buffer() : target(0), size(0) {} | 802 TestWebGraphicsContext3D::Buffer::Buffer() : target(0), size(0) {} |
802 | 803 |
803 TestWebGraphicsContext3D::Buffer::~Buffer() {} | 804 TestWebGraphicsContext3D::Buffer::~Buffer() {} |
804 | 805 |
805 TestWebGraphicsContext3D::Image::Image() {} | 806 TestWebGraphicsContext3D::Image::Image() {} |
806 | 807 |
807 TestWebGraphicsContext3D::Image::~Image() {} | 808 TestWebGraphicsContext3D::Image::~Image() {} |
808 | 809 |
809 } // namespace cc | 810 } // namespace cc |
OLD | NEW |