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 #ifndef CC_TEST_TEST_WEB_GRAPHICS_CONTEXT_3D_H_ | 5 #ifndef CC_TEST_TEST_WEB_GRAPHICS_CONTEXT_3D_H_ |
6 #define CC_TEST_TEST_WEB_GRAPHICS_CONTEXT_3D_H_ | 6 #define CC_TEST_TEST_WEB_GRAPHICS_CONTEXT_3D_H_ |
7 | 7 |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "base/callback.h" | 10 #include "base/callback.h" |
11 #include "base/compiler_specific.h" | 11 #include "base/compiler_specific.h" |
12 #include "base/containers/hash_tables.h" | 12 #include "base/containers/hash_tables.h" |
13 #include "base/containers/scoped_ptr_hash_map.h" | 13 #include "base/containers/scoped_ptr_hash_map.h" |
14 #include "base/memory/ref_counted.h" | 14 #include "base/memory/ref_counted.h" |
15 #include "base/memory/scoped_ptr.h" | 15 #include "base/memory/scoped_ptr.h" |
16 #include "base/memory/weak_ptr.h" | 16 #include "base/memory/weak_ptr.h" |
17 #include "base/stl_util.h" | 17 #include "base/stl_util.h" |
18 #include "base/synchronization/lock.h" | 18 #include "base/synchronization/lock.h" |
19 #include "cc/output/context_provider.h" | 19 #include "cc/output/context_provider.h" |
20 #include "cc/test/ordered_texture_map.h" | 20 #include "cc/test/ordered_texture_map.h" |
21 #include "cc/test/test_texture.h" | 21 #include "cc/test/test_texture.h" |
22 #include "third_party/khronos/GLES2/gl2.h" | 22 #include "third_party/khronos/GLES2/gl2.h" |
23 #include "ui/gfx/rect.h" | 23 #include "ui/gfx/geometry/rect.h" |
24 | 24 |
25 extern "C" typedef struct _ClientBuffer* ClientBuffer; | 25 extern "C" typedef struct _ClientBuffer* ClientBuffer; |
26 | 26 |
27 namespace cc { | 27 namespace cc { |
28 class TestContextSupport; | 28 class TestContextSupport; |
29 | 29 |
30 class TestWebGraphicsContext3D { | 30 class TestWebGraphicsContext3D { |
31 public: | 31 public: |
32 static scoped_ptr<TestWebGraphicsContext3D> Create(); | 32 static scoped_ptr<TestWebGraphicsContext3D> Create(); |
33 | 33 |
(...skipping 429 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
463 | 463 |
464 scoped_refptr<Namespace> namespace_; | 464 scoped_refptr<Namespace> namespace_; |
465 static Namespace* shared_namespace_; | 465 static Namespace* shared_namespace_; |
466 | 466 |
467 base::WeakPtrFactory<TestWebGraphicsContext3D> weak_ptr_factory_; | 467 base::WeakPtrFactory<TestWebGraphicsContext3D> weak_ptr_factory_; |
468 }; | 468 }; |
469 | 469 |
470 } // namespace cc | 470 } // namespace cc |
471 | 471 |
472 #endif // CC_TEST_TEST_WEB_GRAPHICS_CONTEXT_3D_H_ | 472 #endif // CC_TEST_TEST_WEB_GRAPHICS_CONTEXT_3D_H_ |
OLD | NEW |