OLD | NEW |
(Empty) | |
| 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 |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #include "cc/test/compositor_fake_web_graphics_context_3d.h" |
| 6 |
| 7 namespace cc { |
| 8 |
| 9 bool CompositorFakeWebGraphicsContext3D::makeContextCurrent() { |
| 10 return true; |
| 11 } |
| 12 |
| 13 WebKit::WebGLId CompositorFakeWebGraphicsContext3D::createProgram() { |
| 14 return 1; |
| 15 } |
| 16 |
| 17 WebKit::WebGLId CompositorFakeWebGraphicsContext3D::createShader( |
| 18 WebKit::WGC3Denum) { |
| 19 return 1; |
| 20 } |
| 21 |
| 22 void CompositorFakeWebGraphicsContext3D::getShaderiv( |
| 23 WebKit::WebGLId, |
| 24 WebKit::WGC3Denum, |
| 25 WebKit::WGC3Dint* value) { |
| 26 *value = 1; |
| 27 } |
| 28 |
| 29 void CompositorFakeWebGraphicsContext3D::getProgramiv( |
| 30 WebKit::WebGLId, |
| 31 WebKit::WGC3Denum, |
| 32 WebKit::WGC3Dint* value) { |
| 33 *value = 1; |
| 34 } |
| 35 |
| 36 } // namespace cc |
OLD | NEW |