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

Unified Diff: gpu/command_buffer/service/gles2_cmd_decoder_mock.h

Issue 7021014: GLContext no longer holds a pointer to a GLSurface. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 7 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
Index: gpu/command_buffer/service/gles2_cmd_decoder_mock.h
===================================================================
--- gpu/command_buffer/service/gles2_cmd_decoder_mock.h (revision 86168)
+++ gpu/command_buffer/service/gles2_cmd_decoder_mock.h (working copy)
@@ -14,9 +14,13 @@
#include "testing/gmock/include/gmock/gmock.h"
#include "ui/gfx/size.h"
-namespace gpu {
+namespace gfx {
class GLContext;
+class GLSurface;
+}
+namespace gpu {
+
namespace gles2 {
class ContextGroup;
@@ -25,8 +29,9 @@
MockGLES2Decoder();
virtual ~MockGLES2Decoder();
- MOCK_METHOD7(Initialize,
- bool(gfx::GLContext* context,
+ MOCK_METHOD8(Initialize,
+ bool(gfx::GLSurface* surface,
+ gfx::GLContext* context,
const gfx::Size& size,
const DisallowedExtensions& disallowed_extensions,
const char* allowed_extensions,
@@ -39,6 +44,7 @@
MOCK_METHOD0(MakeCurrent, bool());
MOCK_METHOD1(GetServiceIdForTesting, uint32(uint32 client_id));
MOCK_METHOD0(GetGLES2Util, GLES2Util*());
+ MOCK_METHOD0(GetGLSurface, gfx::GLSurface*());
MOCK_METHOD0(GetGLContext, gfx::GLContext*());
MOCK_METHOD0(GetContextGroup, ContextGroup*());
MOCK_METHOD1(SetResizeCallback, void(Callback1<gfx::Size>::Type*));

Powered by Google App Engine
This is Rietveld 408576698