Home | History | Annotate | Download | only in common
      1 // Copyright 2013 The Chromium Authors. All rights reserved.
      2 // Use of this source code is governed by a BSD-style license that can be
      3 // found in the LICENSE file.
      4 
      5 #ifndef GPU_COMMAND_BUFFER_MAILBOX_H_
      6 #define GPU_COMMAND_BUFFER_MAILBOX_H_
      7 
      8 #include <string.h>
      9 
     10 #include "gpu/command_buffer/common/types.h"
     11 #include "gpu/gpu_export.h"
     12 
     13 namespace gpu {
     14 
     15 struct GPU_EXPORT Mailbox {
     16   Mailbox();
     17   bool IsZero() const;
     18   void SetZero();
     19   void SetName(const int8* name);
     20   int8 name[64];
     21   bool operator<(const Mailbox& other) const {
     22     return memcmp(this, &other, sizeof other) < 0;
     23   }
     24 };
     25 
     26 }  // namespace gpu
     27 
     28 #endif  // GPU_COMMAND_BUFFER_MAILBOX_H_
     29 
     30