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

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

Issue 11777025: cc: Implement DelegatingRender::drawFrame() method. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: a few more consts 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
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 27 matching lines...) Expand all
38 WebKit::WebGraphicsContext3D* context3d, 38 WebKit::WebGraphicsContext3D* context3d,
39 cc::SoftwareOutputDevice* software); 39 cc::SoftwareOutputDevice* software);
40 virtual ~CompositorOutputSurface(); 40 virtual ~CompositorOutputSurface();
41 41
42 // cc::OutputSurface implementation. 42 // cc::OutputSurface implementation.
43 virtual bool BindToClient(cc::OutputSurfaceClient* client) OVERRIDE; 43 virtual bool BindToClient(cc::OutputSurfaceClient* client) OVERRIDE;
44 virtual const struct Capabilities& Capabilities() const OVERRIDE; 44 virtual const struct Capabilities& Capabilities() const OVERRIDE;
45 virtual WebKit::WebGraphicsContext3D* Context3D() const OVERRIDE; 45 virtual WebKit::WebGraphicsContext3D* Context3D() const OVERRIDE;
46 virtual cc::SoftwareOutputDevice* SoftwareDevice() const OVERRIDE; 46 virtual cc::SoftwareOutputDevice* SoftwareDevice() const OVERRIDE;
47 virtual void SendFrameToParentCompositor( 47 virtual void SendFrameToParentCompositor(
48 const cc::CompositorFrame&) OVERRIDE; 48 cc::CompositorFrame&) OVERRIDE;
49 49
50 private: 50 private:
51 class CompositorOutputSurfaceProxy : 51 class CompositorOutputSurfaceProxy :
52 public base::RefCountedThreadSafe<CompositorOutputSurfaceProxy> { 52 public base::RefCountedThreadSafe<CompositorOutputSurfaceProxy> {
53 public: 53 public:
54 explicit CompositorOutputSurfaceProxy( 54 explicit CompositorOutputSurfaceProxy(
55 CompositorOutputSurface* output_surface) 55 CompositorOutputSurface* output_surface)
56 : output_surface_(output_surface) {} 56 : output_surface_(output_surface) {}
57 void ClearOutputSurface() { output_surface_ = NULL; } 57 void ClearOutputSurface() { output_surface_ = NULL; }
58 void OnMessageReceived(const IPC::Message& message) { 58 void OnMessageReceived(const IPC::Message& message) {
(...skipping 19 matching lines...) Expand all
78 scoped_refptr<CompositorOutputSurfaceProxy> output_surface_proxy_; 78 scoped_refptr<CompositorOutputSurfaceProxy> output_surface_proxy_;
79 int routing_id_; 79 int routing_id_;
80 struct Capabilities capabilities_; 80 struct Capabilities capabilities_;
81 scoped_ptr<WebKit::WebGraphicsContext3D> context3D_; 81 scoped_ptr<WebKit::WebGraphicsContext3D> context3D_;
82 scoped_ptr<cc::SoftwareOutputDevice> software_device_; 82 scoped_ptr<cc::SoftwareOutputDevice> software_device_;
83 }; 83 };
84 84
85 } // namespace content 85 } // namespace content
86 86
87 #endif // CONTENT_RENDERER_GPU_COMPOSITOR_OUTPUT_SURFACE_H_ 87 #endif // CONTENT_RENDERER_GPU_COMPOSITOR_OUTPUT_SURFACE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698