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

Side by Side Diff: cc/debug/fake_web_graphics_context_3d.h

Issue 25455002: Remove WGC3D::width(), height(), reshape() implementations (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 7 years, 2 months 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 | « no previous file | cc/debug/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_DEBUG_FAKE_WEB_GRAPHICS_CONTEXT_3D_H_
6 #define CC_DEBUG_FAKE_WEB_GRAPHICS_CONTEXT_3D_H_ 6 #define CC_DEBUG_FAKE_WEB_GRAPHICS_CONTEXT_3D_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/compiler_specific.h" 10 #include "base/compiler_specific.h"
11 #include "cc/base/cc_export.h" 11 #include "cc/base/cc_export.h"
12 #include "third_party/WebKit/public/platform/WebGraphicsContext3D.h" 12 #include "third_party/WebKit/public/platform/WebGraphicsContext3D.h"
13 13
14 namespace cc { 14 namespace cc {
15 15
16 // WebGraphicsContext3D base class for use in unit tests. 16 // WebGraphicsContext3D base class for use in unit tests.
17 // All operations are no-ops (returning 0 if necessary). 17 // All operations are no-ops (returning 0 if necessary).
18 class CC_EXPORT FakeWebGraphicsContext3D 18 class CC_EXPORT FakeWebGraphicsContext3D
19 : public NON_EXPORTED_BASE(WebKit::WebGraphicsContext3D) { 19 : public NON_EXPORTED_BASE(WebKit::WebGraphicsContext3D) {
20 public: 20 public:
21 FakeWebGraphicsContext3D(); 21 FakeWebGraphicsContext3D();
22 virtual ~FakeWebGraphicsContext3D(); 22 virtual ~FakeWebGraphicsContext3D();
23 23
24 virtual bool makeContextCurrent(); 24 virtual bool makeContextCurrent();
25 25
26 virtual int width();
27 virtual int height();
28
29 virtual void reshape(int width, int height);
30
31 virtual bool isGLES2Compliant(); 26 virtual bool isGLES2Compliant();
32 27
33 virtual WebKit::WebGLId getPlatformTextureId(); 28 virtual WebKit::WebGLId getPlatformTextureId();
34 29
35 virtual void prepareTexture() {} 30 virtual void prepareTexture() {}
36 31
37 virtual void postSubBufferCHROMIUM(int x, int y, int width, int height) {} 32 virtual void postSubBufferCHROMIUM(int x, int y, int width, int height) {}
38 33
39 virtual void synthesizeGLError(WebKit::WGC3Denum) {} 34 virtual void synthesizeGLError(WebKit::WGC3Denum) {}
40 35
(...skipping 558 matching lines...) Expand 10 before | Expand all | Expand 10 after
599 WebKit::WGC3Denum access); 594 WebKit::WGC3Denum access);
600 virtual void unmapImageCHROMIUM(WebKit::WGC3Duint image_id) {} 595 virtual void unmapImageCHROMIUM(WebKit::WGC3Duint image_id) {}
601 596
602 private: 597 private:
603 DISALLOW_COPY_AND_ASSIGN(FakeWebGraphicsContext3D); 598 DISALLOW_COPY_AND_ASSIGN(FakeWebGraphicsContext3D);
604 }; 599 };
605 600
606 } // namespace cc 601 } // namespace cc
607 602
608 #endif // CC_DEBUG_FAKE_WEB_GRAPHICS_CONTEXT_3D_H_ 603 #endif // CC_DEBUG_FAKE_WEB_GRAPHICS_CONTEXT_3D_H_
OLDNEW
« no previous file with comments | « no previous file | cc/debug/fake_web_graphics_context_3d.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698