Remove PPBFlash_DrawGlyphs_Params.
Leftover Flash bits not used anywhere. Bug: 1064652 Change-Id: Id43542dcf7683b781fd366c14026ada996dac223 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3501241 Reviewed-by: Tom Sepez <tsepez@chromium.org> Reviewed-by: Derek Schuff <dschuff@chromium.org> Commit-Queue: Lei Zhang <thestig@chromium.org> Cr-Commit-Position: refs/heads/main@{#977781}
This commit is contained in:

committed by
Chromium LUCI CQ

parent
326a999cde
commit
6adf4dcd9c
ppapi/proxy
tools/ipc_fuzzer/fuzzer
@@ -321,61 +321,6 @@ void ParamTraits<ppapi::proxy::PPBURLLoader_UpdateProgress_Params>::Log(
|
||||
}
|
||||
|
||||
#if !BUILDFLAG(IS_NACL) && !defined(NACL_WIN64)
|
||||
// PPBFlash_DrawGlyphs_Params --------------------------------------------------
|
||||
// static
|
||||
void ParamTraits<ppapi::proxy::PPBFlash_DrawGlyphs_Params>::Write(
|
||||
base::Pickle* m,
|
||||
const param_type& p) {
|
||||
WriteParam(m, p.instance);
|
||||
WriteParam(m, p.image_data);
|
||||
WriteParam(m, p.font_desc);
|
||||
WriteParam(m, p.color);
|
||||
WriteParam(m, p.position);
|
||||
WriteParam(m, p.clip);
|
||||
WriteParam(m, p.transformation[0][0]);
|
||||
WriteParam(m, p.transformation[0][1]);
|
||||
WriteParam(m, p.transformation[0][2]);
|
||||
WriteParam(m, p.transformation[1][0]);
|
||||
WriteParam(m, p.transformation[1][1]);
|
||||
WriteParam(m, p.transformation[1][2]);
|
||||
WriteParam(m, p.transformation[2][0]);
|
||||
WriteParam(m, p.transformation[2][1]);
|
||||
WriteParam(m, p.transformation[2][2]);
|
||||
WriteParam(m, p.allow_subpixel_aa);
|
||||
WriteParam(m, p.glyph_indices);
|
||||
WriteParam(m, p.glyph_advances);
|
||||
}
|
||||
|
||||
// static
|
||||
bool ParamTraits<ppapi::proxy::PPBFlash_DrawGlyphs_Params>::Read(
|
||||
const base::Pickle* m,
|
||||
base::PickleIterator* iter,
|
||||
param_type* r) {
|
||||
return ReadParam(m, iter, &r->instance) &&
|
||||
ReadParam(m, iter, &r->image_data) &&
|
||||
ReadParam(m, iter, &r->font_desc) && ReadParam(m, iter, &r->color) &&
|
||||
ReadParam(m, iter, &r->position) && ReadParam(m, iter, &r->clip) &&
|
||||
ReadParam(m, iter, &r->transformation[0][0]) &&
|
||||
ReadParam(m, iter, &r->transformation[0][1]) &&
|
||||
ReadParam(m, iter, &r->transformation[0][2]) &&
|
||||
ReadParam(m, iter, &r->transformation[1][0]) &&
|
||||
ReadParam(m, iter, &r->transformation[1][1]) &&
|
||||
ReadParam(m, iter, &r->transformation[1][2]) &&
|
||||
ReadParam(m, iter, &r->transformation[2][0]) &&
|
||||
ReadParam(m, iter, &r->transformation[2][1]) &&
|
||||
ReadParam(m, iter, &r->transformation[2][2]) &&
|
||||
ReadParam(m, iter, &r->allow_subpixel_aa) &&
|
||||
ReadParam(m, iter, &r->glyph_indices) &&
|
||||
ReadParam(m, iter, &r->glyph_advances) &&
|
||||
r->glyph_indices.size() == r->glyph_advances.size();
|
||||
}
|
||||
|
||||
// static
|
||||
void ParamTraits<ppapi::proxy::PPBFlash_DrawGlyphs_Params>::Log(
|
||||
const param_type& p,
|
||||
std::string* l) {
|
||||
}
|
||||
|
||||
// SerializedDirEntry ----------------------------------------------------------
|
||||
|
||||
// static
|
||||
|
@@ -30,7 +30,6 @@ class PPB_X509Certificate_Fields;
|
||||
|
||||
namespace proxy {
|
||||
|
||||
struct PPBFlash_DrawGlyphs_Params;
|
||||
struct PPBURLLoader_UpdateProgress_Params;
|
||||
struct SerializedDirEntry;
|
||||
struct SerializedFontDescription;
|
||||
@@ -62,17 +61,6 @@ struct PPAPI_PROXY_EXPORT ParamTraits<PP_NetAddress_Private> {
|
||||
static void Log(const param_type& p, std::string* l);
|
||||
};
|
||||
|
||||
template<>
|
||||
struct PPAPI_PROXY_EXPORT ParamTraits<
|
||||
ppapi::proxy::PPBFlash_DrawGlyphs_Params> {
|
||||
typedef ppapi::proxy::PPBFlash_DrawGlyphs_Params param_type;
|
||||
static void Write(base::Pickle* m, const param_type& p);
|
||||
static bool Read(const base::Pickle* m,
|
||||
base::PickleIterator* iter,
|
||||
param_type* r);
|
||||
static void Log(const param_type& p, std::string* l);
|
||||
};
|
||||
|
||||
template<>
|
||||
struct PPAPI_PROXY_EXPORT ParamTraits<
|
||||
ppapi::proxy::PPBURLLoader_UpdateProgress_Params> {
|
||||
|
@@ -61,20 +61,5 @@ SerializedNetworkInfo::SerializedNetworkInfo()
|
||||
|
||||
SerializedNetworkInfo::~SerializedNetworkInfo() {}
|
||||
|
||||
PPBFlash_DrawGlyphs_Params::PPBFlash_DrawGlyphs_Params()
|
||||
: instance(0),
|
||||
font_desc(),
|
||||
color(0) {
|
||||
clip.point.x = 0;
|
||||
clip.point.y = 0;
|
||||
clip.size.height = 0;
|
||||
clip.size.width = 0;
|
||||
position.x = 0;
|
||||
position.y = 0;
|
||||
allow_subpixel_aa = PP_FALSE;
|
||||
}
|
||||
|
||||
PPBFlash_DrawGlyphs_Params::~PPBFlash_DrawGlyphs_Params() {}
|
||||
|
||||
} // namespace proxy
|
||||
} // namespace ppapi
|
||||
|
@@ -66,22 +66,6 @@ struct SerializedDirEntry {
|
||||
bool is_dir;
|
||||
};
|
||||
|
||||
struct PPAPI_PROXY_EXPORT PPBFlash_DrawGlyphs_Params {
|
||||
PPBFlash_DrawGlyphs_Params();
|
||||
~PPBFlash_DrawGlyphs_Params();
|
||||
|
||||
PP_Instance instance;
|
||||
ppapi::HostResource image_data;
|
||||
SerializedFontDescription font_desc;
|
||||
uint32_t color;
|
||||
PP_Point position;
|
||||
PP_Rect clip;
|
||||
float transformation[3][3];
|
||||
PP_Bool allow_subpixel_aa;
|
||||
std::vector<uint16_t> glyph_indices;
|
||||
std::vector<PP_Point> glyph_advances;
|
||||
};
|
||||
|
||||
struct PPBURLLoader_UpdateProgress_Params {
|
||||
PP_Instance instance;
|
||||
ppapi::HostResource resource;
|
||||
|
Reference in New Issue
Block a user