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

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

Issue 138763009: Fix (or tag) uses of explicit '64' instead of GL_MAILBOX_SIZE_CHROMIUM (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 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 | Annotate | Revision Log
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_SERVICE_MAILBOX_MANAGER_H_ 5 #ifndef GPU_COMMAND_BUFFER_SERVICE_MAILBOX_MANAGER_H_
6 #define GPU_COMMAND_BUFFER_SERVICE_MAILBOX_MANAGER_H_ 6 #define GPU_COMMAND_BUFFER_SERVICE_MAILBOX_MANAGER_H_
7 7
8 #include <functional> 8 #include <functional>
9 #include <map> 9 #include <map>
10 10
11 #include "base/memory/linked_ptr.h" 11 #include "base/memory/linked_ptr.h"
12 #include "base/memory/ref_counted.h" 12 #include "base/memory/ref_counted.h"
13 #include "gpu/command_buffer/common/constants.h" 13 #include "gpu/command_buffer/common/constants.h"
14 #include "gpu/command_buffer/common/mailbox.h" 14 #include "gpu/command_buffer/common/mailbox.h"
15 #include "gpu/gpu_export.h" 15 #include "gpu/gpu_export.h"
16 16
17 // From gl2/gl2ext.h.
18 #ifndef GL_MAILBOX_SIZE_CHROMIUM
19 #define GL_MAILBOX_SIZE_CHROMIUM 64
20 #endif
21
22 typedef signed char GLbyte; 17 typedef signed char GLbyte;
23 18
24 namespace gpu { 19 namespace gpu {
25 namespace gles2 { 20 namespace gles2 {
26 21
27 class Texture; 22 class Texture;
28 class TextureManager; 23 class TextureManager;
29 24
30 // Manages resources scoped beyond the context or context group level. 25 // Manages resources scoped beyond the context or context group level.
31 class GPU_EXPORT MailboxManager : public base::RefCounted<MailboxManager> { 26 class GPU_EXPORT MailboxManager : public base::RefCounted<MailboxManager> {
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
73 MailboxToTextureMap mailbox_to_textures_; 68 MailboxToTextureMap mailbox_to_textures_;
74 TextureToMailboxMap textures_to_mailboxes_; 69 TextureToMailboxMap textures_to_mailboxes_;
75 70
76 DISALLOW_COPY_AND_ASSIGN(MailboxManager); 71 DISALLOW_COPY_AND_ASSIGN(MailboxManager);
77 }; 72 };
78 } // namespage gles2 73 } // namespage gles2
79 } // namespace gpu 74 } // namespace gpu
80 75
81 #endif // GPU_COMMAND_BUFFER_SERVICE_MAILBOX_MANAGER_H_ 76 #endif // GPU_COMMAND_BUFFER_SERVICE_MAILBOX_MANAGER_H_
82 77
OLDNEW
« content/common/cc_messages_unittest.cc ('K') | « gpu/command_buffer/common/mailbox.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698