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

Side by Side Diff: mojo/gles2/command_buffer_client_impl.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: . 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
« no previous file with comments | « gpu/gles2_conform_support/egl/display.cc ('k') | mojo/gles2/command_buffer_client_impl.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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 MOJO_GLES2_COMMAND_BUFFER_CLIENT_IMPL_H_ 5 #ifndef MOJO_GLES2_COMMAND_BUFFER_CLIENT_IMPL_H_
6 #define MOJO_GLES2_COMMAND_BUFFER_CLIENT_IMPL_H_ 6 #define MOJO_GLES2_COMMAND_BUFFER_CLIENT_IMPL_H_
7 7
8 #include <map> 8 #include <map>
9 9
10 #include "base/macros.h" 10 #include "base/macros.h"
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
65 unsigned usage) override; 65 unsigned usage) override;
66 uint32 InsertSyncPoint() override; 66 uint32 InsertSyncPoint() override;
67 uint32 InsertFutureSyncPoint() override; 67 uint32 InsertFutureSyncPoint() override;
68 void RetireSyncPoint(uint32 sync_point) override; 68 void RetireSyncPoint(uint32 sync_point) override;
69 void SignalSyncPoint(uint32 sync_point, 69 void SignalSyncPoint(uint32 sync_point,
70 const base::Closure& callback) override; 70 const base::Closure& callback) override;
71 void SignalQuery(uint32 query, const base::Closure& callback) override; 71 void SignalQuery(uint32 query, const base::Closure& callback) override;
72 void SetSurfaceVisible(bool visible) override; 72 void SetSurfaceVisible(bool visible) override;
73 uint32 CreateStreamTexture(uint32 texture_id) override; 73 uint32 CreateStreamTexture(uint32 texture_id) override;
74 void SetLock(base::Lock*) override; 74 void SetLock(base::Lock*) override;
75 bool IsGpuChannelLost() override;
75 76
76 private: 77 private:
77 class SyncClientImpl; 78 class SyncClientImpl;
78 class SyncPointClientImpl; 79 class SyncPointClientImpl;
79 80
80 // mojo::CommandBufferLostContextObserver implementation: 81 // mojo::CommandBufferLostContextObserver implementation:
81 void DidLoseContext(int32_t lost_reason) override; 82 void DidLoseContext(int32_t lost_reason) override;
82 83
83 // mojo::ErrorHandler implementation: 84 // mojo::ErrorHandler implementation:
84 void OnConnectionError() override; 85 void OnConnectionError() override;
(...skipping 15 matching lines...) Expand all
100 gpu::CommandBufferSharedState* shared_state_; 101 gpu::CommandBufferSharedState* shared_state_;
101 int32_t last_put_offset_; 102 int32_t last_put_offset_;
102 int32_t next_transfer_buffer_id_; 103 int32_t next_transfer_buffer_id_;
103 104
104 const MojoAsyncWaiter* async_waiter_; 105 const MojoAsyncWaiter* async_waiter_;
105 }; 106 };
106 107
107 } // gles2 108 } // gles2
108 109
109 #endif // MOJO_GLES2_COMMAND_BUFFER_CLIENT_IMPL_H_ 110 #endif // MOJO_GLES2_COMMAND_BUFFER_CLIENT_IMPL_H_
OLDNEW
« no previous file with comments | « gpu/gles2_conform_support/egl/display.cc ('k') | mojo/gles2/command_buffer_client_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698