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

Side by Side Diff: gpu/command_buffer/service/mailbox_manager_sync.h

Issue 952893003: Update from https://crrev.com/317530 (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Fix gn for nacl Created 5 years, 10 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 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 GPU_COMMAND_BUFFER_SERVICE_MAILBOX_MANAGER_SYNC_H_ 5 #ifndef GPU_COMMAND_BUFFER_SERVICE_MAILBOX_MANAGER_SYNC_H_
6 #define GPU_COMMAND_BUFFER_SERVICE_MAILBOX_MANAGER_SYNC_H_ 6 #define GPU_COMMAND_BUFFER_SERVICE_MAILBOX_MANAGER_SYNC_H_
7 7
8 #include <map> 8 #include <map>
9 #include <utility> 9 #include <utility>
10 10
(...skipping 22 matching lines...) Expand all
33 Texture* ConsumeTexture(const Mailbox& mailbox) override; 33 Texture* ConsumeTexture(const Mailbox& mailbox) override;
34 void ProduceTexture(const Mailbox& mailbox, Texture* texture) override; 34 void ProduceTexture(const Mailbox& mailbox, Texture* texture) override;
35 bool UsesSync() override; 35 bool UsesSync() override;
36 void PushTextureUpdates(uint32 sync_point) override; 36 void PushTextureUpdates(uint32 sync_point) override;
37 void PullTextureUpdates(uint32 sync_point) override; 37 void PullTextureUpdates(uint32 sync_point) override;
38 void TextureDeleted(Texture* texture) override; 38 void TextureDeleted(Texture* texture) override;
39 39
40 private: 40 private:
41 friend class base::RefCounted<MailboxManager>; 41 friend class base::RefCounted<MailboxManager>;
42 42
43 static bool SkipTextureWorkarounds(const Texture* texture);
44
43 ~MailboxManagerSync() override; 45 ~MailboxManagerSync() override;
44 46
45 class TextureGroup : public base::RefCounted<TextureGroup> { 47 class TextureGroup : public base::RefCounted<TextureGroup> {
46 public: 48 public:
47 static TextureGroup* CreateFromTexture(const Mailbox& name, 49 static TextureGroup* CreateFromTexture(const Mailbox& name,
48 MailboxManagerSync* manager, 50 MailboxManagerSync* manager,
49 Texture* texture); 51 Texture* texture);
50 static TextureGroup* FromName(const Mailbox& name); 52 static TextureGroup* FromName(const Mailbox& name);
51 53
52 void AddName(const Mailbox& name); 54 void AddName(const Mailbox& name);
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
90 TextureToGroupMap texture_to_group_; 92 TextureToGroupMap texture_to_group_;
91 93
92 DISALLOW_COPY_AND_ASSIGN(MailboxManagerSync); 94 DISALLOW_COPY_AND_ASSIGN(MailboxManagerSync);
93 }; 95 };
94 96
95 } // namespage gles2 97 } // namespage gles2
96 } // namespace gpu 98 } // namespace gpu
97 99
98 #endif // GPU_COMMAND_BUFFER_SERVICE_MAILBOX_MANAGER_SYNC_H_ 100 #endif // GPU_COMMAND_BUFFER_SERVICE_MAILBOX_MANAGER_SYNC_H_
99 101
OLDNEW
« no previous file with comments | « gpu/command_buffer/service/gpu_tracer_unittest.cc ('k') | gpu/command_buffer/service/mailbox_manager_sync.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698