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

Side by Side Diff: mojo/gles2/command_buffer_client_impl.h

Issue 294833002: Mojo: more idiomatic C++ bindings (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: more Created 6 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 | Annotate | Revision Log
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 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
75 OVERRIDE; 75 OVERRIDE;
76 virtual void Echo(const base::Closure& callback) OVERRIDE; 76 virtual void Echo(const base::Closure& callback) OVERRIDE;
77 virtual uint32 CreateStreamTexture(uint32 texture_id) OVERRIDE; 77 virtual uint32 CreateStreamTexture(uint32 texture_id) OVERRIDE;
78 78
79 void RequestAnimationFrames(); 79 void RequestAnimationFrames();
80 void CancelAnimationFrames(); 80 void CancelAnimationFrames();
81 81
82 private: 82 private:
83 // CommandBufferClient implementation: 83 // CommandBufferClient implementation:
84 virtual void DidInitialize(bool success) OVERRIDE; 84 virtual void DidInitialize(bool success) OVERRIDE;
85 virtual void DidMakeProgress(const CommandBufferState& state) OVERRIDE; 85 virtual void DidMakeProgress(CommandBufferStatePtr state) OVERRIDE;
86 virtual void DidDestroy() OVERRIDE; 86 virtual void DidDestroy() OVERRIDE;
87 virtual void LostContext(int32_t lost_reason) OVERRIDE; 87 virtual void LostContext(int32_t lost_reason) OVERRIDE;
88 88
89 // ErrorHandler implementation: 89 // ErrorHandler implementation:
90 virtual void OnConnectionError() OVERRIDE; 90 virtual void OnConnectionError() OVERRIDE;
91 91
92 virtual void DrawAnimationFrame() OVERRIDE; 92 virtual void DrawAnimationFrame() OVERRIDE;
93 93
94 void TryUpdateState(); 94 void TryUpdateState();
95 void MakeProgressAndUpdateState(); 95 void MakeProgressAndUpdateState();
(...skipping 11 matching lines...) Expand all
107 int32 next_transfer_buffer_id_; 107 int32 next_transfer_buffer_id_;
108 108
109 bool initialize_result_; 109 bool initialize_result_;
110 MojoAsyncWaiter* async_waiter_; 110 MojoAsyncWaiter* async_waiter_;
111 }; 111 };
112 112
113 } // gles2 113 } // gles2
114 } // mojo 114 } // mojo
115 115
116 #endif // MOJO_GLES2_COMMAND_BUFFER_CLIENT_IMPL_H_ 116 #endif // MOJO_GLES2_COMMAND_BUFFER_CLIENT_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698