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

Unified Diff: app/gfx/gl/gl_mock.h

Issue 2134006: Added EGL based GLContext.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 years, 6 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « app/gfx/gl/gl_interface.cc ('k') | app/surface/accelerated_surface_mac.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: app/gfx/gl/gl_mock.h
===================================================================
--- app/gfx/gl/gl_mock.h (revision 46574)
+++ app/gfx/gl/gl_mock.h (working copy)
@@ -1,17 +1,17 @@
-// Copyright (c) 2009 The Chromium Authors. All rights reserved.
+// Copyright (c) 2010 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.
// This file implements mock GL Interface for unit testing. It has to mock
// Desktop GL, not GLES2 as it is used to test the service side code.
-#ifndef GPU_COMMAND_BUFFER_SERVICE_GL_MOCK_H_
-#define GPU_COMMAND_BUFFER_SERVICE_GL_MOCK_H_
+#ifndef APP_GFX_GL_GL_MOCK_H_
+#define APP_GFX_GL_GL_MOCK_H_
-#include "gpu/command_buffer/service/gl_interface.h"
+#include "app/gfx/gl/gl_interface.h"
#include "testing/gmock/include/gmock/gmock.h"
-namespace gles2 {
+namespace gfx {
class MockGLInterface : public GLInterface {
public:
@@ -58,8 +58,10 @@
MOCK_METHOD4(ClearColor, void(
GLclampf red, GLclampf green, GLclampf blue, GLclampf alpha));
- MOCK_METHOD1(ClearDepth, void(GLclampf depth));
+ MOCK_METHOD1(ClearDepth, void(GLclampd depth));
+ MOCK_METHOD1(ClearDepthf, void(GLclampf depth));
+
MOCK_METHOD1(ClearStencil, void(GLint s));
MOCK_METHOD4(ColorMask, void(
@@ -107,8 +109,10 @@
MOCK_METHOD1(DepthMask, void(GLboolean flag));
- MOCK_METHOD2(DepthRange, void(GLclampf zNear, GLclampf zFar));
+ MOCK_METHOD2(DepthRange, void(GLclampd zNear, GLclampd zFar));
+ MOCK_METHOD2(DepthRangef, void(GLclampf zNear, GLclampf zFar));
+
MOCK_METHOD2(DetachShader, void(GLuint program, GLuint shader));
MOCK_METHOD1(Disable, void(GLenum cap));
@@ -381,9 +385,9 @@
GLuint buffer_id, GLsizei count, GLenum type, GLuint offset));
};
-} // namespace gles2
+} // namespace gfx
-#endif // GPU_COMMAND_BUFFER_SERVICE_GL_MOCK_H_
+#endif // APP_GFX_GL_GL_MOCK_H_
« no previous file with comments | « app/gfx/gl/gl_interface.cc ('k') | app/surface/accelerated_surface_mac.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698