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

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

Issue 251343002: Remove offscreen compositor contexts. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rm-offscreencontext: include Created 6 years, 8 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 SetNeedsBeginFrame(bool enable) OVERRIDE; 62 virtual void SetNeedsBeginFrame(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<cc::ContextProvider> onscreen_context_provider, 67 scoped_refptr<cc::ContextProvider> onscreen_context_provider);
68 scoped_refptr<cc::ContextProvider> offscreen_context_provider);
69 void ReleaseHwDraw(); 68 void ReleaseHwDraw();
70 bool DemandDrawHw(gfx::Size surface_size, 69 bool DemandDrawHw(gfx::Size surface_size,
71 const gfx::Transform& transform, 70 const gfx::Transform& transform,
72 gfx::Rect viewport, 71 gfx::Rect viewport,
73 gfx::Rect clip, 72 gfx::Rect clip,
74 bool stencil_enabled); 73 bool stencil_enabled);
75 bool DemandDrawSw(SkCanvas* canvas); 74 bool DemandDrawSw(SkCanvas* canvas);
76 void SetMemoryPolicy(const SynchronousCompositorMemoryPolicy& policy); 75 void SetMemoryPolicy(const SynchronousCompositorMemoryPolicy& policy);
77 76
78 private: 77 private:
(...skipping 27 matching lines...) Expand all
106 cc::OutputSurfaceClient* output_surface_client_; 105 cc::OutputSurfaceClient* output_surface_client_;
107 106
108 base::WeakPtrFactory<SynchronousCompositorOutputSurface> weak_ptr_factory_; 107 base::WeakPtrFactory<SynchronousCompositorOutputSurface> weak_ptr_factory_;
109 108
110 DISALLOW_COPY_AND_ASSIGN(SynchronousCompositorOutputSurface); 109 DISALLOW_COPY_AND_ASSIGN(SynchronousCompositorOutputSurface);
111 }; 110 };
112 111
113 } // namespace content 112 } // namespace content
114 113
115 #endif // CONTENT_BROWSER_ANDROID_IN_PROCESS_SYNCHRONOUS_COMPOSITOR_OUTPUT_SURF ACE_H_ 114 #endif // CONTENT_BROWSER_ANDROID_IN_PROCESS_SYNCHRONOUS_COMPOSITOR_OUTPUT_SURF ACE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698