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_PLATFORM_CONTEXT_3D_IMPL_H_ | 5 #ifndef CONTENT_RENDERER_PEPPER_PEPPER_PLATFORM_CONTEXT_3D_IMPL_H_ |
6 #define CONTENT_RENDERER_PEPPER_PEPPER_PLATFORM_CONTEXT_3D_IMPL_H_ | 6 #define CONTENT_RENDERER_PEPPER_PEPPER_PLATFORM_CONTEXT_3D_IMPL_H_ |
7 | 7 |
8 #include "base/callback.h" | 8 #include "base/callback.h" |
9 #include "base/compiler_specific.h" | 9 #include "base/compiler_specific.h" |
10 #include "base/memory/ref_counted.h" | 10 #include "base/memory/ref_counted.h" |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
44 bool SetParentAndCreateBackingTextureIfNeeded(); | 44 bool SetParentAndCreateBackingTextureIfNeeded(); |
45 void DestroyParentContextProviderAndBackingTexture(); | 45 void DestroyParentContextProviderAndBackingTexture(); |
46 | 46 |
47 private: | 47 private: |
48 bool InitRaw(); | 48 bool InitRaw(); |
49 void OnContextLost(); | 49 void OnContextLost(); |
50 void OnConsoleMessage(const std::string& msg, int id); | 50 void OnConsoleMessage(const std::string& msg, int id); |
51 | 51 |
52 scoped_refptr<ContextProviderCommandBuffer> parent_context_provider_; | 52 scoped_refptr<ContextProviderCommandBuffer> parent_context_provider_; |
53 scoped_refptr<GpuChannelHost> channel_; | 53 scoped_refptr<GpuChannelHost> channel_; |
| 54 gpu::Mailbox mailbox_; |
54 unsigned int parent_texture_id_; | 55 unsigned int parent_texture_id_; |
55 bool has_alpha_; | 56 bool has_alpha_; |
56 CommandBufferProxyImpl* command_buffer_; | 57 CommandBufferProxyImpl* command_buffer_; |
57 base::Closure context_lost_callback_; | 58 base::Closure context_lost_callback_; |
58 ConsoleMessageCallback console_message_callback_; | 59 ConsoleMessageCallback console_message_callback_; |
59 base::WeakPtrFactory<PlatformContext3DImpl> weak_ptr_factory_; | 60 base::WeakPtrFactory<PlatformContext3DImpl> weak_ptr_factory_; |
60 }; | 61 }; |
61 | 62 |
62 } // namespace content | 63 } // namespace content |
63 | 64 |
64 #endif // ENABLE_GPU | 65 #endif // ENABLE_GPU |
65 | 66 |
66 #endif // CONTENT_RENDERER_PEPPER_PEPPER_PLATFORM_CONTEXT_3D_IMPL_H_ | 67 #endif // CONTENT_RENDERER_PEPPER_PEPPER_PLATFORM_CONTEXT_3D_IMPL_H_ |
OLD | NEW |