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

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

Issue 519020: Moved logging for NaCl environment from gpu/command_buffer/common/logging.h t... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 10 years, 12 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
« no previous file with comments | « gpu/command_buffer/common/cmd_buffer_common.h ('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
(Empty)
1 // Copyright (c) 2009 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 // This file abstracts differences in logging between NaCl and host
6 // environment.
7
8 #ifndef GPU_COMMAND_BUFFER_COMMON_LOGGING_H_
9 #define GPU_COMMAND_BUFFER_COMMON_LOGGING_H_
10
11 #ifndef __native_client__
12 #include "base/logging.h"
13 #else
14 #include <sstream>
15
16 // TODO: implement logging through nacl's debug service runtime if
17 // available.
18 #define CHECK(X) do {} while (0)
19 #define CHECK_EQ(X, Y) do {} while (0)
20 #define CHECK_NE(X, Y) do {} while (0)
21 #define CHECK_GT(X, Y) do {} while (0)
22 #define CHECK_GE(X, Y) do {} while (0)
23 #define CHECK_LT(X, Y) do {} while (0)
24 #define CHECK_LE(X, Y) do {} while (0)
25
26 #define DCHECK(X) do {} while (0)
27 #define DCHECK_EQ(X, Y) do {} while (0)
28 #define DCHECK_NE(X, Y) do {} while (0)
29 #define DCHECK_GT(X, Y) do {} while (0)
30 #define DCHECK_GE(X, Y) do {} while (0)
31 #define DCHECK_LT(X, Y) do {} while (0)
32 #define DCHECK_LE(X, Y) do {} while (0)
33
34 #define LOG(LEVEL) if (0) std::ostringstream()
35 #define DLOG(LEVEL) if (0) std::ostringstream()
36
37 #endif
38
39 #endif // GPU_COMMAND_BUFFER_COMMON_LOGGING_H_
OLDNEW
« no previous file with comments | « gpu/command_buffer/common/cmd_buffer_common.h ('k') | gpu/command_buffer/common/resource.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698