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

Side by Side Diff: webkit/glue/plugins/pepper_graphics_3d.cc

Issue 4164015: Switch to the new PPAPI repository. This removes the DEPS entry that refers t... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 10 years, 1 month 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
« no previous file with comments | « webkit/glue/plugins/pepper_graphics_3d.h ('k') | webkit/glue/plugins/pepper_graphics_3d_gl.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
OLDNEW
« no previous file with comments | « webkit/glue/plugins/pepper_graphics_3d.h ('k') | webkit/glue/plugins/pepper_graphics_3d_gl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698