summaryrefslogtreecommitdiffstats
path: root/cc/test/compositor_fake_web_graphics_context_3d.cc
blob: 99d6cdd632159777dc2ee55d55b790d26c482131 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
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