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

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

Issue 916723002: cc: Add threaded GPU rasterization. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Implement ContextProviderInProcess::DetachFromThread(). Created 5 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
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 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
55 // OutputSurface. 55 // OutputSurface.
56 bool BindToClient(cc::OutputSurfaceClient* surface_client) override; 56 bool BindToClient(cc::OutputSurfaceClient* surface_client) override;
57 void Reshape(const gfx::Size& size, float scale_factor) override; 57 void Reshape(const gfx::Size& size, float scale_factor) override;
58 void SwapBuffers(cc::CompositorFrame* frame) override; 58 void SwapBuffers(cc::CompositorFrame* frame) override;
59 59
60 void SetBeginFrameSource( 60 void SetBeginFrameSource(
61 SynchronousCompositorExternalBeginFrameSource* begin_frame_source); 61 SynchronousCompositorExternalBeginFrameSource* begin_frame_source);
62 62
63 // Partial SynchronousCompositor API implementation. 63 // Partial SynchronousCompositor API implementation.
64 bool InitializeHwDraw( 64 bool InitializeHwDraw(
65 scoped_refptr<cc::ContextProvider> onscreen_context_provider); 65 scoped_refptr<cc::ContextProvider> onscreen_context_provider,
66 scoped_refptr<cc::ContextProvider> worker_context_provider);
66 void ReleaseHwDraw(); 67 void ReleaseHwDraw();
67 scoped_ptr<cc::CompositorFrame> DemandDrawHw( 68 scoped_ptr<cc::CompositorFrame> DemandDrawHw(
68 gfx::Size surface_size, 69 gfx::Size surface_size,
69 const gfx::Transform& transform, 70 const gfx::Transform& transform,
70 gfx::Rect viewport, 71 gfx::Rect viewport,
71 gfx::Rect clip, 72 gfx::Rect clip,
72 gfx::Rect viewport_rect_for_tile_priority, 73 gfx::Rect viewport_rect_for_tile_priority,
73 const gfx::Transform& transform_for_tile_priority); 74 const gfx::Transform& transform_for_tile_priority);
74 void ReturnResources(const cc::CompositorFrameAck& frame_ack); 75 void ReturnResources(const cc::CompositorFrameAck& frame_ack);
75 scoped_ptr<cc::CompositorFrame> DemandDrawSw(SkCanvas* canvas); 76 scoped_ptr<cc::CompositorFrame> DemandDrawSw(SkCanvas* canvas);
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
109 scoped_refptr<FrameSwapMessageQueue> frame_swap_message_queue_; 110 scoped_refptr<FrameSwapMessageQueue> frame_swap_message_queue_;
110 111
111 SynchronousCompositorExternalBeginFrameSource* begin_frame_source_; 112 SynchronousCompositorExternalBeginFrameSource* begin_frame_source_;
112 113
113 DISALLOW_COPY_AND_ASSIGN(SynchronousCompositorOutputSurface); 114 DISALLOW_COPY_AND_ASSIGN(SynchronousCompositorOutputSurface);
114 }; 115 };
115 116
116 } // namespace content 117 } // namespace content
117 118
118 #endif // CONTENT_BROWSER_ANDROID_IN_PROCESS_SYNCHRONOUS_COMPOSITOR_OUTPUT_SURF ACE_H_ 119 #endif // CONTENT_BROWSER_ANDROID_IN_PROCESS_SYNCHRONOUS_COMPOSITOR_OUTPUT_SURF ACE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698