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

Unified Diff: mojo/gles2/command_buffer_client_impl.h

Issue 1181013010: Support impl-side painting in Mandoline. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix unittest and android gn build 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 side-by-side diff with in-line comments
Download patch
Index: mojo/gles2/command_buffer_client_impl.h
diff --git a/mojo/gles2/command_buffer_client_impl.h b/mojo/gles2/command_buffer_client_impl.h
index 16eb7b84bbea907af8a6849ed69231e86a83eb65..74e6db74a7f34cf7c434f6a2778ead23b9c57ad0 100644
--- a/mojo/gles2/command_buffer_client_impl.h
+++ b/mojo/gles2/command_buffer_client_impl.h
@@ -6,7 +6,8 @@
#define MOJO_GLES2_COMMAND_BUFFER_CLIENT_IMPL_H_
#include <map>
-
+
+#include "base/atomic_sequence_num.h"
#include "base/macros.h"
#include "base/memory/scoped_ptr.h"
#include "components/view_manager/public/interfaces/command_buffer.mojom.h"
@@ -102,6 +103,9 @@ class CommandBufferClientImpl : public mojo::CommandBufferLostContextObserver,
int32_t last_put_offset_;
int32_t next_transfer_buffer_id_;
+ // Image IDs are allocated in sequence.
+ base::AtomicSequenceNumber next_image_id_;
piman 2015/06/15 18:14:33 nit: shouldn't need to be atomic, this class shoul
jam 2015/06/15 22:06:02 Done.
+
const MojoAsyncWaiter* async_waiter_;
};

Powered by Google App Engine
This is Rietveld 408576698