| Index: cc/test/compositor_fake_web_graphics_context_3d.cc
|
| diff --git a/cc/test/compositor_fake_web_graphics_context_3d.cc b/cc/test/compositor_fake_web_graphics_context_3d.cc
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..99d6cdd632159777dc2ee55d55b790d26c482131
|
| --- /dev/null
|
| +++ b/cc/test/compositor_fake_web_graphics_context_3d.cc
|
| @@ -0,0 +1,36 @@
|
| +// Copyright 2011 The Chromium Authors. All rights reserved.
|
| +// Use of this source code is governed by a BSD-style license that can be
|
| +// found in the LICENSE file.
|
| +
|
| +#include "cc/test/compositor_fake_web_graphics_context_3d.h"
|
| +
|
| +namespace cc {
|
| +
|
| +bool CompositorFakeWebGraphicsContext3D::makeContextCurrent() {
|
| + return true;
|
| +}
|
| +
|
| +WebKit::WebGLId CompositorFakeWebGraphicsContext3D::createProgram() {
|
| + return 1;
|
| +}
|
| +
|
| +WebKit::WebGLId CompositorFakeWebGraphicsContext3D::createShader(
|
| + WebKit::WGC3Denum) {
|
| + return 1;
|
| +}
|
| +
|
| +void CompositorFakeWebGraphicsContext3D::getShaderiv(
|
| + WebKit::WebGLId,
|
| + WebKit::WGC3Denum,
|
| + WebKit::WGC3Dint* value) {
|
| + *value = 1;
|
| +}
|
| +
|
| +void CompositorFakeWebGraphicsContext3D::getProgramiv(
|
| + WebKit::WebGLId,
|
| + WebKit::WGC3Denum,
|
| + WebKit::WGC3Dint* value) {
|
| + *value = 1;
|
| +}
|
| +
|
| +} // namespace cc
|
|
|