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

Side by Side Diff: third_party/WebKit/Source/platform/fonts/shaping/ShapeCache.h

Issue 2466383004: blink: Cleanup class forward declarations (Closed)
Patch Set: Created 4 years, 1 month 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2012 Apple Inc. All rights reserved. 2 * Copyright (C) 2012 Apple Inc. All rights reserved.
3 * Copyright (C) 2015 Google Inc. All rights reserved. 3 * Copyright (C) 2015 Google Inc. All rights reserved.
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions 6 * modification, are permitted provided that the following conditions
7 * are met: 7 * are met:
8 * 1. Redistributions of source code must retain the above copyright 8 * 1. Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * 2. Redistributions in binary form must reproduce the above copyright 10 * 2. Redistributions in binary form must reproduce the above copyright
(...skipping 21 matching lines...) Expand all
32 #include "wtf/Forward.h" 32 #include "wtf/Forward.h"
33 #include "wtf/HashFunctions.h" 33 #include "wtf/HashFunctions.h"
34 #include "wtf/HashSet.h" 34 #include "wtf/HashSet.h"
35 #include "wtf/HashTableDeletedValueType.h" 35 #include "wtf/HashTableDeletedValueType.h"
36 #include "wtf/StringHasher.h" 36 #include "wtf/StringHasher.h"
37 #include "wtf/WeakPtr.h" 37 #include "wtf/WeakPtr.h"
38 38
39 namespace blink { 39 namespace blink {
40 40
41 class Font; 41 class Font;
42 class GlyphBuffer;
43 class SimpleFontData;
44 42
45 struct ShapeCacheEntry { 43 struct ShapeCacheEntry {
46 DISALLOW_NEW_EXCEPT_PLACEMENT_NEW(); 44 DISALLOW_NEW_EXCEPT_PLACEMENT_NEW();
47 ShapeCacheEntry() { m_shapeResult = nullptr; } 45 ShapeCacheEntry() { m_shapeResult = nullptr; }
48 RefPtr<const ShapeResult> m_shapeResult; 46 RefPtr<const ShapeResult> m_shapeResult;
49 }; 47 };
50 48
51 class ShapeCache { 49 class ShapeCache {
52 USING_FAST_MALLOC(ShapeCache); 50 USING_FAST_MALLOC(ShapeCache);
53 WTF_MAKE_NONCOPYABLE(ShapeCache); 51 WTF_MAKE_NONCOPYABLE(ShapeCache);
(...skipping 197 matching lines...) Expand 10 before | Expand all | Expand 10 after
251 inline bool operator==(const ShapeCache::SmallStringKey& a, 249 inline bool operator==(const ShapeCache::SmallStringKey& a,
252 const ShapeCache::SmallStringKey& b) { 250 const ShapeCache::SmallStringKey& b) {
253 if (a.length() != b.length() || a.direction() != b.direction()) 251 if (a.length() != b.length() || a.direction() != b.direction())
254 return false; 252 return false;
255 return WTF::equal(a.characters(), b.characters(), a.length()); 253 return WTF::equal(a.characters(), b.characters(), a.length());
256 } 254 }
257 255
258 } // namespace blink 256 } // namespace blink
259 257
260 #endif // ShapeCache_h 258 #endif // ShapeCache_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698