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

Side by Side Diff: ui/compositor/test_web_graphics_context_3d.h

Issue 10689108: Aura: Have ui::Layer implement WebKit::WebExternalTextureLayerClient (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Disable the test compositor instead. Created 8 years, 5 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
« ui/compositor/compositor.cc ('K') | « ui/compositor/layer_unittest.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 UI_COMPOSITOR_TEST_WEB_GRAPHICS_CONTEXT_3D_H_ 5 #ifndef UI_COMPOSITOR_TEST_WEB_GRAPHICS_CONTEXT_3D_H_
6 #define UI_COMPOSITOR_TEST_WEB_GRAPHICS_CONTEXT_3D_H_ 6 #define UI_COMPOSITOR_TEST_WEB_GRAPHICS_CONTEXT_3D_H_
7 7
8 #include "base/logging.h" 8 #include "base/logging.h"
9 #include "base/memory/ref_counted.h" 9 #include "base/memory/ref_counted.h"
10 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebGraphicsC ontext3D.h" 10 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebGraphicsC ontext3D.h"
11 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebString.h" 11 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebString.h"
12 #include "ui/compositor/compositor_export.h"
12 #include "ui/gl/gl_bindings.h" 13 #include "ui/gl/gl_bindings.h"
13 14
14 namespace gfx { 15 namespace gfx {
15 class GLContext; 16 class GLContext;
16 class GLSurface; 17 class GLSurface;
17 } 18 }
18 19
19 namespace ui { 20 namespace ui {
20 21
21 // WebGraphicsContext3D that does nothing. Suitable for testing. 22 // WebGraphicsContext3D that does nothing. Suitable for testing.
22 class TestWebGraphicsContext3D : public WebKit::WebGraphicsContext3D { 23 class COMPOSITOR_EXPORT TestWebGraphicsContext3D
24 : public WebKit::WebGraphicsContext3D {
23 public: 25 public:
24 TestWebGraphicsContext3D(); 26 TestWebGraphicsContext3D();
25 virtual ~TestWebGraphicsContext3D(); 27 virtual ~TestWebGraphicsContext3D();
26 28
27 void Initialize(); 29 void Initialize();
28 virtual bool makeContextCurrent(); 30 virtual bool makeContextCurrent();
29 virtual int width(); 31 virtual int width();
30 virtual int height(); 32 virtual int height();
31 virtual void reshape(int width, int height) {} 33 virtual void reshape(int width, int height) {}
32 virtual bool isGLES2Compliant(); 34 virtual bool isGLES2Compliant();
(...skipping 393 matching lines...) Expand 10 before | Expand all | Expand 10 after
426 virtual WebKit::WebGLId createRenderbuffer(); 428 virtual WebKit::WebGLId createRenderbuffer();
427 virtual WebKit::WebGLId createShader(WebKit::WGC3Denum value); 429 virtual WebKit::WebGLId createShader(WebKit::WGC3Denum value);
428 virtual WebKit::WebGLId createTexture(); 430 virtual WebKit::WebGLId createTexture();
429 virtual void deleteBuffer(WebKit::WebGLId) {} 431 virtual void deleteBuffer(WebKit::WebGLId) {}
430 virtual void deleteFramebuffer(WebKit::WebGLId) {} 432 virtual void deleteFramebuffer(WebKit::WebGLId) {}
431 virtual void deleteProgram(WebKit::WebGLId) {} 433 virtual void deleteProgram(WebKit::WebGLId) {}
432 virtual void deleteRenderbuffer(WebKit::WebGLId) {} 434 virtual void deleteRenderbuffer(WebKit::WebGLId) {}
433 virtual void deleteShader(WebKit::WebGLId) {} 435 virtual void deleteShader(WebKit::WebGLId) {}
434 virtual void deleteTexture(WebKit::WebGLId) {} 436 virtual void deleteTexture(WebKit::WebGLId) {}
435 virtual WebKit::WebGLId createQueryEXT(); 437 virtual WebKit::WebGLId createQueryEXT();
436 virtual void deleteQueryEXT(WebKit::WebGLId) {}; 438 virtual void deleteQueryEXT(WebKit::WebGLId) {}
437 virtual WebKit::WGC3Dboolean isQueryEXT(WebKit::WebGLId query); 439 virtual WebKit::WGC3Dboolean isQueryEXT(WebKit::WebGLId query);
438 virtual void beginQueryEXT(WebKit::WGC3Denum, WebKit::WebGLId) {} 440 virtual void beginQueryEXT(WebKit::WGC3Denum, WebKit::WebGLId) {}
439 virtual void endQueryEXT(WebKit::WGC3Denum) {} 441 virtual void endQueryEXT(WebKit::WGC3Denum) {}
440 virtual void getQueryivEXT(WebKit::WGC3Denum, 442 virtual void getQueryivEXT(WebKit::WGC3Denum,
441 WebKit::WGC3Denum, 443 WebKit::WGC3Denum,
442 WebKit::WGC3Dint*) {} 444 WebKit::WGC3Dint*) {}
443 virtual void getQueryObjectuivEXT(WebKit::WebGLId, 445 virtual void getQueryObjectuivEXT(WebKit::WebGLId,
444 WebKit::WGC3Denum, 446 WebKit::WGC3Denum,
445 WebKit::WGC3Duint*) {} 447 WebKit::WGC3Duint*) {}
446 448
447 private: 449 private:
448 scoped_refptr<gfx::GLContext> gl_context_; 450 scoped_refptr<gfx::GLContext> gl_context_;
449 scoped_refptr<gfx::GLSurface> gl_surface_; 451 scoped_refptr<gfx::GLSurface> gl_surface_;
450 unsigned next_texture_id_; 452 unsigned next_texture_id_;
451 453
452 DISALLOW_COPY_AND_ASSIGN(TestWebGraphicsContext3D); 454 DISALLOW_COPY_AND_ASSIGN(TestWebGraphicsContext3D);
453 }; 455 };
454 456
455 } // namespace ui 457 } // namespace ui
456 458
457 #endif // UI_COMPOSITOR_TEST_WEB_GRAPHICS_CONTEXT_3D_H_ 459 #endif // UI_COMPOSITOR_TEST_WEB_GRAPHICS_CONTEXT_3D_H_
OLDNEW
« ui/compositor/compositor.cc ('K') | « ui/compositor/layer_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698