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

Side by Side Diff: skia/ext/skia_utils_win.cc

Issue 115412: Fix Skia includes to use the whole path name. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 7 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 | « skia/ext/skia_utils_win.h ('k') | skia/ext/vector_canvas_unittest.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 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 #include "skia/ext/skia_utils_win.h"
6
5 #include <windows.h> 7 #include <windows.h>
6 8
7 #include "skia/ext/skia_utils_win.h" 9 #include "third_party/skia/include/core/SkRect.h"
8 10 #include "third_party/skia/include/effects/SkGradientShader.h"
9 #include "SkRect.h"
10 #include "SkGradientShader.h"
11 11
12 namespace { 12 namespace {
13 13
14 template <bool> 14 template <bool>
15 struct CompileAssert { 15 struct CompileAssert {
16 }; 16 };
17 17
18 #undef COMPILE_ASSERT 18 #undef COMPILE_ASSERT
19 #define COMPILE_ASSERT(expr, msg) \ 19 #define COMPILE_ASSERT(expr, msg) \
20 typedef CompileAssert<(bool(expr))> msg[bool(expr) ? 1 : -1] 20 typedef CompileAssert<(bool(expr))> msg[bool(expr) ? 1 : -1]
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
61 #ifndef _MSC_VER 61 #ifndef _MSC_VER
62 return RGB(SkColorGetR(color), SkColorGetG(color), SkColorGetB(color)); 62 return RGB(SkColorGetR(color), SkColorGetG(color), SkColorGetB(color));
63 #else 63 #else
64 // 0BGR = ((ARGB -> BGRA) >> 8) 64 // 0BGR = ((ARGB -> BGRA) >> 8)
65 return (_byteswap_ulong(color) >> 8); 65 return (_byteswap_ulong(color) >> 8);
66 #endif 66 #endif
67 } 67 }
68 68
69 } // namespace skia 69 } // namespace skia
70 70
OLDNEW
« no previous file with comments | « skia/ext/skia_utils_win.h ('k') | skia/ext/vector_canvas_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698