Index: content/renderer/pepper/ppb_graphics_3d_impl.h |
diff --git a/content/renderer/pepper/ppb_graphics_3d_impl.h b/content/renderer/pepper/ppb_graphics_3d_impl.h |
index dca5aaa98e7cd820b39c671c7aba6d8064314621..9255e024cb5e864ba3b58bc663b3a92d2e516c6f 100644 |
--- a/content/renderer/pepper/ppb_graphics_3d_impl.h |
+++ b/content/renderer/pepper/ppb_graphics_3d_impl.h |
@@ -75,7 +75,8 @@ |
gpu::CommandBuffer* GetCommandBuffer() override; |
gpu::GpuControl* GetGpuControl() override; |
int32_t DoSwapBuffers(const gpu::SyncToken& sync_token, |
- const gfx::Size& size) override; |
+ int32_t width, |
+ int32_t height) override; |
private: |
explicit PPB_Graphics3D_Impl(PP_Instance instance); |
@@ -115,6 +116,12 @@ |
bool lost_context_ = false; |
#endif |
+ // The width and height of the command buffer back buffer are first sized from |
+ // this process, but then resized by the pepper process. Cache the original |
+ // size. |
+ int32_t original_width_ = 0; |
+ int32_t original_height_ = 0; |
+ |
bool has_alpha_; |
bool use_image_chromium_; |
std::unique_ptr<gpu::CommandBufferProxyImpl> command_buffer_; |