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

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

Issue 13042012: Browser side changes for software compositing (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 8 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 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_RENDERER_GPU_COMPOSITOR_SOFTWARE_OUTPUT_DEVICE_H_ 5 #ifndef CONTENT_RENDERER_GPU_COMPOSITOR_SOFTWARE_OUTPUT_DEVICE_H_
6 #define CONTENT_RENDERER_GPU_COMPOSITOR_SOFTWARE_OUTPUT_DEVICE_H_ 6 #define CONTENT_RENDERER_GPU_COMPOSITOR_SOFTWARE_OUTPUT_DEVICE_H_
7 7
8 #include "base/memory/scoped_vector.h" 8 #include "base/memory/scoped_vector.h"
9 #include "base/threading/non_thread_safe.h" 9 #include "base/threading/non_thread_safe.h"
10 #include "cc/output/software_output_device.h" 10 #include "cc/output/software_output_device.h"
(...skipping 15 matching lines...) Expand all
26 26
27 virtual SkCanvas* BeginPaint(gfx::Rect damage_rect) OVERRIDE; 27 virtual SkCanvas* BeginPaint(gfx::Rect damage_rect) OVERRIDE;
28 virtual void EndPaint(cc::SoftwareFrameData* frame_data) OVERRIDE; 28 virtual void EndPaint(cc::SoftwareFrameData* frame_data) OVERRIDE;
29 29
30 virtual void ReclaimDIB(const TransportDIB::Id& id) OVERRIDE; 30 virtual void ReclaimDIB(const TransportDIB::Id& id) OVERRIDE;
31 31
32 private: 32 private:
33 TransportDIB* CreateDIB(); 33 TransportDIB* CreateDIB();
34 34
35 int front_buffer_; 35 int front_buffer_;
36 int last_buffer_;
37 int num_free_buffers_; 36 int num_free_buffers_;
38 ScopedVector<TransportDIB> dibs_; 37 ScopedVector<TransportDIB> dibs_;
39 ScopedVector<TransportDIB> awaiting_ack_; 38 ScopedVector<TransportDIB> awaiting_ack_;
40 SkBitmap bitmap_; 39 SkBitmap bitmap_;
41 uint32 sequence_num_; 40 uint32 sequence_num_;
42 }; 41 };
43 42
44 } // namespace content 43 } // namespace content
45 44
46 #endif // CONTENT_RENDERER_GPU_COMPOSITOR_SOFTWARE_OUTPUT_DEVICE_H_ 45 #endif // CONTENT_RENDERER_GPU_COMPOSITOR_SOFTWARE_OUTPUT_DEVICE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698