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

Side by Side Diff: ui/gfx/compositor/test_web_graphics_context_3d.cc

Issue 9226036: Refactor WebGraphicsContext3DInProcess and TestWebGraphicsContext3D (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix windows build Created 8 years, 10 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
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 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 #include "ui/gfx/compositor/test_web_graphics_context_3d.h" 5 #include "ui/gfx/compositor/test_web_graphics_context_3d.h"
6 6
7 #include "ui/gfx/gl/gl_context_stub.h" 7 #include "ui/gfx/gl/gl_context_stub.h"
8 #include "ui/gfx/gl/gl_surface_stub.h" 8 #include "ui/gfx/gl/gl_surface_stub.h"
9 9
10 namespace ui { 10 namespace ui {
11 11
12 TestWebGraphicsContext3D::TestWebGraphicsContext3D() {} 12 TestWebGraphicsContext3D::TestWebGraphicsContext3D() {}
13 TestWebGraphicsContext3D::~TestWebGraphicsContext3D() {} 13 TestWebGraphicsContext3D::~TestWebGraphicsContext3D() {}
14 14
15 bool TestWebGraphicsContext3D::initialize(Attributes attributes, 15 void TestWebGraphicsContext3D::Initialize() {
16 WebKit::WebView* view,
17 bool render_directly_to_web_view) {
18 gl_surface_ = new gfx::GLSurfaceStub; 16 gl_surface_ = new gfx::GLSurfaceStub;
19 gl_context_ = new gfx::GLContextStub; 17 gl_context_ = new gfx::GLContextStub;
20 gl_context_->MakeCurrent(gl_surface_.get()); 18 gl_context_->MakeCurrent(gl_surface_.get());
21 return true;
22 } 19 }
23 20
24 bool TestWebGraphicsContext3D::makeContextCurrent() { 21 bool TestWebGraphicsContext3D::makeContextCurrent() {
25 return true; 22 return true;
26 } 23 }
27 24
28 int TestWebGraphicsContext3D::width() { 25 int TestWebGraphicsContext3D::width() {
29 return 0; 26 return 0;
30 } 27 }
31 28
(...skipping 184 matching lines...) Expand 10 before | Expand all | Expand 10 after
216 WebKit::WebGLId TestWebGraphicsContext3D::createShader( 213 WebKit::WebGLId TestWebGraphicsContext3D::createShader(
217 WebKit::WGC3Denum value) { 214 WebKit::WGC3Denum value) {
218 return 1; 215 return 1;
219 } 216 }
220 217
221 WebKit::WebGLId TestWebGraphicsContext3D::createTexture() { 218 WebKit::WebGLId TestWebGraphicsContext3D::createTexture() {
222 return 1; 219 return 1;
223 } 220 }
224 221
225 } // namespace ui 222 } // namespace ui
OLDNEW
« no previous file with comments | « ui/gfx/compositor/test_web_graphics_context_3d.h ('k') | webkit/gpu/webgraphicscontext3d_in_process_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698