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

Unified Diff: core/fpdfapi/rendercontext.cpp

Issue 2180443002: Use actual type instead CFX_Deletable (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: style fix Created 4 years, 5 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 side-by-side diff with in-line comments
Download patch
Index: core/fpdfapi/rendercontext.cpp
diff --git a/core/fpdfapi/rendercontext.cpp b/core/fpdfapi/rendercontext.cpp
new file mode 100644
index 0000000000000000000000000000000000000000..54c8c418e3cf25602689fd283fd409417cf2a053
--- /dev/null
+++ b/core/fpdfapi/rendercontext.cpp
@@ -0,0 +1,20 @@
+// Copyright 2016 PDFium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+// Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
+
+#include "core/fpdfapi/include/rendercontext.h"
+
+#include "core/fpdfapi/fpdf_render/include/cpdf_progressiverenderer.h"
Lei Zhang 2016/07/22 22:49:16 Do we need all these includes?
Wei Li 2016/07/23 03:01:13 Yes, since I only use forward declaration in the h
+#include "core/fpdfapi/fpdf_render/include/cpdf_rendercontext.h"
+#include "core/fpdfapi/fpdf_render/include/cpdf_renderoptions.h"
+#include "core/fpdfdoc/cpdf_annotlist.h"
+#include "core/fpdfdoc/include/fpdf_doc.h"
+#include "core/fxge/include/fx_ge.h"
+
+CRenderContext::CRenderContext() {}
+
+CRenderContext::~CRenderContext() {
+ delete m_pOptions->m_pOCContext;
Lei Zhang 2016/07/22 22:49:16 A bit worried here because CRenderContext doesn't
Wei Li 2016/07/23 03:01:13 The use of |m_pOCContext| is a bit messy. Added a
+}

Powered by Google App Engine
This is Rietveld 408576698