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

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

Issue 802113002: Revert "Revert of Extract WebGraphicsContext3DImpl from webkit/common/gpu. (patchset #12 id:220001 … (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: REBASE Created 6 years 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
« no previous file with comments | « webkit/common/gpu/DEPS ('k') | webkit/common/gpu/grcontext_for_webgraphicscontext3d.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) 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_COMMON_GPU_GRCONTEXT_FOR_WEBGRAPHICSCONTEXT3D_H_ 5 #ifndef WEBKIT_COMMON_GPU_GRCONTEXT_FOR_WEBGRAPHICSCONTEXT3D_H_
6 #define WEBKIT_COMMON_GPU_GRCONTEXT_FOR_WEBGRAPHICSCONTEXT3D_H_ 6 #define WEBKIT_COMMON_GPU_GRCONTEXT_FOR_WEBGRAPHICSCONTEXT3D_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "skia/ext/refptr.h" 9 #include "skia/ext/refptr.h"
10 #include "webkit/common/gpu/webkit_gpu_export.h" 10 #include "webkit/common/gpu/webkit_gpu_export.h"
11 11
12 class GrContext; 12 class GrContext;
13 13
14 namespace gpu_blink {
15 class WebGraphicsContext3DImpl;
16 }
17
14 namespace webkit { 18 namespace webkit {
15 namespace gpu { 19 namespace gpu {
16 class WebGraphicsContext3DImpl;
17 20
18 // This class binds an offscreen GrContext to an offscreen context3d. The 21 // This class binds an offscreen GrContext to an offscreen context3d. The
19 // context3d is used by the GrContext so must be valid as long as this class 22 // context3d is used by the GrContext so must be valid as long as this class
20 // is alive. 23 // is alive.
21 class WEBKIT_GPU_EXPORT GrContextForWebGraphicsContext3D { 24 class WEBKIT_GPU_EXPORT GrContextForWebGraphicsContext3D {
22 public: 25 public:
23 explicit GrContextForWebGraphicsContext3D( 26 explicit GrContextForWebGraphicsContext3D(
24 WebGraphicsContext3DImpl* context3d); 27 gpu_blink::WebGraphicsContext3DImpl* context3d);
25 virtual ~GrContextForWebGraphicsContext3D(); 28 virtual ~GrContextForWebGraphicsContext3D();
26 29
27 GrContext* get() { return gr_context_.get(); } 30 GrContext* get() { return gr_context_.get(); }
28 31
29 void OnLostContext(); 32 void OnLostContext();
30 void FreeGpuResources(); 33 void FreeGpuResources();
31 34
32 private: 35 private:
33 skia::RefPtr<class GrContext> gr_context_; 36 skia::RefPtr<class GrContext> gr_context_;
34 37
35 DISALLOW_COPY_AND_ASSIGN(GrContextForWebGraphicsContext3D); 38 DISALLOW_COPY_AND_ASSIGN(GrContextForWebGraphicsContext3D);
36 }; 39 };
37 40
38 } // namespace gpu 41 } // namespace gpu
39 } // namespace webkit 42 } // namespace webkit
40 43
41 #endif // WEBKIT_COMMON_GPU_GRCONTEXT_FOR_WEBGRAPHICSCONTEXT3D_H_ 44 #endif // WEBKIT_COMMON_GPU_GRCONTEXT_FOR_WEBGRAPHICSCONTEXT3D_H_
OLDNEW
« no previous file with comments | « webkit/common/gpu/DEPS ('k') | webkit/common/gpu/grcontext_for_webgraphicscontext3d.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698