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

Side by Side Diff: skia/config/SkUserConfig.h

Issue 513793003: Revert of Try backing SkPicture with SkRecord in Chromium. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 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 unified diff | Download patch
« no previous file with comments | « no previous file | no next file » | 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 (C) 2006 The Android Open Source Project 2 * Copyright (C) 2006 The Android Open Source Project
3 * 3 *
4 * Licensed under the Apache License, Version 2.0 (the "License"); 4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License. 5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at 6 * You may obtain a copy of the License at
7 * 7 *
8 * http://www.apache.org/licenses/LICENSE-2.0 8 * http://www.apache.org/licenses/LICENSE-2.0
9 * 9 *
10 * Unless required by applicable law or agreed to in writing, software 10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS, 11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and 13 * See the License for the specific language governing permissions and
14 * limitations under the License. 14 * limitations under the License.
15 */ 15 */
16 16
17 #ifndef SkUserConfig_DEFINED 17 #ifndef SkUserConfig_DEFINED
18 #define SkUserConfig_DEFINED 18 #define SkUserConfig_DEFINED
19 19
20 // Turns SkPicture::clone() into a simple "return SkRef(this);" as a way to
21 // test the threadsafety of SkPicture playback.
22 #define SK_PICTURE_CLONE_NOOP 1
23
20 /* SkTypes.h, the root of the public header files, does the following trick: 24 /* SkTypes.h, the root of the public header files, does the following trick:
21 25
22 #include <SkPreConfig.h> 26 #include <SkPreConfig.h>
23 #include <SkUserConfig.h> 27 #include <SkUserConfig.h>
24 #include <SkPostConfig.h> 28 #include <SkPostConfig.h>
25 29
26 SkPreConfig.h runs first, and it is responsible for initializing certain 30 SkPreConfig.h runs first, and it is responsible for initializing certain
27 skia defines. 31 skia defines.
28 32
29 SkPostConfig.h runs last, and its job is to just check that the final 33 SkPostConfig.h runs last, and its job is to just check that the final
(...skipping 220 matching lines...) Expand 10 before | Expand all | Expand 10 after
250 // Remove these as we update our sites. 254 // Remove these as we update our sites.
251 // 255 //
252 #ifndef SK_SUPPORT_LEGACY_GETTOPDEVICE 256 #ifndef SK_SUPPORT_LEGACY_GETTOPDEVICE
253 #define SK_SUPPORT_LEGACY_GETTOPDEVICE 257 #define SK_SUPPORT_LEGACY_GETTOPDEVICE
254 #endif 258 #endif
255 259
256 #ifndef SK_SUPPORT_LEGACY_GETDEVICE 260 #ifndef SK_SUPPORT_LEGACY_GETDEVICE
257 #define SK_SUPPORT_LEGACY_GETDEVICE 261 #define SK_SUPPORT_LEGACY_GETDEVICE
258 #endif 262 #endif
259 263
260 // Turns SkPicture::clone() into a simple "return SkRef(this);" as a way to
261 // test the threadsafety of SkPicture playback.
262 #define SK_PICTURE_CLONE_NOOP 1
263
264 // Turns on new (nicer, hopefully faster) SkPicture backend.
265 #define SK_PICTURE_USE_SK_RECORD 1
266
267 // ===== End Chrome-specific definitions ===== 264 // ===== End Chrome-specific definitions =====
268 265
269 #endif 266 #endif
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698