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

Unified Diff: mojo/services/public/cpp/surfaces/surfaces_type_converters.h

Issue 393103003: Update Mojo surfaces type converters to use RP for generating DQ and SQS (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@publicDQ
Patch Set: address comments 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: mojo/services/public/cpp/surfaces/surfaces_type_converters.h
diff --git a/mojo/services/public/cpp/surfaces/surfaces_type_converters.h b/mojo/services/public/cpp/surfaces/surfaces_type_converters.h
index 89abd160d5115b572751357247da806df2a23318..f51e825f4200d88b3acc6ba290d96962043ee780 100644
--- a/mojo/services/public/cpp/surfaces/surfaces_type_converters.h
+++ b/mojo/services/public/cpp/surfaces/surfaces_type_converters.h
@@ -49,13 +49,6 @@ class MOJO_SURFACES_EXPORT TypeConverter<surfaces::QuadPtr, cc::DrawQuad> {
static surfaces::QuadPtr ConvertFrom(const cc::DrawQuad& input);
};
-// This can't use the TypeConverter since it has to return a pointer to a type
-// since cc::DrawQuad is polymorphic and needs an additional input. The
-// TypeConverter for surfaces::Pass calls this explicitly.
-MOJO_SURFACES_EXPORT scoped_ptr<cc::DrawQuad> ConvertTo(
- const surfaces::QuadPtr& input,
- cc::SharedQuadState* sqs);
-
template <>
class MOJO_SURFACES_EXPORT
TypeConverter<surfaces::SharedQuadStatePtr, cc::SharedQuadState> {
@@ -64,9 +57,6 @@ TypeConverter<surfaces::SharedQuadStatePtr, cc::SharedQuadState> {
const cc::SharedQuadState& input);
};
-MOJO_SURFACES_EXPORT scoped_ptr<cc::SharedQuadState> ConvertTo(
- const surfaces::SharedQuadStatePtr& input);
-
template <>
class MOJO_SURFACES_EXPORT TypeConverter<surfaces::PassPtr, cc::RenderPass> {
public:

Powered by Google App Engine
This is Rietveld 408576698