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

Side by Side Diff: cc/test/fake_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/fake_output_surface.h ('k') | cc/test/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 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_FAKE_WEB_GRAPHICS_CONTEXT_3D_H_ 5 #ifndef CC_TEST_FAKE_WEB_GRAPHICS_CONTEXT_3D_H_
6 #define CC_DEBUG_FAKE_WEB_GRAPHICS_CONTEXT_3D_H_ 6 #define CC_TEST_FAKE_WEB_GRAPHICS_CONTEXT_3D_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/compiler_specific.h"
11 #include "cc/base/cc_export.h"
12 #include "third_party/WebKit/public/platform/WebGraphicsContext3D.h" 10 #include "third_party/WebKit/public/platform/WebGraphicsContext3D.h"
13 11
14 namespace cc { 12 namespace cc {
15 13
16 // WebGraphicsContext3D base class for use in unit tests. 14 // WebGraphicsContext3D base class for use in unit tests.
17 // All operations are no-ops (returning 0 if necessary). 15 // All operations are no-ops (returning 0 if necessary).
18 class CC_EXPORT FakeWebGraphicsContext3D 16 class FakeWebGraphicsContext3D : public WebKit::WebGraphicsContext3D {
19 : public NON_EXPORTED_BASE(WebKit::WebGraphicsContext3D) {
20 public: 17 public:
21 FakeWebGraphicsContext3D(); 18 FakeWebGraphicsContext3D();
22 virtual ~FakeWebGraphicsContext3D(); 19 virtual ~FakeWebGraphicsContext3D();
23 20
24 virtual bool makeContextCurrent(); 21 virtual bool makeContextCurrent();
25 22
26 virtual bool isGLES2Compliant(); 23 virtual bool isGLES2Compliant();
27 24
28 virtual WebKit::WebGLId getPlatformTextureId(); 25 virtual WebKit::WebGLId getPlatformTextureId();
29 26
(...skipping 577 matching lines...) Expand 10 before | Expand all | Expand 10 after
607 WebKit::WGC3Duint image_id, 604 WebKit::WGC3Duint image_id,
608 WebKit::WGC3Denum access); 605 WebKit::WGC3Denum access);
609 virtual void unmapImageCHROMIUM(WebKit::WGC3Duint image_id) {} 606 virtual void unmapImageCHROMIUM(WebKit::WGC3Duint image_id) {}
610 607
611 private: 608 private:
612 DISALLOW_COPY_AND_ASSIGN(FakeWebGraphicsContext3D); 609 DISALLOW_COPY_AND_ASSIGN(FakeWebGraphicsContext3D);
613 }; 610 };
614 611
615 } // namespace cc 612 } // namespace cc
616 613
617 #endif // CC_DEBUG_FAKE_WEB_GRAPHICS_CONTEXT_3D_H_ 614 #endif // CC_TEST_FAKE_WEB_GRAPHICS_CONTEXT_3D_H_
OLDNEW
« no previous file with comments | « cc/test/fake_output_surface.h ('k') | cc/test/fake_web_graphics_context_3d.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698