Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef CONTENT_BROWSER_COMPOSITOR_GPU_SURFACELESS_BROWSER_COMPOSITOR_OUTPUT_SUR FACE_H_ | |
| 6 #define CONTENT_BROWSER_COMPOSITOR_GPU_SURFACELESS_BROWSER_COMPOSITOR_OUTPUT_SUR FACE_H_ | |
| 7 | |
| 8 #include "content/browser/compositor/gpu_browser_compositor_output_surface.h" | |
| 9 | |
| 10 namespace content { | |
| 11 | |
| 12 class BufferedOutputSurface; | |
| 13 | |
| 14 class GpuSurfacelessBrowserCompositorOutputSurface | |
| 15 : public GpuBrowserCompositorOutputSurface { | |
| 16 public: | |
| 17 GpuSurfacelessBrowserCompositorOutputSurface( | |
| 18 const scoped_refptr<ContextProviderCommandBuffer>& context, | |
| 19 int surface_id, | |
| 20 IDMap<BrowserCompositorOutputSurface>* output_surface_map, | |
| 21 const scoped_refptr<ui::CompositorVSyncManager>& vsync_manager, | |
| 22 scoped_ptr<cc::OverlayCandidateValidator> overlay_candidate_validator, | |
| 23 unsigned internalformat, | |
| 24 int z_order); | |
|
alexst (slow to review)
2014/09/10 15:39:07
Let's leave z order for a followup CL.
| |
| 25 virtual ~GpuSurfacelessBrowserCompositorOutputSurface(); | |
| 26 | |
| 27 private: | |
| 28 // cc::OutputSurface implementation. | |
| 29 virtual void SwapBuffers(cc::CompositorFrame* frame) OVERRIDE; | |
| 30 virtual void OnSwapBuffersComplete() OVERRIDE; | |
| 31 virtual void BindFramebuffer() OVERRIDE; | |
| 32 virtual void Reshape(const gfx::Size& size, float scale_factor) OVERRIDE; | |
| 33 virtual bool BindToClient(cc::OutputSurfaceClient* client) OVERRIDE; | |
| 34 | |
| 35 int z_order_; | |
| 36 bool expects_pageflip_messages_; | |
| 37 unsigned int internalformat_; | |
| 38 scoped_ptr<BufferedOutputSurface> output_surface_; | |
| 39 }; | |
| 40 | |
| 41 } // namespace content | |
| 42 | |
| 43 #endif // CONTENT_BROWSER_COMPOSITOR_GPU_SURFACELESS_BROWSER_COMPOSITOR_OUTPUT_ SURFACE_H_ | |
| OLD | NEW |