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

Side by Side Diff: gpu/command_buffer/service/gl_surface_mock.h

Issue 1285183008: Ozone integration. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: add missing license header Created 5 years, 4 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 unified diff | Download patch
« no previous file with comments | « device/udev_linux/udev_unittest.cc ('k') | gpu/command_buffer/service/gles2_cmd_decoder.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef GPU_COMMAND_BUFFER_SERVICE_GL_SURFACE_MOCK_H_ 5 #ifndef GPU_COMMAND_BUFFER_SERVICE_GL_SURFACE_MOCK_H_
6 #define GPU_COMMAND_BUFFER_SERVICE_GL_SURFACE_MOCK_H_ 6 #define GPU_COMMAND_BUFFER_SERVICE_GL_SURFACE_MOCK_H_
7 7
8 #include "testing/gmock/include/gmock/gmock.h"
9 #include "ui/gfx/swap_result.h"
8 #include "ui/gl/gl_surface.h" 10 #include "ui/gl/gl_surface.h"
9 #include "testing/gmock/include/gmock/gmock.h"
10 11
11 namespace gpu { 12 namespace gpu {
12 13
13 class GLSurfaceMock : public gfx::GLSurface { 14 class GLSurfaceMock : public gfx::GLSurface {
14 public: 15 public:
15 GLSurfaceMock(); 16 GLSurfaceMock();
16 17
17 MOCK_METHOD0(Initialize, bool()); 18 MOCK_METHOD0(Initialize, bool());
18 MOCK_METHOD0(Destroy, void()); 19 MOCK_METHOD0(Destroy, void());
19 MOCK_METHOD1(Resize, bool(const gfx::Size& size)); 20 MOCK_METHOD1(Resize, bool(const gfx::Size& size));
20 MOCK_METHOD0(IsOffscreen, bool()); 21 MOCK_METHOD0(IsOffscreen, bool());
21 MOCK_METHOD0(SwapBuffers, bool()); 22 MOCK_METHOD0(SwapBuffers, gfx::SwapResult());
22 MOCK_METHOD4(PostSubBuffer, bool(int x, int y, int width, int height)); 23 MOCK_METHOD4(PostSubBuffer, gfx::SwapResult(int x, int y, int width, int heigh t));
23 MOCK_METHOD0(SupportsPostSubBuffer, bool()); 24 MOCK_METHOD0(SupportsPostSubBuffer, bool());
24 MOCK_METHOD0(GetSize, gfx::Size()); 25 MOCK_METHOD0(GetSize, gfx::Size());
25 MOCK_METHOD0(GetHandle, void*()); 26 MOCK_METHOD0(GetHandle, void*());
26 MOCK_METHOD0(GetBackingFrameBufferObject, unsigned int()); 27 MOCK_METHOD0(GetBackingFrameBufferObject, unsigned int());
27 MOCK_METHOD1(OnMakeCurrent, bool(gfx::GLContext* context)); 28 MOCK_METHOD1(OnMakeCurrent, bool(gfx::GLContext* context));
28 MOCK_METHOD1(SetBackbufferAllocation, bool(bool allocated)); 29 MOCK_METHOD1(SetBackbufferAllocation, bool(bool allocated));
29 MOCK_METHOD1(SetFrontbufferAllocation, void(bool allocated)); 30 MOCK_METHOD1(SetFrontbufferAllocation, void(bool allocated));
30 MOCK_METHOD0(GetShareHandle, void*()); 31 MOCK_METHOD0(GetShareHandle, void*());
31 MOCK_METHOD0(GetDisplay, void*()); 32 MOCK_METHOD0(GetDisplay, void*());
32 MOCK_METHOD0(GetConfig, void*()); 33 MOCK_METHOD0(GetConfig, void*());
33 MOCK_METHOD0(GetFormat, unsigned()); 34 MOCK_METHOD0(GetFormat, unsigned());
34 35
35 protected: 36 protected:
36 virtual ~GLSurfaceMock(); 37 virtual ~GLSurfaceMock();
37 38
38 private: 39 private:
39 DISALLOW_COPY_AND_ASSIGN(GLSurfaceMock); 40 DISALLOW_COPY_AND_ASSIGN(GLSurfaceMock);
40 }; 41 };
41 42
42 } // namespace gpu 43 } // namespace gpu
43 44
44 #endif // GPU_COMMAND_BUFFER_SERVICE_GL_SURFACE_MOCK_H_ 45 #endif // GPU_COMMAND_BUFFER_SERVICE_GL_SURFACE_MOCK_H_
OLDNEW
« no previous file with comments | « device/udev_linux/udev_unittest.cc ('k') | gpu/command_buffer/service/gles2_cmd_decoder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698