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

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

Issue 1152693002: ui: Add sub region copy support to GLImage::CopyTexImage. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 7 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/stream_texture_android.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) 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 20 matching lines...) Expand all
31 int32 route_id, 31 int32 route_id,
32 uint32 texture_id); 32 uint32 texture_id);
33 ~StreamTexture() override; 33 ~StreamTexture() override;
34 34
35 // gfx::GLImage implementation: 35 // gfx::GLImage implementation:
36 void Destroy(bool have_context) override; 36 void Destroy(bool have_context) override;
37 gfx::Size GetSize() override; 37 gfx::Size GetSize() override;
38 unsigned GetInternalFormat() override; 38 unsigned GetInternalFormat() override;
39 bool BindTexImage(unsigned target) override; 39 bool BindTexImage(unsigned target) override;
40 void ReleaseTexImage(unsigned target) override; 40 void ReleaseTexImage(unsigned target) override;
41 bool CopyTexImage(unsigned target) override; 41 bool CopyTexSubImage(unsigned target,
42 const gfx::Point& offset,
43 const gfx::Rect& rect) override;
42 void WillUseTexImage() override; 44 void WillUseTexImage() override;
43 void DidUseTexImage() override {} 45 void DidUseTexImage() override {}
44 void WillModifyTexImage() override {} 46 void WillModifyTexImage() override {}
45 void DidModifyTexImage() override {} 47 void DidModifyTexImage() override {}
46 bool ScheduleOverlayPlane(gfx::AcceleratedWidget widget, 48 bool ScheduleOverlayPlane(gfx::AcceleratedWidget widget,
47 int z_order, 49 int z_order,
48 gfx::OverlayTransform transform, 50 gfx::OverlayTransform transform,
49 const gfx::Rect& bounds_rect, 51 const gfx::Rect& bounds_rect,
50 const gfx::RectF& crop_rect) override; 52 const gfx::RectF& crop_rect) override;
51 53
(...skipping 29 matching lines...) Expand all
81 int32 route_id_; 83 int32 route_id_;
82 bool has_listener_; 84 bool has_listener_;
83 85
84 base::WeakPtrFactory<StreamTexture> weak_factory_; 86 base::WeakPtrFactory<StreamTexture> weak_factory_;
85 DISALLOW_COPY_AND_ASSIGN(StreamTexture); 87 DISALLOW_COPY_AND_ASSIGN(StreamTexture);
86 }; 88 };
87 89
88 } // namespace content 90 } // namespace content
89 91
90 #endif // CONTENT_COMMON_GPU_STREAM_TEXTURE_ANDROID_H_ 92 #endif // CONTENT_COMMON_GPU_STREAM_TEXTURE_ANDROID_H_
OLDNEW
« no previous file with comments | « no previous file | content/common/gpu/stream_texture_android.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698