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

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

Issue 643993005: Remove limit on number of resources in cc (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: no cc change Created 6 years, 1 month 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 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
76 void ReleaseHwDraw(); 76 void ReleaseHwDraw();
77 scoped_ptr<cc::CompositorFrame> DemandDrawHw( 77 scoped_ptr<cc::CompositorFrame> DemandDrawHw(
78 gfx::Size surface_size, 78 gfx::Size surface_size,
79 const gfx::Transform& transform, 79 const gfx::Transform& transform,
80 gfx::Rect viewport, 80 gfx::Rect viewport,
81 gfx::Rect clip, 81 gfx::Rect clip,
82 gfx::Rect viewport_rect_for_tile_priority, 82 gfx::Rect viewport_rect_for_tile_priority,
83 const gfx::Transform& transform_for_tile_priority); 83 const gfx::Transform& transform_for_tile_priority);
84 void ReturnResources(const cc::CompositorFrameAck& frame_ack); 84 void ReturnResources(const cc::CompositorFrameAck& frame_ack);
85 scoped_ptr<cc::CompositorFrame> DemandDrawSw(SkCanvas* canvas); 85 scoped_ptr<cc::CompositorFrame> DemandDrawSw(SkCanvas* canvas);
86 void SetMemoryPolicy(const SynchronousCompositorMemoryPolicy& policy); 86 void SetMemoryPolicy(size_t bytes_limit);
87 void GetMessagesToDeliver(ScopedVector<IPC::Message>* messages); 87 void GetMessagesToDeliver(ScopedVector<IPC::Message>* messages);
88 88
89 private: 89 private:
90 class SoftwareDevice; 90 class SoftwareDevice;
91 friend class SoftwareDevice; 91 friend class SoftwareDevice;
92 92
93 void InvokeComposite(const gfx::Transform& transform, 93 void InvokeComposite(const gfx::Transform& transform,
94 gfx::Rect viewport, 94 gfx::Rect viewport,
95 gfx::Rect clip, 95 gfx::Rect clip,
96 gfx::Rect viewport_rect_for_tile_priority, 96 gfx::Rect viewport_rect_for_tile_priority,
(...skipping 21 matching lines...) Expand all
118 scoped_ptr<cc::CompositorFrame> frame_holder_; 118 scoped_ptr<cc::CompositorFrame> frame_holder_;
119 119
120 scoped_refptr<FrameSwapMessageQueue> frame_swap_message_queue_; 120 scoped_refptr<FrameSwapMessageQueue> frame_swap_message_queue_;
121 121
122 DISALLOW_COPY_AND_ASSIGN(SynchronousCompositorOutputSurface); 122 DISALLOW_COPY_AND_ASSIGN(SynchronousCompositorOutputSurface);
123 }; 123 };
124 124
125 } // namespace content 125 } // namespace content
126 126
127 #endif // CONTENT_BROWSER_ANDROID_IN_PROCESS_SYNCHRONOUS_COMPOSITOR_OUTPUT_SURF ACE_H_ 127 #endif // CONTENT_BROWSER_ANDROID_IN_PROCESS_SYNCHRONOUS_COMPOSITOR_OUTPUT_SURF ACE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698