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

Side by Side Diff: third_party/WebKit/Source/platform/graphics/test/MockGLES2Interface.h

Issue 1790753002: Expose GLES2Interface to blink, and delete isContextLost() from WGC3D. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: wgc3d: deps-for-tests Created 4 years, 9 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
OLDNEW
(Empty)
1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef MockGLES2Interface_h
6 #define MockGLES2Interface_h
7
8 #include "gpu/command_buffer/client/gles2_interface_stub.h"
9
10 class MockGLES2Interface : public gpu::gles2::GLES2InterfaceStub {
11 public:
12 GLenum GetGraphicsResetStatusKHR() override
13 {
14 return m_contextLost ? GL_INVALID_OPERATION : GL_NO_ERROR;
15 }
16
17 void setIsContextLost(bool lost) { m_contextLost = lost; }
18
19 private:
20 bool m_contextLost = false;
21 };
22
23 #endif // MockGLES2Interface_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698