Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright 2015 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 SKY_SHELL_GPU_GANESH_CONTEXT_H_ | |
| 6 #define SKY_SHELL_GPU_GANESH_CONTEXT_H_ | |
| 7 | |
| 8 #include "base/basictypes.h" | |
| 9 #include "base/memory/ref_counted.h" | |
| 10 #include "skia/ext/refptr.h" | |
| 11 #include "third_party/skia/include/gpu/GrContext.h" | |
| 12 #include "ui/gl/gl_context.h" | |
| 13 | |
| 14 namespace sky { | |
| 15 namespace shell { | |
| 16 | |
| 17 class GaneshContext { | |
| 18 public: | |
| 19 explicit GaneshContext(scoped_refptr<gfx::GLContext> gl_context); | |
| 20 ~GaneshContext(); | |
| 21 | |
| 22 GrContext* gr() const { return gr_context_.get(); } | |
|
eseidel
2015/02/01 08:31:34
i wouldn't know what this is reading it.
abarth-chromium
2015/02/01 08:34:17
GrContext is the top-level context object for Gane
| |
| 23 | |
| 24 private: | |
| 25 scoped_refptr<gfx::GLContext> gl_context_; | |
| 26 skia::RefPtr<GrContext> gr_context_; | |
| 27 | |
| 28 DISALLOW_COPY_AND_ASSIGN(GaneshContext); | |
| 29 }; | |
| 30 | |
| 31 } // namespace shell | |
| 32 } // namespace sky | |
| 33 | |
| 34 #endif // SKY_SHELL_GPU_GANESH_CONTEXT_H_ | |
| OLD | NEW |