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

Side by Side Diff: content/common/gpu/null_transport_surface.h

Issue 649773002: gpu: Don't call SetSwapInterval() for NullTransportSurface (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 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
« no previous file with comments | « no previous file | content/common/gpu/null_transport_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) 2014 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2014 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_COMMON_GPU_NULL_TRANSPORT_SURFACE_H_ 5 #ifndef CONTENT_COMMON_GPU_NULL_TRANSPORT_SURFACE_H_
6 #define CONTENT_COMMON_GPU_NULL_TRANSPORT_SURFACE_H_ 6 #define CONTENT_COMMON_GPU_NULL_TRANSPORT_SURFACE_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "content/common/gpu/image_transport_surface.h" 9 #include "content/common/gpu/image_transport_surface.h"
10 #include "ui/gfx/native_widget_types.h" 10 #include "ui/gfx/native_widget_types.h"
11 11
12 namespace content { 12 namespace content {
13 13
14 // Used when the GPU process is not involved in frame transport, but frame 14 // Used when the GPU process is not involved in frame transport, but frame
15 // resources are exchanged between client and target directly (such as in 15 // resources are exchanged between client and target directly (such as in
16 // delegated rendering). 16 // delegated rendering).
17 class NullTransportSurface : public PassThroughImageTransportSurface { 17 class NullTransportSurface : public PassThroughImageTransportSurface {
18 public: 18 public:
19 NullTransportSurface(GpuChannelManager* manager, 19 NullTransportSurface(GpuChannelManager* manager,
20 GpuCommandBufferStub* stub, 20 GpuCommandBufferStub* stub,
21 const gfx::GLSurfaceHandle& handle); 21 const gfx::GLSurfaceHandle& handle);
22 22
23 // gfx::GLSurface implementation. 23 // gfx::GLSurfaceAdapter implementation.
24 virtual bool Initialize() override; 24 virtual bool Initialize() override;
25 virtual void Destroy() override; 25 virtual void Destroy() override;
26 virtual bool SwapBuffers() override; 26 virtual bool SwapBuffers() override;
27 virtual bool PostSubBuffer(int x, int y, int width, int height) override; 27 virtual bool PostSubBuffer(int x, int y, int width, int height) override;
28 virtual bool OnMakeCurrent(gfx::GLContext* context) override;
28 29
29 protected: 30 protected:
30 virtual ~NullTransportSurface(); 31 virtual ~NullTransportSurface();
31 32
32 virtual void SendVSyncUpdateIfAvailable() override; 33 virtual void SendVSyncUpdateIfAvailable() override;
33 34
34 private: 35 private:
35 uint32 parent_client_id_; 36 uint32 parent_client_id_;
36 37
37 DISALLOW_COPY_AND_ASSIGN(NullTransportSurface); 38 DISALLOW_COPY_AND_ASSIGN(NullTransportSurface);
38 }; 39 };
39 40
40 } // namespace content 41 } // namespace content
41 42
42 #endif // CONTENT_COMMON_GPU_NULL_TRANSPORT_SURFACE_H_ 43 #endif // CONTENT_COMMON_GPU_NULL_TRANSPORT_SURFACE_H_
OLDNEW
« no previous file with comments | « no previous file | content/common/gpu/null_transport_surface.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698