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

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

Issue 540143002: InProcessGL: Share MailboxManager per service (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@clankium
Patch Set: rebase Created 6 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_IMPL_H_ 5 #ifndef CONTENT_BROWSER_ANDROID_IN_PROCESS_SYNCHRONOUS_COMPOSITOR_IMPL_H_
6 #define CONTENT_BROWSER_ANDROID_IN_PROCESS_SYNCHRONOUS_COMPOSITOR_IMPL_H_ 6 #define CONTENT_BROWSER_ANDROID_IN_PROCESS_SYNCHRONOUS_COMPOSITOR_IMPL_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
46 // is implicitly that of the in-process renderer. 46 // is implicitly that of the in-process renderer.
47 static SynchronousCompositorImpl* FromRoutingID(int routing_id); 47 static SynchronousCompositorImpl* FromRoutingID(int routing_id);
48 48
49 InputEventAckState HandleInputEvent(const blink::WebInputEvent& input_event); 49 InputEventAckState HandleInputEvent(const blink::WebInputEvent& input_event);
50 50
51 // SynchronousCompositor 51 // SynchronousCompositor
52 virtual void SetClient(SynchronousCompositorClient* compositor_client) 52 virtual void SetClient(SynchronousCompositorClient* compositor_client)
53 OVERRIDE; 53 OVERRIDE;
54 virtual bool InitializeHwDraw() OVERRIDE; 54 virtual bool InitializeHwDraw() OVERRIDE;
55 virtual void ReleaseHwDraw() OVERRIDE; 55 virtual void ReleaseHwDraw() OVERRIDE;
56 virtual gpu::GLInProcessContext* GetShareContext() OVERRIDE;
57 virtual scoped_ptr<cc::CompositorFrame> DemandDrawHw( 56 virtual scoped_ptr<cc::CompositorFrame> DemandDrawHw(
58 gfx::Size surface_size, 57 gfx::Size surface_size,
59 const gfx::Transform& transform, 58 const gfx::Transform& transform,
60 gfx::Rect viewport, 59 gfx::Rect viewport,
61 gfx::Rect clip, 60 gfx::Rect clip,
62 gfx::Rect viewport_rect_for_tile_priority, 61 gfx::Rect viewport_rect_for_tile_priority,
63 const gfx::Transform& transform_for_tile_priority) OVERRIDE; 62 const gfx::Transform& transform_for_tile_priority) OVERRIDE;
64 virtual bool DemandDrawSw(SkCanvas* canvas) OVERRIDE; 63 virtual bool DemandDrawSw(SkCanvas* canvas) OVERRIDE;
65 virtual void ReturnResources( 64 virtual void ReturnResources(
66 const cc::CompositorFrameAck& frame_ack) OVERRIDE; 65 const cc::CompositorFrameAck& frame_ack) OVERRIDE;
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
105 cc::InputHandler* input_handler_; 104 cc::InputHandler* input_handler_;
106 105
107 base::WeakPtrFactory<SynchronousCompositorImpl> weak_ptr_factory_; 106 base::WeakPtrFactory<SynchronousCompositorImpl> weak_ptr_factory_;
108 107
109 DISALLOW_COPY_AND_ASSIGN(SynchronousCompositorImpl); 108 DISALLOW_COPY_AND_ASSIGN(SynchronousCompositorImpl);
110 }; 109 };
111 110
112 } // namespace content 111 } // namespace content
113 112
114 #endif // CONTENT_BROWSER_ANDROID_IN_PROCESS_SYNCHRONOUS_COMPOSITOR_IMPL_H_ 113 #endif // CONTENT_BROWSER_ANDROID_IN_PROCESS_SYNCHRONOUS_COMPOSITOR_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698