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

Side by Side Diff: webkit/gpu/grcontext_for_webgraphicscontext3d.h

Issue 12217099: Implement the Platform::sharedOffscreenGraphicsContext3D method. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: no factory member vars Created 7 years, 9 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
« no previous file with comments | « webkit/gpu/context_provider_in_process.cc ('k') | webkit/gpu/test_context_provider_factory.h » ('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) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 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 WEBKIT_GPU_GRCONTEXT_FOR_WEBGRAPHICSCONTEXT3D_H_ 5 #ifndef WEBKIT_GPU_GRCONTEXT_FOR_WEBGRAPHICSCONTEXT3D_H_
6 #define WEBKIT_GPU_GRCONTEXT_FOR_WEBGRAPHICSCONTEXT3D_H_ 6 #define WEBKIT_GPU_GRCONTEXT_FOR_WEBGRAPHICSCONTEXT3D_H_
7 7
8 #include "base/basictypes.h"
8 #include "skia/ext/refptr.h" 9 #include "skia/ext/refptr.h"
9 #include "webkit/gpu/webkit_gpu_export.h" 10 #include "webkit/gpu/webkit_gpu_export.h"
10 11
11 class GrContext; 12 class GrContext;
12 namespace WebKit { class WebGraphicsContext3D; } 13 namespace WebKit { class WebGraphicsContext3D; }
13 14
14 namespace webkit { 15 namespace webkit {
15 namespace gpu { 16 namespace gpu {
16 17
17 // This class binds an offscreen GrContext to an offscreen context3d. The 18 // This class binds an offscreen GrContext to an offscreen context3d. The
18 // context3d is used by the GrContext so must be valid as long as this class 19 // context3d is used by the GrContext so must be valid as long as this class
19 // is alive. 20 // is alive.
20 class WEBKIT_GPU_EXPORT GrContextForWebGraphicsContext3D { 21 class WEBKIT_GPU_EXPORT GrContextForWebGraphicsContext3D {
21 public: 22 public:
22 explicit GrContextForWebGraphicsContext3D( 23 explicit GrContextForWebGraphicsContext3D(
23 WebKit::WebGraphicsContext3D* context3d); 24 WebKit::WebGraphicsContext3D* context3d);
24 virtual ~GrContextForWebGraphicsContext3D(); 25 virtual ~GrContextForWebGraphicsContext3D();
25 26
26 GrContext* get() { return gr_context_.get(); } 27 GrContext* get() { return gr_context_.get(); }
27 28
28 void SetMemoryLimit(bool nonzero_allocation); 29 void SetMemoryLimit(bool nonzero_allocation);
29 30
30 private: 31 private:
31 skia::RefPtr<class GrContext> gr_context_; 32 skia::RefPtr<class GrContext> gr_context_;
33
34 DISALLOW_COPY_AND_ASSIGN(GrContextForWebGraphicsContext3D);
32 }; 35 };
33 36
34 } // namespace gpu 37 } // namespace gpu
35 } // namespace webkit 38 } // namespace webkit
36 39
37 #endif // WEBKIT_GPU_GRCONTEXT_FOR_WEBGRAPHICSCONTEXT3D_H_ 40 #endif // WEBKIT_GPU_GRCONTEXT_FOR_WEBGRAPHICSCONTEXT3D_H_
OLDNEW
« no previous file with comments | « webkit/gpu/context_provider_in_process.cc ('k') | webkit/gpu/test_context_provider_factory.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698