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

Unified Diff: content/common/cc_messages.cc

Issue 398533002: Make DrawQuad constructors public, rm DQ::Create() function (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: call RenderPass function in mojo Created 6 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: content/common/cc_messages.cc
diff --git a/content/common/cc_messages.cc b/content/common/cc_messages.cc
index 4750061bbcff65fc531d3d0ad15fd4f40f3dfff2..a3e6152f36785ce8f4b19f68fba2f6f69b5aaf6a 100644
--- a/content/common/cc_messages.cc
+++ b/content/common/cc_messages.cc
@@ -395,7 +395,7 @@ static size_t ReserveSizeForRenderPassWrite(const cc::RenderPass& p) {
template<typename QuadType>
static scoped_ptr<cc::DrawQuad> ReadDrawQuad(const Message* m,
PickleIterator* iter) {
- scoped_ptr<QuadType> quad = QuadType::Create();
+ scoped_ptr<QuadType> quad = make_scoped_ptr(new QuadType);
if (!ReadParam(m, iter, quad.get()))
return scoped_ptr<QuadType>().template PassAs<cc::DrawQuad>();
return quad.template PassAs<cc::DrawQuad>();

Powered by Google App Engine
This is Rietveld 408576698