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 17 matching lines...) Expand all Loading... |
28 } | 28 } |
29 | 29 |
30 namespace gfx { | 30 namespace gfx { |
31 class Rect; | 31 class Rect; |
32 } | 32 } |
33 | 33 |
34 namespace gpu { | 34 namespace gpu { |
35 struct SyncToken; | 35 struct SyncToken; |
36 } | 36 } |
37 | 37 |
38 namespace ppapi { | |
39 struct ViewData; | |
40 } | |
41 | |
42 namespace content { | 38 namespace content { |
43 | 39 |
44 class PepperPluginInstanceImpl; | 40 class PepperPluginInstanceImpl; |
45 class PPB_ImageData_Impl; | 41 class PPB_ImageData_Impl; |
46 class RendererPpapiHost; | 42 class RendererPpapiHost; |
47 | 43 |
48 class CONTENT_EXPORT PepperGraphics2DHost | 44 class CONTENT_EXPORT PepperGraphics2DHost |
49 : public ppapi::host::ResourceHost, | 45 : public ppapi::host::ResourceHost, |
50 public base::SupportsWeakPtr<PepperGraphics2DHost> { | 46 public base::SupportsWeakPtr<PepperGraphics2DHost> { |
51 public: | 47 public: |
(...skipping 171 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
223 std::unique_ptr<cc::SharedBitmap> cached_bitmap_; | 219 std::unique_ptr<cc::SharedBitmap> cached_bitmap_; |
224 gfx::Size cached_bitmap_size_; | 220 gfx::Size cached_bitmap_size_; |
225 | 221 |
226 friend class PepperGraphics2DHostTest; | 222 friend class PepperGraphics2DHostTest; |
227 DISALLOW_COPY_AND_ASSIGN(PepperGraphics2DHost); | 223 DISALLOW_COPY_AND_ASSIGN(PepperGraphics2DHost); |
228 }; | 224 }; |
229 | 225 |
230 } // namespace content | 226 } // namespace content |
231 | 227 |
232 #endif // CONTENT_RENDERER_PEPPER_PEPPER_GRAPHICS_2D_HOST_H_ | 228 #endif // CONTENT_RENDERER_PEPPER_PEPPER_GRAPHICS_2D_HOST_H_ |
OLD | NEW |