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

Unified Diff: experimental/c_salt/image-inl.h

Issue 10928195: First round of dead file removal (Closed) Base URL: https://github.com/samclegg/nativeclient-sdk.git@master
Patch Set: Created 8 years, 3 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « experimental/c_salt/image.h ('k') | experimental/c_salt/instance.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: experimental/c_salt/image-inl.h
diff --git a/experimental/c_salt/image-inl.h b/experimental/c_salt/image-inl.h
deleted file mode 100644
index d52f3c7e6fd57846ba2f9db0fb2823234254b24a..0000000000000000000000000000000000000000
--- a/experimental/c_salt/image-inl.h
+++ /dev/null
@@ -1,44 +0,0 @@
-// Copyright 2010 The Native Client Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can
-// be found in the LICENSE file.
-
-#ifndef C_SALT_IMAGE_INL_H_
-#define C_SALT_IMAGE_INL_H_
-
-#include <stdint.h>
-
-namespace c_salt {
-#define INLINE_NO_INSTRUMENT \
- __attribute__((no_instrument_function, always_inline))
-
-// build a packed color
-INLINE_NO_INSTRUMENT
- uint32_t MakeARGB(uint8_t r, uint8_t g, uint8_t b, uint8_t a);
-inline uint32_t MakeARGB(uint8_t r, uint8_t g, uint8_t b, uint8_t a) {
- return (((a) << 24) | ((r) << 16) | ((g) << 8) | (b));
-}
-
-// extract R, G, B, A from packed color
-INLINE_NO_INSTRUMENT int ExtractR(uint32_t c);
-inline int ExtractR(uint32_t c) {
- return (c >> 16) & 0xFF;
-}
-
-INLINE_NO_INSTRUMENT int ExtractG(uint32_t c);
-inline int ExtractG(uint32_t c) {
- return (c >> 8) & 0xFF;
-}
-
-INLINE_NO_INSTRUMENT int ExtractB(uint32_t c);
-inline int ExtractB(uint32_t c) {
- return c & 0xFF;
-}
-
-INLINE_NO_INSTRUMENT int ExtractA(uint32_t c);
-inline int ExtractA(uint32_t c) {
- return (c >> 24) & 0xFF;
-}
-#undef INLINE_NO_INSTRUMENT
-} // namespace c_salt
-
-#endif // C_SALT_IMAGE_INL_H_
« no previous file with comments | « experimental/c_salt/image.h ('k') | experimental/c_salt/instance.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698