Courgette: Skip the relocs that live outside of the image.
[chromium-blink-merge.git] / gpu / skia_runner / in_process_graphics_system.h
bloba2366ccc702658235f99b2587fdbad698eb5b1f1
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.
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"
11 namespace skia_runner {
13 class InProcessGraphicsSystem {
14 public:
15 InProcessGraphicsSystem();
16 ~InProcessGraphicsSystem();
18 bool IsSuccessfullyInitialized() const;
19 skia::RefPtr<GrContext> GetGrContext() const { return gr_context_; }
20 int GetMaxTextureSize() const;
22 private:
23 scoped_ptr<gpu::GLInProcessContext> CreateInProcessContext() const;
25 scoped_ptr<gpu::GLInProcessContext> in_process_context_;
26 skia::RefPtr<GrContext> gr_context_;
29 } // namespace skia_runner