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

Side by Side Diff: content/browser/android/in_process/synchronous_compositor_output_surface.h

Issue 143023005: Support multiple service instances with GLInProcessContext (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 10 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 | Annotate | Revision Log
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 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 CONTENT_BROWSER_ANDROID_IN_PROCESS_SYNCHRONOUS_COMPOSITOR_OUTPUT_SURFACE _H_ 5 #ifndef CONTENT_BROWSER_ANDROID_IN_PROCESS_SYNCHRONOUS_COMPOSITOR_OUTPUT_SURFACE _H_
6 #define CONTENT_BROWSER_ANDROID_IN_PROCESS_SYNCHRONOUS_COMPOSITOR_OUTPUT_SURFACE _H_ 6 #define CONTENT_BROWSER_ANDROID_IN_PROCESS_SYNCHRONOUS_COMPOSITOR_OUTPUT_SURFACE _H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/compiler_specific.h" 9 #include "base/compiler_specific.h"
10 #include "base/memory/ref_counted.h" 10 #include "base/memory/ref_counted.h"
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
57 57
58 // OutputSurface. 58 // OutputSurface.
59 virtual bool ForcedDrawToSoftwareDevice() const OVERRIDE; 59 virtual bool ForcedDrawToSoftwareDevice() const OVERRIDE;
60 virtual bool BindToClient(cc::OutputSurfaceClient* surface_client) OVERRIDE; 60 virtual bool BindToClient(cc::OutputSurfaceClient* surface_client) OVERRIDE;
61 virtual void Reshape(const gfx::Size& size, float scale_factor) OVERRIDE; 61 virtual void Reshape(const gfx::Size& size, float scale_factor) OVERRIDE;
62 virtual void SetNeedsBeginImplFrame(bool enable) OVERRIDE; 62 virtual void SetNeedsBeginImplFrame(bool enable) OVERRIDE;
63 virtual void SwapBuffers(cc::CompositorFrame* frame) OVERRIDE; 63 virtual void SwapBuffers(cc::CompositorFrame* frame) OVERRIDE;
64 64
65 // Partial SynchronousCompositor API implementation. 65 // Partial SynchronousCompositor API implementation.
66 bool InitializeHwDraw( 66 bool InitializeHwDraw(
67 scoped_refptr<gfx::GLSurface> surface, 67 scoped_refptr<cc::ContextProvider> onscreen_context_provider,
68 scoped_refptr<cc::ContextProvider> offscreen_context_provider); 68 scoped_refptr<cc::ContextProvider> offscreen_context_provider);
69 void ReleaseHwDraw(); 69 void ReleaseHwDraw();
70 bool DemandDrawHw(gfx::Size surface_size, 70 bool DemandDrawHw(gfx::Size surface_size,
71 const gfx::Transform& transform, 71 const gfx::Transform& transform,
72 gfx::Rect viewport, 72 gfx::Rect viewport,
73 gfx::Rect clip, 73 gfx::Rect clip,
74 bool stencil_enabled); 74 bool stencil_enabled);
75 bool DemandDrawSw(SkCanvas* canvas); 75 bool DemandDrawSw(SkCanvas* canvas);
76 void SetMemoryPolicy(const SynchronousCompositorMemoryPolicy& policy); 76 void SetMemoryPolicy(const SynchronousCompositorMemoryPolicy& policy);
77 77
(...skipping 26 matching lines...) Expand all
104 cc::ManagedMemoryPolicy memory_policy_; 104 cc::ManagedMemoryPolicy memory_policy_;
105 105
106 cc::OutputSurfaceClient* output_surface_client_; 106 cc::OutputSurfaceClient* output_surface_client_;
107 107
108 DISALLOW_COPY_AND_ASSIGN(SynchronousCompositorOutputSurface); 108 DISALLOW_COPY_AND_ASSIGN(SynchronousCompositorOutputSurface);
109 }; 109 };
110 110
111 } // namespace content 111 } // namespace content
112 112
113 #endif // CONTENT_BROWSER_ANDROID_IN_PROCESS_SYNCHRONOUS_COMPOSITOR_OUTPUT_SURF ACE_H_ 113 #endif // CONTENT_BROWSER_ANDROID_IN_PROCESS_SYNCHRONOUS_COMPOSITOR_OUTPUT_SURF ACE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698