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

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

Issue 1336733002: Re-land: cc: Implement shared worker contexts. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: remove bad ChildProcess::current() call Created 5 years, 3 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
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 <vector> 8 #include <vector>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
51 const scoped_refptr<cc::ContextProvider>& context_provider, 51 const scoped_refptr<cc::ContextProvider>& context_provider,
52 const scoped_refptr<cc::ContextProvider>& worker_context_provider, 52 const scoped_refptr<cc::ContextProvider>& worker_context_provider,
53 int routing_id, 53 int routing_id,
54 scoped_refptr<FrameSwapMessageQueue> frame_swap_message_queue); 54 scoped_refptr<FrameSwapMessageQueue> frame_swap_message_queue);
55 ~SynchronousCompositorOutputSurface() override; 55 ~SynchronousCompositorOutputSurface() override;
56 56
57 void SetCompositor(SynchronousCompositorImpl* compositor); 57 void SetCompositor(SynchronousCompositorImpl* compositor);
58 58
59 // OutputSurface. 59 // OutputSurface.
60 bool BindToClient(cc::OutputSurfaceClient* surface_client) override; 60 bool BindToClient(cc::OutputSurfaceClient* surface_client) override;
61 void DetachFromClient() override;
61 void Reshape(const gfx::Size& size, float scale_factor) override; 62 void Reshape(const gfx::Size& size, float scale_factor) override;
62 void SwapBuffers(cc::CompositorFrame* frame) override; 63 void SwapBuffers(cc::CompositorFrame* frame) override;
63 void Invalidate() override; 64 void Invalidate() override;
64 65
65 // Partial SynchronousCompositor API implementation. 66 // Partial SynchronousCompositor API implementation.
66 scoped_ptr<cc::CompositorFrame> DemandDrawHw( 67 scoped_ptr<cc::CompositorFrame> DemandDrawHw(
67 gfx::Size surface_size, 68 gfx::Size surface_size,
68 const gfx::Transform& transform, 69 const gfx::Transform& transform,
69 gfx::Rect viewport, 70 gfx::Rect viewport,
70 gfx::Rect clip, 71 gfx::Rect clip,
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
112 scoped_ptr<cc::CompositorFrame> frame_holder_; 113 scoped_ptr<cc::CompositorFrame> frame_holder_;
113 114
114 scoped_refptr<FrameSwapMessageQueue> frame_swap_message_queue_; 115 scoped_refptr<FrameSwapMessageQueue> frame_swap_message_queue_;
115 116
116 DISALLOW_COPY_AND_ASSIGN(SynchronousCompositorOutputSurface); 117 DISALLOW_COPY_AND_ASSIGN(SynchronousCompositorOutputSurface);
117 }; 118 };
118 119
119 } // namespace content 120 } // namespace content
120 121
121 #endif // CONTENT_BROWSER_ANDROID_IN_PROCESS_SYNCHRONOUS_COMPOSITOR_OUTPUT_SURF ACE_H_ 122 #endif // CONTENT_BROWSER_ANDROID_IN_PROCESS_SYNCHRONOUS_COMPOSITOR_OUTPUT_SURF ACE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698