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

Side by Side Diff: gpu/skia_runner/in_process_graphics_system.h

Issue 1149893010: gpu: play skp files through the command buffer (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: now with proper mac headers Created 5 years, 6 months 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 | « gpu/skia_runner/DEPS ('k') | gpu/skia_runner/in_process_graphics_system.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(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
OLDNEW
« no previous file with comments | « gpu/skia_runner/DEPS ('k') | gpu/skia_runner/in_process_graphics_system.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698