Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef PPAPI_PROXY_GRAPHICS_2D_RESOURCE_H_ | 5 #ifndef PPAPI_PROXY_GRAPHICS_2D_RESOURCE_H_ |
| 6 #define PPAPI_PROXY_GRAPHICS_2D_RESOURCE_H_ | 6 #define PPAPI_PROXY_GRAPHICS_2D_RESOURCE_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
| (...skipping 24 matching lines...) Expand all Loading... | |
| 35 | 35 |
| 36 // PPB_Graphics2D_API overrides. | 36 // PPB_Graphics2D_API overrides. |
| 37 PP_Bool Describe(PP_Size* size, PP_Bool* is_always_opaque) override; | 37 PP_Bool Describe(PP_Size* size, PP_Bool* is_always_opaque) override; |
| 38 void PaintImageData(PP_Resource image_data, | 38 void PaintImageData(PP_Resource image_data, |
| 39 const PP_Point* top_left, | 39 const PP_Point* top_left, |
| 40 const PP_Rect* src_rect) override; | 40 const PP_Rect* src_rect) override; |
| 41 void Scroll(const PP_Rect* clip_rect, const PP_Point* amount) override; | 41 void Scroll(const PP_Rect* clip_rect, const PP_Point* amount) override; |
| 42 void ReplaceContents(PP_Resource image_data) override; | 42 void ReplaceContents(PP_Resource image_data) override; |
| 43 PP_Bool SetScale(float scale) override; | 43 PP_Bool SetScale(float scale) override; |
| 44 float GetScale() override; | 44 float GetScale() override; |
| 45 PP_Bool SetLayerTransform(float scale, | |
| 46 const PP_Point* Origin, | |
|
wjmaclean
2016/04/13 14:47:19
Don't capitalize variable names.
| |
| 47 const PP_Point* Transform) override; | |
| 45 int32_t Flush(scoped_refptr<TrackedCallback> callback) override; | 48 int32_t Flush(scoped_refptr<TrackedCallback> callback) override; |
| 46 bool ReadImageData(PP_Resource image, const PP_Point* top_left) override; | 49 bool ReadImageData(PP_Resource image, const PP_Point* top_left) override; |
| 47 | 50 |
| 48 private: | 51 private: |
| 49 void OnPluginMsgFlushACK(const ResourceMessageReplyParams& params); | 52 void OnPluginMsgFlushACK(const ResourceMessageReplyParams& params); |
| 50 | 53 |
| 51 const PP_Size size_; | 54 const PP_Size size_; |
| 52 const PP_Bool is_always_opaque_; | 55 const PP_Bool is_always_opaque_; |
| 53 float scale_; | 56 float scale_; |
| 54 | 57 |
| 55 scoped_refptr<TrackedCallback> current_flush_callback_; | 58 scoped_refptr<TrackedCallback> current_flush_callback_; |
| 56 | 59 |
| 57 DISALLOW_COPY_AND_ASSIGN(Graphics2DResource); | 60 DISALLOW_COPY_AND_ASSIGN(Graphics2DResource); |
| 58 }; | 61 }; |
| 59 | 62 |
| 60 } // namespace proxy | 63 } // namespace proxy |
| 61 } // namespace ppapi | 64 } // namespace ppapi |
| 62 | 65 |
| 63 #endif // PPAPI_PROXY_GRAPHICS_2D_RESOURCE_H_ | 66 #endif // PPAPI_PROXY_GRAPHICS_2D_RESOURCE_H_ |
| OLD | NEW |