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

Side by Side Diff: gpu/command_buffer/common/command_buffer.h

Issue 8917027: Add IPC to allow gpu process to send message for console back to renderer (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: mock fix Created 9 years 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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_COMMON_COMMAND_BUFFER_H_ 5 #ifndef GPU_COMMAND_BUFFER_COMMON_COMMAND_BUFFER_H_
6 #define GPU_COMMAND_BUFFER_COMMON_COMMAND_BUFFER_H_ 6 #define GPU_COMMAND_BUFFER_COMMON_COMMAND_BUFFER_H_
7 7
8 #include "../common/buffer.h" 8 #include "../common/buffer.h"
9 #include "../common/constants.h" 9 #include "../common/constants.h"
10 10
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
53 53
54 // Lost context detail information. 54 // Lost context detail information.
55 error::ContextLostReason context_lost_reason; 55 error::ContextLostReason context_lost_reason;
56 56
57 // Generation index of this state. The generation index is incremented every 57 // Generation index of this state. The generation index is incremented every
58 // time a new state is retrieved from the command processor, so that 58 // time a new state is retrieved from the command processor, so that
59 // consistency can be kept even if IPC messages are processed out-of-order. 59 // consistency can be kept even if IPC messages are processed out-of-order.
60 uint32 generation; 60 uint32 generation;
61 }; 61 };
62 62
63 struct ConsoleMessage {
64 // An user supplied id.
65 int32 id;
66 // The message.
67 std::string message;
68 };
69
63 CommandBuffer() { 70 CommandBuffer() {
64 } 71 }
65 72
66 virtual ~CommandBuffer() { 73 virtual ~CommandBuffer() {
67 } 74 }
68 75
69 // Initialize the command buffer with the given size. 76 // Initialize the command buffer with the given size.
70 virtual bool Initialize() = 0; 77 virtual bool Initialize() = 0;
71 78
72 // Returns the current status. 79 // Returns the current status.
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
127 // call this first. 134 // call this first.
128 virtual void SetContextLostReason(error::ContextLostReason) = 0; 135 virtual void SetContextLostReason(error::ContextLostReason) = 0;
129 136
130 private: 137 private:
131 DISALLOW_COPY_AND_ASSIGN(CommandBuffer); 138 DISALLOW_COPY_AND_ASSIGN(CommandBuffer);
132 }; 139 };
133 140
134 } // namespace gpu 141 } // namespace gpu
135 142
136 #endif // GPU_COMMAND_BUFFER_COMMON_COMMAND_BUFFER_H_ 143 #endif // GPU_COMMAND_BUFFER_COMMON_COMMAND_BUFFER_H_
OLDNEW
« no previous file with comments | « content/renderer/gpu/command_buffer_proxy.cc ('k') | gpu/command_buffer/service/gles2_cmd_decoder.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698