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

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

Issue 11967033: [CLOSED] In-browser software compositing (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix the lack SkCanvas::clear scissoring. Created 7 years, 11 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
« no previous file with comments | « content/content_browser.gypi ('k') | content/renderer/gpu/compositor_output_surface.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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"
11 #include "base/memory/scoped_ptr.h" 11 #include "base/memory/scoped_ptr.h"
12 #include "base/threading/non_thread_safe.h" 12 #include "base/threading/non_thread_safe.h"
13 #include "base/time.h" 13 #include "base/time.h"
14 #include "cc/output_surface.h" 14 #include "cc/output_surface_impl.h"
15 #include "cc/software_output_device.h"
16 15
17 namespace base { 16 namespace base {
18 class TaskRunner; 17 class TaskRunner;
19 } 18 }
20 19
21 namespace IPC { 20 namespace IPC {
22 class ForwardingMessageFilter; 21 class ForwardingMessageFilter;
23 class Message; 22 class Message;
24 } 23 }
25 24
26 namespace content { 25 namespace content {
27 26
28 // This class can be created only on the main thread, but then becomes pinned 27 // This class can be created only on the main thread, but then becomes pinned
29 // to a fixed thread when bindToClient is called. 28 // to a fixed thread when bindToClient is called.
30 class CompositorOutputSurface 29 class CompositorOutputSurface
31 : NON_EXPORTED_BASE(public cc::OutputSurface), 30 : NON_EXPORTED_BASE(public cc::OutputSurfaceImpl),
32 NON_EXPORTED_BASE(public base::NonThreadSafe) { 31 NON_EXPORTED_BASE(public base::NonThreadSafe) {
33 public: 32 public:
34 static IPC::ForwardingMessageFilter* CreateFilter( 33 static IPC::ForwardingMessageFilter* CreateFilter(
35 base::TaskRunner* target_task_runner); 34 base::TaskRunner* target_task_runner);
36 35
37 CompositorOutputSurface(int32 routing_id, 36 CompositorOutputSurface(int32 routing_id,
38 WebKit::WebGraphicsContext3D* context3d, 37 WebKit::WebGraphicsContext3D* context3d,
39 cc::SoftwareOutputDevice* software); 38 cc::SoftwareOutputDevice* software);
40 virtual ~CompositorOutputSurface(); 39 virtual ~CompositorOutputSurface();
41 40
(...skipping 24 matching lines...) Expand all
66 65
67 DISALLOW_COPY_AND_ASSIGN(CompositorOutputSurfaceProxy); 66 DISALLOW_COPY_AND_ASSIGN(CompositorOutputSurfaceProxy);
68 }; 67 };
69 68
70 void OnMessageReceived(const IPC::Message& message); 69 void OnMessageReceived(const IPC::Message& message);
71 void OnUpdateVSyncParameters( 70 void OnUpdateVSyncParameters(
72 base::TimeTicks timebase, base::TimeDelta interval); 71 base::TimeTicks timebase, base::TimeDelta interval);
73 bool Send(IPC::Message* message); 72 bool Send(IPC::Message* message);
74 73
75 scoped_refptr<IPC::ForwardingMessageFilter> output_surface_filter_; 74 scoped_refptr<IPC::ForwardingMessageFilter> output_surface_filter_;
76 cc::OutputSurfaceClient* client_;
77 scoped_refptr<CompositorOutputSurfaceProxy> output_surface_proxy_; 75 scoped_refptr<CompositorOutputSurfaceProxy> output_surface_proxy_;
78 int routing_id_; 76 int routing_id_;
79 struct Capabilities capabilities_;
80 scoped_ptr<WebKit::WebGraphicsContext3D> context3D_;
81 scoped_ptr<cc::SoftwareOutputDevice> software_device_;
82 }; 77 };
83 78
84 } // namespace content 79 } // namespace content
85 80
86 #endif // CONTENT_RENDERER_GPU_COMPOSITOR_OUTPUT_SURFACE_H_ 81 #endif // CONTENT_RENDERER_GPU_COMPOSITOR_OUTPUT_SURFACE_H_
OLDNEW
« no previous file with comments | « content/content_browser.gypi ('k') | content/renderer/gpu/compositor_output_surface.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698