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 CONTENT_RENDERER_PEPPER_PEPPER_GRAPHICS_2D_HOST_H_ | 5 #ifndef CONTENT_RENDERER_PEPPER_PEPPER_GRAPHICS_2D_HOST_H_ |
6 #define CONTENT_RENDERER_PEPPER_PEPPER_GRAPHICS_2D_HOST_H_ | 6 #define CONTENT_RENDERER_PEPPER_PEPPER_GRAPHICS_2D_HOST_H_ |
7 | 7 |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include <vector> | 10 #include <vector> |
(...skipping 184 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
195 | 195 |
196 // Set to the scale between what the plugin considers to be one pixel and one | 196 // Set to the scale between what the plugin considers to be one pixel and one |
197 // DIP | 197 // DIP |
198 float scale_; | 198 float scale_; |
199 | 199 |
200 ppapi::host::ReplyMessageContext flush_reply_context_; | 200 ppapi::host::ReplyMessageContext flush_reply_context_; |
201 | 201 |
202 bool is_running_in_process_; | 202 bool is_running_in_process_; |
203 | 203 |
204 bool texture_mailbox_modified_; | 204 bool texture_mailbox_modified_; |
205 bool is_using_texture_layer_; | |
206 | 205 |
207 // This is a bitmap that was recently released by the compositor and may be | 206 // This is a bitmap that was recently released by the compositor and may be |
208 // used to transfer bytes to the compositor again. | 207 // used to transfer bytes to the compositor again. |
209 std::unique_ptr<cc::SharedBitmap> cached_bitmap_; | 208 std::unique_ptr<cc::SharedBitmap> cached_bitmap_; |
210 gfx::Size cached_bitmap_size_; | 209 gfx::Size cached_bitmap_size_; |
211 | 210 |
212 friend class PepperGraphics2DHostTest; | 211 friend class PepperGraphics2DHostTest; |
213 DISALLOW_COPY_AND_ASSIGN(PepperGraphics2DHost); | 212 DISALLOW_COPY_AND_ASSIGN(PepperGraphics2DHost); |
214 }; | 213 }; |
215 | 214 |
216 } // namespace content | 215 } // namespace content |
217 | 216 |
218 #endif // CONTENT_RENDERER_PEPPER_PEPPER_GRAPHICS_2D_HOST_H_ | 217 #endif // CONTENT_RENDERER_PEPPER_PEPPER_GRAPHICS_2D_HOST_H_ |
OLD | NEW |