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

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

Issue 2875703003: Rewrite two more classes to new blink style. (Closed)
Patch Set: . Created 3 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 unified diff | Download patch
« no previous file with comments | « third_party/WebKit/Source/platform/graphics/skia/SkiaUtils.cpp ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 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 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 FakeGLES2Interface_h 5 #ifndef FakeGLES2Interface_h
6 #define FakeGLES2Interface_h 6 #define FakeGLES2Interface_h
7 7
8 #include "gpu/command_buffer/client/gles2_interface_stub.h" 8 #include "gpu/command_buffer/client/gles2_interface_stub.h"
9 9
10 class FakeGLES2Interface : public gpu::gles2::GLES2InterfaceStub { 10 class FakeGLES2Interface : public gpu::gles2::GLES2InterfaceStub {
11 public: 11 public:
12 // GLES2Interface implementation. 12 // GLES2Interface implementation.
13 GLenum GetGraphicsResetStatusKHR() override { 13 GLenum GetGraphicsResetStatusKHR() override {
14 return m_contextLost ? GL_INVALID_OPERATION : GL_NO_ERROR; 14 return context_lost_ ? GL_INVALID_OPERATION : GL_NO_ERROR;
15 } 15 }
16 16
17 // Methods for tests. 17 // Methods for tests.
18 void setIsContextLost(bool lost) { m_contextLost = lost; } 18 void SetIsContextLost(bool lost) { context_lost_ = lost; }
19 19
20 private: 20 private:
21 bool m_contextLost = false; 21 bool context_lost_ = false;
22 }; 22 };
23 23
24 #endif // FakeGLES2Interface_h 24 #endif // FakeGLES2Interface_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/platform/graphics/skia/SkiaUtils.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698