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

Side by Side Diff: content/renderer/gpu/compositor_output_surface.h

Issue 22900018: cc: Set the mapped memory reclaim limit for the renderer compositor on Android (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Move max_transfer_buffer_usage_bytes to OutputSurface::Capabilities Created 7 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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_RENDERER_GPU_COMPOSITOR_OUTPUT_SURFACE_H_ 5 #ifndef CONTENT_RENDERER_GPU_COMPOSITOR_OUTPUT_SURFACE_H_
6 #define CONTENT_RENDERER_GPU_COMPOSITOR_OUTPUT_SURFACE_H_ 6 #define CONTENT_RENDERER_GPU_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 29 matching lines...) Expand all
40 NON_EXPORTED_BASE(public base::NonThreadSafe) { 40 NON_EXPORTED_BASE(public base::NonThreadSafe) {
41 public: 41 public:
42 static IPC::ForwardingMessageFilter* CreateFilter( 42 static IPC::ForwardingMessageFilter* CreateFilter(
43 base::TaskRunner* target_task_runner); 43 base::TaskRunner* target_task_runner);
44 44
45 CompositorOutputSurface( 45 CompositorOutputSurface(
46 int32 routing_id, 46 int32 routing_id,
47 uint32 output_surface_id, 47 uint32 output_surface_id,
48 const scoped_refptr<ContextProviderCommandBuffer>& context_provider, 48 const scoped_refptr<ContextProviderCommandBuffer>& context_provider,
49 scoped_ptr<cc::SoftwareOutputDevice> software, 49 scoped_ptr<cc::SoftwareOutputDevice> software,
50 bool use_swap_compositor_frame_message); 50 bool use_swap_compositor_frame_message,
51 size_t max_transfer_buffer_usage_bytes);
51 virtual ~CompositorOutputSurface(); 52 virtual ~CompositorOutputSurface();
52 53
53 // cc::OutputSurface implementation. 54 // cc::OutputSurface implementation.
54 virtual bool BindToClient(cc::OutputSurfaceClient* client) OVERRIDE; 55 virtual bool BindToClient(cc::OutputSurfaceClient* client) OVERRIDE;
55 virtual void SwapBuffers(cc::CompositorFrame* frame) OVERRIDE; 56 virtual void SwapBuffers(cc::CompositorFrame* frame) OVERRIDE;
56 #if defined(OS_ANDROID) 57 #if defined(OS_ANDROID)
57 virtual void SetNeedsBeginFrame(bool enable) OVERRIDE; 58 virtual void SetNeedsBeginFrame(bool enable) OVERRIDE;
58 #endif 59 #endif
59 virtual void EnsureBackbuffer() OVERRIDE; 60 virtual void EnsureBackbuffer() OVERRIDE;
60 virtual void DiscardBackbuffer() OVERRIDE; 61 virtual void DiscardBackbuffer() OVERRIDE;
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
103 scoped_refptr<CompositorOutputSurfaceProxy> output_surface_proxy_; 104 scoped_refptr<CompositorOutputSurfaceProxy> output_surface_proxy_;
104 scoped_refptr<IPC::SyncMessageFilter> message_sender_; 105 scoped_refptr<IPC::SyncMessageFilter> message_sender_;
105 int routing_id_; 106 int routing_id_;
106 bool prefers_smoothness_; 107 bool prefers_smoothness_;
107 base::PlatformThreadHandle main_thread_handle_; 108 base::PlatformThreadHandle main_thread_handle_;
108 }; 109 };
109 110
110 } // namespace content 111 } // namespace content
111 112
112 #endif // CONTENT_RENDERER_GPU_COMPOSITOR_OUTPUT_SURFACE_H_ 113 #endif // CONTENT_RENDERER_GPU_COMPOSITOR_OUTPUT_SURFACE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698