Chromium Code Reviews| Index: content/renderer/pepper/pepper_graphics_2d_host.h |
| diff --git a/content/renderer/pepper/pepper_graphics_2d_host.h b/content/renderer/pepper/pepper_graphics_2d_host.h |
| index 32b59ab10cf50b6b9d0e1c85f1dd413b3144e103..fa53add19dfa4e3ecff6666701082246bda39671 100644 |
| --- a/content/renderer/pepper/pepper_graphics_2d_host.h |
| +++ b/content/renderer/pepper/pepper_graphics_2d_host.h |
| @@ -94,6 +94,10 @@ class CONTENT_EXPORT PepperGraphics2DHost |
| void ClearCache(); |
| + void set_viewport_to_dip_scale(float viewport_to_dip_scale) { |
|
bbudge
2016/05/11 17:42:19
DCHECK viewport_to_dip_scale?
oshima
2016/05/11 18:18:15
Added DCHECK_LT(0, viewport_to_dip_scale);
|
| + viewport_to_dip_scale_ = viewport_to_dip_scale; |
| + } |
| + |
| private: |
| PepperGraphics2DHost(RendererPpapiHost* host, |
| PP_Instance instance, |
| @@ -203,6 +207,9 @@ class CONTENT_EXPORT PepperGraphics2DHost |
| // DIP |
| float scale_; |
| + // The scale between the viewport and dip. |
| + float viewport_to_dip_scale_ = 1.0f; |
| + |
| ppapi::host::ReplyMessageContext flush_reply_context_; |
| bool is_running_in_process_; |