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

Side by Side Diff: third_party/WebKit/Source/platform/text/TextRun.h

Issue 2707083002: Remove the text blob cache (Closed)
Patch Set: Created 3 years, 10 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 | « third_party/WebKit/Source/platform/fonts/TextBlob.h ('k') | 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) 2000 Lars Knoll (knoll@kde.org) 2 * Copyright (C) 2000 Lars Knoll (knoll@kde.org)
3 * (C) 2000 Antti Koivisto (koivisto@kde.org) 3 * (C) 2000 Antti Koivisto (koivisto@kde.org)
4 * (C) 2000 Dirk Mueller (mueller@kde.org) 4 * (C) 2000 Dirk Mueller (mueller@kde.org)
5 * Copyright (C) 2003, 2006, 2007, 2011 Apple Inc. All rights reserved. 5 * Copyright (C) 2003, 2006, 2007, 2011 Apple Inc. All rights reserved.
6 * 6 *
7 * This library is free software; you can redistribute it and/or 7 * This library is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU Library General Public 8 * modify it under the terms of the GNU Library General Public
9 * License as published by the Free Software Foundation; either 9 * License as published by the Free Software Foundation; either
10 * version 2 of the License, or (at your option) any later version. 10 * version 2 of the License, or (at your option) any later version.
(...skipping 19 matching lines...) Expand all
30 #include "platform/heap/Heap.h" 30 #include "platform/heap/Heap.h"
31 #include "platform/text/TabSize.h" 31 #include "platform/text/TabSize.h"
32 #include "platform/text/TextDirection.h" 32 #include "platform/text/TextDirection.h"
33 #include "wtf/Allocator.h" 33 #include "wtf/Allocator.h"
34 #include "wtf/text/StringView.h" 34 #include "wtf/text/StringView.h"
35 #include "wtf/text/WTFString.h" 35 #include "wtf/text/WTFString.h"
36 36
37 #include <SkRefCnt.h> 37 #include <SkRefCnt.h>
38 #include <unicode/utf16.h> 38 #include <unicode/utf16.h>
39 39
40 class SkTextBlob;
41
42 namespace blink { 40 namespace blink {
43 41
44 enum TextJustify { 42 enum TextJustify {
45 TextJustifyAuto = 0x0, 43 TextJustifyAuto = 0x0,
46 TextJustifyNone = 0x1, 44 TextJustifyNone = 0x1,
47 TextJustifyInterWord = 0x2, 45 TextJustifyInterWord = 0x2,
48 TextJustifyDistribute = 0x3 46 TextJustifyDistribute = 0x3
49 }; 47 };
50 48
51 class PLATFORM_EXPORT TextRun final { 49 class PLATFORM_EXPORT TextRun final {
(...skipping 255 matching lines...) Expand 10 before | Expand all | Expand 10 after
307 m_allowTabs = allow; 305 m_allowTabs = allow;
308 m_tabSize = size; 306 m_tabSize = size;
309 } 307 }
310 308
311 // Container for parameters needed to paint TextRun. 309 // Container for parameters needed to paint TextRun.
312 struct TextRunPaintInfo { 310 struct TextRunPaintInfo {
313 STACK_ALLOCATED(); 311 STACK_ALLOCATED();
314 312
315 public: 313 public:
316 explicit TextRunPaintInfo(const TextRun& r) 314 explicit TextRunPaintInfo(const TextRun& r)
317 : run(r), from(0), to(r.length()), cachedTextBlob(nullptr) {} 315 : run(r), from(0), to(r.length()) {}
318 316
319 const TextRun& run; 317 const TextRun& run;
320 unsigned from; 318 unsigned from;
321 unsigned to; 319 unsigned to;
322 FloatRect bounds; 320 FloatRect bounds;
323 sk_sp<SkTextBlob>* cachedTextBlob;
324 }; 321 };
325 322
326 } // namespace blink 323 } // namespace blink
327 #endif 324 #endif
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/platform/fonts/TextBlob.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698