forked from Pissandshittium/pissandshittium
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtext_holder.h
30 lines (23 loc) · 848 Bytes
/
text_holder.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
// Copyright 2019 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef CC_PAINT_TEXT_HOLDER_H_
#define CC_PAINT_TEXT_HOLDER_H_
#include <set>
#include <string>
#include "base/memory/ref_counted.h"
#include "cc/paint/paint_export.h"
namespace cc {
// The base class for embedder (blink) to associate DrawTextBlobOp with a text
// node.
// This class has to be RefCountedThreadSafe because the asscociated
// DrawTextBlobOp could be dereferenced in main, compositor or raster worker
// threads.
class CC_PAINT_EXPORT TextHolder
: public base::RefCountedThreadSafe<TextHolder> {
protected:
friend class base::RefCountedThreadSafe<TextHolder>;
virtual ~TextHolder() = default;
};
} // namespace cc
#endif // CC_PAINT_TEXT_HOLDER_H_