Chromium Code Reviews

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

Issue 12212007: cc: Route offscreen context creation for compositor to the browser. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Remove the GrContextProvider::ScopedContexts guard classes Created 7 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff | | Annotate | Revision Log
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef WEBKIT_GPU_GRCONTEXT_FOR_WEBGRAPHICSCONTEXT3D_H_
6 #define WEBKIT_GPU_GRCONTEXT_FOR_WEBGRAPHICSCONTEXT3D_H_
7
8 #include "skia/ext/refptr.h"
9 #include "webkit/gpu/webkit_gpu_export.h"
10
11 class GrContext;
12 namespace WebKit { class WebGraphicsContext3D; }
13
14 namespace webkit {
15 namespace gpu {
16
17 // This class binds an offscreen GrContext to an offscreen context3d.
piman 2013/02/13 19:13:31 nit: it'd be useful to remind the user that the co
danakj 2013/02/13 20:47:10 Done.
18 class WEBKIT_GPU_EXPORT GrContextForWebGraphicsContext3D {
19 public:
20 explicit GrContextForWebGraphicsContext3D(
21 WebKit::WebGraphicsContext3D* context3d);
22 virtual ~GrContextForWebGraphicsContext3D();
23
24 GrContext* gr_context() { return gr_context_.get(); }
25
26 void SetMemoryLimit(bool nonzero_allocation);
27
28 private:
29 skia::RefPtr<class GrContext> gr_context_;
30 };
31
32 } // namespace gpu
33 } // namespace webkit
34
35 #endif // WEBKIT_GPU_GRCONTEXT_FOR_WEBGRAPHICSCONTEXT3D_H_
OLDNEW

Powered by Google App Engine