Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(74)

Side by Side Diff: content/renderer/pepper/pepper_platform_context_3d_impl.h

Issue 15798014: Replace context parenting by sharing through mailboxes (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 7 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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_
OLDNEW
« no previous file with comments | « content/common/gpu/gpu_messages.h ('k') | content/renderer/pepper/pepper_platform_context_3d_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698