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

Side by Side Diff: experimental/skpdiff/SkCLImageDiffer.h

Issue 19787006: ports for mac, ios, android, linux, windows (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: Created 7 years, 5 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 | « no previous file | experimental/skpdiff/SkDiffContext.cpp » ('j') | experimental/skpdiff/viewer.html » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright 2013 Google Inc. 2 * Copyright 2013 Google Inc.
3 * 3 *
4 * Use of this source code is governed by a BSD-style license that can be 4 * Use of this source code is governed by a BSD-style license that can be
5 * found in the LICENSE file. 5 * found in the LICENSE file.
6 */ 6 */
7 7
8 #ifndef SkCLImageDiffer_DEFINED 8 #ifndef SkCLImageDiffer_DEFINED
9 #define SkCLImageDiffer_DEFINED 9 #define SkCLImageDiffer_DEFINED
10 10
11 #include <CL/cl.h> 11 #if SK_BUILD_FOR_MAC
12 # include <OpenCL/cl.h>
13 #else
14 # include <CL/cl.h>
15 #endif
12 #include "SkTDArray.h" 16 #include "SkTDArray.h"
13 17
14 #include "SkImageDiffer.h" 18 #include "SkImageDiffer.h"
15 19
16 class SkStream; 20 class SkStream;
17 21
18 /** 22 /**
19 * An SkImageDiffer that requires initialization with an OpenCL device and conte xt. 23 * An SkImageDiffer that requires initialization with an OpenCL device and conte xt.
20 */ 24 */
21 class SkCLImageDiffer : public SkImageDiffer { 25 class SkCLImageDiffer : public SkImageDiffer {
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
81 cl_device_id fDevice; 85 cl_device_id fDevice;
82 cl_context fContext; 86 cl_context fContext;
83 cl_command_queue fCommandQueue; 87 cl_command_queue fCommandQueue;
84 88
85 private: 89 private:
86 90
87 typedef SkImageDiffer INHERITED; 91 typedef SkImageDiffer INHERITED;
88 }; 92 };
89 93
90 #endif 94 #endif
OLDNEW
« no previous file with comments | « no previous file | experimental/skpdiff/SkDiffContext.cpp » ('j') | experimental/skpdiff/viewer.html » ('J')

Powered by Google App Engine
This is Rietveld 408576698