Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(208)

Side by Side Diff: cc/test/test_web_graphics_context_3d.h

Issue 50303007: Move test-only stuff from cc/debug/ to cc/test (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fold cc_test_utils into cc_test_support to fix windows link Created 7 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « cc/test/test_texture.cc ('k') | cc/test/test_web_graphics_context_3d.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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_DEBUG_TEST_WEB_GRAPHICS_CONTEXT_3D_H_ 5 #ifndef CC_TEST_TEST_WEB_GRAPHICS_CONTEXT_3D_H_
6 #define CC_DEBUG_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/compiler_specific.h" 10 #include "base/compiler_specific.h"
11 #include "base/containers/hash_tables.h" 11 #include "base/containers/hash_tables.h"
12 #include "base/containers/scoped_ptr_hash_map.h" 12 #include "base/containers/scoped_ptr_hash_map.h"
13 #include "base/memory/ref_counted.h" 13 #include "base/memory/ref_counted.h"
14 #include "base/memory/scoped_ptr.h" 14 #include "base/memory/scoped_ptr.h"
15 #include "base/memory/weak_ptr.h" 15 #include "base/memory/weak_ptr.h"
16 #include "base/stl_util.h" 16 #include "base/stl_util.h"
17 #include "base/synchronization/lock.h" 17 #include "base/synchronization/lock.h"
18 #include "cc/base/cc_export.h"
19 #include "cc/debug/fake_web_graphics_context_3d.h"
20 #include "cc/debug/ordered_texture_map.h"
21 #include "cc/debug/test_texture.h"
22 #include "cc/output/context_provider.h" 18 #include "cc/output/context_provider.h"
19 #include "cc/test/fake_web_graphics_context_3d.h"
20 #include "cc/test/ordered_texture_map.h"
21 #include "cc/test/test_texture.h"
23 #include "third_party/khronos/GLES2/gl2.h" 22 #include "third_party/khronos/GLES2/gl2.h"
24 23
25 namespace cc { 24 namespace cc {
26 class TestContextSupport; 25 class TestContextSupport;
27 26
28 class CC_EXPORT TestWebGraphicsContext3D : public FakeWebGraphicsContext3D { 27 class TestWebGraphicsContext3D : public FakeWebGraphicsContext3D {
29 public: 28 public:
30 static scoped_ptr<TestWebGraphicsContext3D> Create(); 29 static scoped_ptr<TestWebGraphicsContext3D> Create();
31 30
32 virtual ~TestWebGraphicsContext3D(); 31 virtual ~TestWebGraphicsContext3D();
33 32
34 virtual bool makeContextCurrent(); 33 virtual bool makeContextCurrent();
35 34
36 virtual void reshapeWithScaleFactor( 35 virtual void reshapeWithScaleFactor(
37 int width, int height, float scale_factor); 36 int width, int height, float scale_factor);
38 37
(...skipping 274 matching lines...) Expand 10 before | Expand all | Expand 10 after
313 TextureTargets texture_targets_; 312 TextureTargets texture_targets_;
314 313
315 scoped_refptr<Namespace> namespace_; 314 scoped_refptr<Namespace> namespace_;
316 static Namespace* shared_namespace_; 315 static Namespace* shared_namespace_;
317 316
318 base::WeakPtrFactory<TestWebGraphicsContext3D> weak_ptr_factory_; 317 base::WeakPtrFactory<TestWebGraphicsContext3D> weak_ptr_factory_;
319 }; 318 };
320 319
321 } // namespace cc 320 } // namespace cc
322 321
323 #endif // CC_DEBUG_TEST_WEB_GRAPHICS_CONTEXT_3D_H_ 322 #endif // CC_TEST_TEST_WEB_GRAPHICS_CONTEXT_3D_H_
OLDNEW
« no previous file with comments | « cc/test/test_texture.cc ('k') | cc/test/test_web_graphics_context_3d.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698