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

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

Issue 893333004: Update {virtual,override,final} to follow C++11 style. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix formatting Created 5 years, 10 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
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_COMMON_GPU_STREAM_TEXTURE_ANDROID_H_ 5 #ifndef CONTENT_COMMON_GPU_STREAM_TEXTURE_ANDROID_H_
6 #define CONTENT_COMMON_GPU_STREAM_TEXTURE_ANDROID_H_ 6 #define CONTENT_COMMON_GPU_STREAM_TEXTURE_ANDROID_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/memory/weak_ptr.h" 9 #include "base/memory/weak_ptr.h"
10 #include "content/common/gpu/gpu_command_buffer_stub.h" 10 #include "content/common/gpu/gpu_command_buffer_stub.h"
(...skipping 12 matching lines...) Expand all
23 public GpuCommandBufferStub::DestructionObserver { 23 public GpuCommandBufferStub::DestructionObserver {
24 public: 24 public:
25 static bool Create(GpuCommandBufferStub* owner_stub, 25 static bool Create(GpuCommandBufferStub* owner_stub,
26 uint32 client_texture_id, 26 uint32 client_texture_id,
27 int stream_id); 27 int stream_id);
28 28
29 private: 29 private:
30 StreamTexture(GpuCommandBufferStub* owner_stub, 30 StreamTexture(GpuCommandBufferStub* owner_stub,
31 int32 route_id, 31 int32 route_id,
32 uint32 texture_id); 32 uint32 texture_id);
33 virtual ~StreamTexture(); 33 ~StreamTexture() override;
34 34
35 // gfx::GLImage implementation: 35 // gfx::GLImage implementation:
36 virtual void Destroy(bool have_context) override; 36 void Destroy(bool have_context) override;
37 virtual gfx::Size GetSize() override; 37 gfx::Size GetSize() override;
38 virtual bool BindTexImage(unsigned target) override; 38 bool BindTexImage(unsigned target) override;
39 virtual void ReleaseTexImage(unsigned target) override; 39 void ReleaseTexImage(unsigned target) override;
40 virtual bool CopyTexImage(unsigned target) override; 40 bool CopyTexImage(unsigned target) override;
41 virtual void WillUseTexImage() override; 41 void WillUseTexImage() override;
42 virtual void DidUseTexImage() override {} 42 void DidUseTexImage() override {}
43 virtual void WillModifyTexImage() override {} 43 void WillModifyTexImage() override {}
44 virtual void DidModifyTexImage() override {} 44 void DidModifyTexImage() override {}
45 virtual bool ScheduleOverlayPlane(gfx::AcceleratedWidget widget, 45 bool ScheduleOverlayPlane(gfx::AcceleratedWidget widget,
46 int z_order, 46 int z_order,
47 gfx::OverlayTransform transform, 47 gfx::OverlayTransform transform,
48 const gfx::Rect& bounds_rect, 48 const gfx::Rect& bounds_rect,
49 const gfx::RectF& crop_rect) override; 49 const gfx::RectF& crop_rect) override;
50 50
51 // GpuCommandBufferStub::DestructionObserver implementation. 51 // GpuCommandBufferStub::DestructionObserver implementation.
52 virtual void OnWillDestroyStub() override; 52 void OnWillDestroyStub() override;
53 53
54 // Called when a new frame is available for the SurfaceTexture. 54 // Called when a new frame is available for the SurfaceTexture.
55 void OnFrameAvailable(); 55 void OnFrameAvailable();
56 56
57 // IPC::Listener implementation: 57 // IPC::Listener implementation:
58 virtual bool OnMessageReceived(const IPC::Message& message) override; 58 bool OnMessageReceived(const IPC::Message& message) override;
59 59
60 // IPC message handlers: 60 // IPC message handlers:
61 void OnStartListening(); 61 void OnStartListening();
62 void OnEstablishPeer(int32 primary_id, int32 secondary_id); 62 void OnEstablishPeer(int32 primary_id, int32 secondary_id);
63 void OnSetSize(const gfx::Size& size) { size_ = size; } 63 void OnSetSize(const gfx::Size& size) { size_ = size; }
64 64
65 scoped_refptr<gfx::SurfaceTexture> surface_texture_; 65 scoped_refptr<gfx::SurfaceTexture> surface_texture_;
66 66
67 // Current transform matrix of the surface texture. 67 // Current transform matrix of the surface texture.
68 float current_matrix_[16]; 68 float current_matrix_[16];
(...skipping 11 matching lines...) Expand all
80 int32 route_id_; 80 int32 route_id_;
81 bool has_listener_; 81 bool has_listener_;
82 82
83 base::WeakPtrFactory<StreamTexture> weak_factory_; 83 base::WeakPtrFactory<StreamTexture> weak_factory_;
84 DISALLOW_COPY_AND_ASSIGN(StreamTexture); 84 DISALLOW_COPY_AND_ASSIGN(StreamTexture);
85 }; 85 };
86 86
87 } // namespace content 87 } // namespace content
88 88
89 #endif // CONTENT_COMMON_GPU_STREAM_TEXTURE_ANDROID_H_ 89 #endif // CONTENT_COMMON_GPU_STREAM_TEXTURE_ANDROID_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698