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

Side by Side Diff: gpu/command_buffer/client/gles2_interface_stub.h

Issue 1160863007: DCHECK if shader compilation fails that it's due to context loss. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: glhelperlost: gles2interface? Created 5 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 unified diff | Download patch
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_CLIENT_GLES2_INTERFACE_STUB_H_ 5 #ifndef GPU_COMMAND_BUFFER_CLIENT_GLES2_INTERFACE_STUB_H_
6 #define GPU_COMMAND_BUFFER_CLIENT_GLES2_INTERFACE_STUB_H_ 6 #define GPU_COMMAND_BUFFER_CLIENT_GLES2_INTERFACE_STUB_H_
7 7
8 #include "gpu/command_buffer/client/gles2_interface.h" 8 #include "gpu/command_buffer/client/gles2_interface.h"
9 9
10 namespace gpu { 10 namespace gpu {
11 namespace gles2 { 11 namespace gles2 {
12 12
13 // This class a stub to help with mocks for the GLES2Interface class. 13 // This class a stub to help with mocks for the GLES2Interface class.
14 class GLES2InterfaceStub : public GLES2Interface { 14 class GLES2InterfaceStub : public GLES2Interface {
15 public: 15 public:
16 GLES2InterfaceStub(); 16 GLES2InterfaceStub();
17 ~GLES2InterfaceStub() override; 17 ~GLES2InterfaceStub() override;
18 18
19 // Include the auto-generated part of this class. We split this because 19 // Include the auto-generated part of this class. We split this because
20 // it means we can easily edit the non-auto generated parts right here in 20 // it means we can easily edit the non-auto generated parts right here in
21 // this file instead of having to edit some template or the code generator. 21 // this file instead of having to edit some template or the code generator.
22 #include "gpu/command_buffer/client/gles2_interface_stub_autogen.h" 22 #include "gpu/command_buffer/client/gles2_interface_stub_autogen.h"
23
24 GLboolean IsContextLost() override;
23 }; 25 };
24 26
25 } // namespace gles2 27 } // namespace gles2
26 } // namespace gpu 28 } // namespace gpu
27 29
28 #endif // GPU_COMMAND_BUFFER_CLIENT_GLES2_INTERFACE_STUB_H_ 30 #endif // GPU_COMMAND_BUFFER_CLIENT_GLES2_INTERFACE_STUB_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698