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

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

Issue 11474050: cc: Unify namespaces for all test files (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 8 years 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/cc_test_suite.cc ('k') | cc/test/compositor_fake_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 2011 The Chromium Authors. All rights reserved. 1 // Copyright 2011 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_COMPOSITOR_FAKE_WEB_GRAPHICS_CONTEXT_3D_H_ 5 #ifndef CC_TEST_COMPOSITOR_FAKE_WEB_GRAPHICS_CONTEXT_3D_H_
6 #define CC_TEST_COMPOSITOR_FAKE_WEB_GRAPHICS_CONTEXT_3D_H_ 6 #define CC_TEST_COMPOSITOR_FAKE_WEB_GRAPHICS_CONTEXT_3D_H_
7 7
8 #include "base/memory/scoped_ptr.h" 8 #include "base/memory/scoped_ptr.h"
9 #include "cc/test/fake_web_graphics_context_3d.h" 9 #include "cc/test/fake_web_graphics_context_3d.h"
10 10
11 namespace WebKit { 11 namespace cc {
12 12
13 // Test stub for WebGraphicsContext3D. Returns canned values needed for composit or initialization. 13 // Test stub for WebGraphicsContext3D. Returns canned values needed for composit or initialization.
14 class CompositorFakeWebGraphicsContext3D : public FakeWebGraphicsContext3D { 14 class CompositorFakeWebGraphicsContext3D : public FakeWebGraphicsContext3D {
15 public: 15 public:
16 static scoped_ptr<CompositorFakeWebGraphicsContext3D> create(Attributes attr s) 16 static scoped_ptr<CompositorFakeWebGraphicsContext3D> create(Attributes attr s)
17 { 17 {
18 return make_scoped_ptr(new CompositorFakeWebGraphicsContext3D(attrs)); 18 return make_scoped_ptr(new CompositorFakeWebGraphicsContext3D(attrs));
19 } 19 }
20 20
21 virtual bool makeContextCurrent() { return true; } 21 virtual bool makeContextCurrent();
22 virtual WebGLId createProgram() { return 1; } 22 virtual WebKit::WebGLId createProgram();
23 virtual WebGLId createShader(WGC3Denum) { return 1; } 23 virtual WebKit::WebGLId createShader(WebKit::WGC3Denum);
24 virtual void getShaderiv(WebGLId, WGC3Denum, WGC3Dint* value) { *value = 1; } 24 virtual void getShaderiv(WebKit::WebGLId, WebKit::WGC3Denum, WebKit::WGC3Din t* value);
25 virtual void getProgramiv(WebGLId, WGC3Denum, WGC3Dint* value) { *value = 1; } 25 virtual void getProgramiv(WebKit::WebGLId, WebKit::WGC3Denum, WebKit::WGC3Di nt* value);
26 26
27 protected: 27 protected:
28 explicit CompositorFakeWebGraphicsContext3D(Attributes attrs) 28 explicit CompositorFakeWebGraphicsContext3D(Attributes attrs)
29 { 29 {
30 m_attrs = attrs; 30 m_attrs = attrs;
31 } 31 }
32 }; 32 };
33 33
34 } 34 } // namespace cc
35 35
36 #endif // CC_TEST_COMPOSITOR_FAKE_WEB_GRAPHICS_CONTEXT_3D_H_ 36 #endif // CC_TEST_COMPOSITOR_FAKE_WEB_GRAPHICS_CONTEXT_3D_H_
OLDNEW
« no previous file with comments | « cc/test/cc_test_suite.cc ('k') | cc/test/compositor_fake_web_graphics_context_3d.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698