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

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

Issue 465040: Added CommandBufferClient, CommandBufferStub and some IPC messages.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 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
« no previous file with comments | « gpu/command_buffer/common/gles2_cmd_utils.cc ('k') | gpu/command_buffer/common/resource.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright 2009, Google Inc. 2 * Copyright 2009, Google Inc.
3 * All rights reserved. 3 * All rights reserved.
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are 6 * modification, are permitted provided that the following conditions are
7 * met: 7 * met:
8 * 8 *
9 * * Redistributions of source code must retain the above copyright 9 * * Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer. 10 * notice, this list of conditions and the following disclaimer.
(...skipping 15 matching lines...) Expand all
26 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 26 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
27 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 27 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
28 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 28 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
29 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 29 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
30 */ 30 */
31 31
32 32
33 // This file abstracts differences in logging between NaCl and host 33 // This file abstracts differences in logging between NaCl and host
34 // environment. 34 // environment.
35 35
36 #ifndef GPU_COMMAND_BUFFER_COMMON_CROSS_LOGGING_H_ 36 #ifndef GPU_COMMAND_BUFFER_COMMON_LOGGING_H_
37 #define GPU_COMMAND_BUFFER_COMMON_CROSS_LOGGING_H_ 37 #define GPU_COMMAND_BUFFER_COMMON_LOGGING_H_
38 38
39 #ifndef __native_client__ 39 #ifndef __native_client__
40 #include "base/logging.h" 40 #include "base/logging.h"
41 #else 41 #else
42 #include <sstream> 42 #include <sstream>
43 43
44 // TODO: implement logging through nacl's debug service runtime if 44 // TODO: implement logging through nacl's debug service runtime if
45 // available. 45 // available.
46 #define CHECK(X) do {} while (0) 46 #define CHECK(X) do {} while (0)
47 #define CHECK_EQ(X, Y) do {} while (0) 47 #define CHECK_EQ(X, Y) do {} while (0)
48 #define CHECK_NE(X, Y) do {} while (0) 48 #define CHECK_NE(X, Y) do {} while (0)
49 #define CHECK_GT(X, Y) do {} while (0) 49 #define CHECK_GT(X, Y) do {} while (0)
50 #define CHECK_GE(X, Y) do {} while (0) 50 #define CHECK_GE(X, Y) do {} while (0)
51 #define CHECK_LT(X, Y) do {} while (0) 51 #define CHECK_LT(X, Y) do {} while (0)
52 #define CHECK_LE(X, Y) do {} while (0) 52 #define CHECK_LE(X, Y) do {} while (0)
53 53
54 #define DCHECK(X) do {} while (0) 54 #define DCHECK(X) do {} while (0)
55 #define DCHECK_EQ(X, Y) do {} while (0) 55 #define DCHECK_EQ(X, Y) do {} while (0)
56 #define DCHECK_NE(X, Y) do {} while (0) 56 #define DCHECK_NE(X, Y) do {} while (0)
57 #define DCHECK_GT(X, Y) do {} while (0) 57 #define DCHECK_GT(X, Y) do {} while (0)
58 #define DCHECK_GE(X, Y) do {} while (0) 58 #define DCHECK_GE(X, Y) do {} while (0)
59 #define DCHECK_LT(X, Y) do {} while (0) 59 #define DCHECK_LT(X, Y) do {} while (0)
60 #define DCHECK_LE(X, Y) do {} while (0) 60 #define DCHECK_LE(X, Y) do {} while (0)
61 61
62 #define LOG(LEVEL) if (0) std::ostringstream() 62 #define LOG(LEVEL) if (0) std::ostringstream()
63 #define DLOG(LEVEL) if (0) std::ostringstream() 63 #define DLOG(LEVEL) if (0) std::ostringstream()
64 64
65 #endif 65 #endif
66 66
67 #endif // GPU_COMMAND_BUFFER_COMMON_CROSS_LOGGING_H_ 67 #endif // GPU_COMMAND_BUFFER_COMMON_LOGGING_H_
OLDNEW
« no previous file with comments | « gpu/command_buffer/common/gles2_cmd_utils.cc ('k') | gpu/command_buffer/common/resource.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698