OLD | NEW |
(Empty) | |
| 1 // Copyright (c) 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 #include "base/memory/scoped_ptr.h" |
| 6 #include "gpu/command_buffer/client/gl_in_process_context.h" |
| 7 #include "skia/ext/refptr.h" |
| 8 #include "third_party/skia/include/core/SkPicture.h" |
| 9 #include "third_party/skia/include/gpu/GrContext.h" |
| 10 |
| 11 namespace skia_runner { |
| 12 |
| 13 class InProcessGraphicsSystem { |
| 14 public: |
| 15 InProcessGraphicsSystem(); |
| 16 ~InProcessGraphicsSystem(); |
| 17 |
| 18 bool IsSuccessfullyInitialized() const; |
| 19 skia::RefPtr<GrContext> GetGrContext() const { return gr_context_; } |
| 20 int GetMaxTextureSize() const; |
| 21 |
| 22 private: |
| 23 scoped_ptr<gpu::GLInProcessContext> CreateInProcessContext() const; |
| 24 |
| 25 scoped_ptr<gpu::GLInProcessContext> in_process_context_; |
| 26 skia::RefPtr<GrContext> gr_context_; |
| 27 }; |
| 28 |
| 29 } // namespace skia_runner |
OLD | NEW |