OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 #include "webkit/glue/plugins/pepper_graphics_3d.h" | 5 #include "webkit/glue/plugins/pepper_graphics_3d.h" |
6 | 6 |
7 #include "gpu/command_buffer/common/command_buffer.h" | 7 #include "gpu/command_buffer/common/command_buffer.h" |
8 #include "base/singleton.h" | 8 #include "base/singleton.h" |
9 #include "base/thread_local.h" | 9 #include "base/thread_local.h" |
10 #include "third_party/ppapi/c/dev/ppb_graphics_3d_dev.h" | 10 #include "ppapi/c/dev/ppb_graphics_3d_dev.h" |
11 #include "webkit/glue/plugins/pepper_plugin_instance.h" | 11 #include "webkit/glue/plugins/pepper_plugin_instance.h" |
12 | 12 |
13 namespace pepper { | 13 namespace pepper { |
14 | 14 |
15 namespace { | 15 namespace { |
16 | 16 |
17 struct CurrentContextTag {}; | 17 struct CurrentContextTag {}; |
18 typedef Singleton<base::ThreadLocalPointer<Graphics3D>, | 18 typedef Singleton<base::ThreadLocalPointer<Graphics3D>, |
19 DefaultSingletonTraits<base::ThreadLocalPointer<Graphics3D> >, | 19 DefaultSingletonTraits<base::ThreadLocalPointer<Graphics3D> >, |
20 CurrentContextTag> CurrentContextKey; | 20 CurrentContextTag> CurrentContextKey; |
(...skipping 226 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
247 if (platform_context_.get()) { | 247 if (platform_context_.get()) { |
248 platform_context_->SetNotifyRepaintTask( | 248 platform_context_->SetNotifyRepaintTask( |
249 method_factory3d_.NewRunnableMethod(&Graphics3D::HandleRepaint, | 249 method_factory3d_.NewRunnableMethod(&Graphics3D::HandleRepaint, |
250 instance_id)); | 250 instance_id)); |
251 } | 251 } |
252 } | 252 } |
253 } | 253 } |
254 | 254 |
255 } // namespace pepper | 255 } // namespace pepper |
256 | 256 |
OLD | NEW |