diff options
author | tsepez <tsepez@chromium.org> | 2016-09-02 17:34:21 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-09-02 17:34:21 -0700 |
commit | d21f22e2c07d61bf15ee3af91869901adb6f0cde (patch) | |
tree | 5277acb7de48541f5a39f57f3017a69b3ecfcec3 /core/fxcrt | |
parent | 6296f2d501e2749d98e890ed722f923ee584c9ca (diff) | |
download | pdfium-d21f22e2c07d61bf15ee3af91869901adb6f0cde.tar.xz |
Make CPDF_ClipPath have a CPDF_ClipPathData rather than inheriting.
Make Data private to the ClipPath class which manages it
transparently for its callers. This prevents the callers
from having to remember to make a copy before dirtying the
shared data, since the operations that modify state will do
this under the covers for us.
Review-Url: https://codereview.chromium.org/2301263003
Diffstat (limited to 'core/fxcrt')
-rw-r--r-- | core/fxcrt/include/cfx_count_ref.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/core/fxcrt/include/cfx_count_ref.h b/core/fxcrt/include/cfx_count_ref.h index aac18b166a..95132a73ca 100644 --- a/core/fxcrt/include/cfx_count_ref.h +++ b/core/fxcrt/include/cfx_count_ref.h @@ -10,6 +10,8 @@ #include "core/fxcrt/include/cfx_retain_ptr.h" #include "core/fxcrt/include/fx_system.h" +// A shared object with Copy on Write semantics that makes it appear as +// if each one were independent. template <class ObjClass> class CFX_CountRef { public: |