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

Side by Side Diff: gpu/command_buffer/service/gles2_cmd_decoder_unittest_textures.cc

Issue 536353002: gpu: Add CopyTexImage function to GLImage API. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: keep support for binding images to multiple textures Created 6 years, 3 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 2014 The Chromium Authors. All rights reserved. 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 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 #include "gpu/command_buffer/service/gles2_cmd_decoder.h" 5 #include "gpu/command_buffer/service/gles2_cmd_decoder.h"
6 6
7 #include "base/command_line.h" 7 #include "base/command_line.h"
8 #include "base/strings/string_number_conversions.h" 8 #include "base/strings/string_number_conversions.h"
9 #include "gpu/command_buffer/common/gles2_cmd_format.h" 9 #include "gpu/command_buffer/common/gles2_cmd_format.h"
10 #include "gpu/command_buffer/common/gles2_cmd_utils.h" 10 #include "gpu/command_buffer/common/gles2_cmd_utils.h"
(...skipping 2261 matching lines...) Expand 10 before | Expand all | Expand 10 after
2272 2272
2273 class MockGLImage : public gfx::GLImage { 2273 class MockGLImage : public gfx::GLImage {
2274 public: 2274 public:
2275 MockGLImage() {} 2275 MockGLImage() {}
2276 2276
2277 // Overridden from gfx::GLImage: 2277 // Overridden from gfx::GLImage:
2278 MOCK_METHOD0(GetSize, gfx::Size()); 2278 MOCK_METHOD0(GetSize, gfx::Size());
2279 MOCK_METHOD1(Destroy, void(bool)); 2279 MOCK_METHOD1(Destroy, void(bool));
2280 MOCK_METHOD1(BindTexImage, bool(unsigned)); 2280 MOCK_METHOD1(BindTexImage, bool(unsigned));
2281 MOCK_METHOD1(ReleaseTexImage, void(unsigned)); 2281 MOCK_METHOD1(ReleaseTexImage, void(unsigned));
2282 MOCK_METHOD1(CopyTexImage, bool(unsigned));
2282 MOCK_METHOD0(WillUseTexImage, void()); 2283 MOCK_METHOD0(WillUseTexImage, void());
2283 MOCK_METHOD0(DidUseTexImage, void()); 2284 MOCK_METHOD0(DidUseTexImage, void());
2284 MOCK_METHOD0(WillModifyTexImage, void()); 2285 MOCK_METHOD0(WillModifyTexImage, void());
2285 MOCK_METHOD0(DidModifyTexImage, void()); 2286 MOCK_METHOD0(DidModifyTexImage, void());
2286 MOCK_METHOD5(ScheduleOverlayPlane, bool(gfx::AcceleratedWidget, 2287 MOCK_METHOD5(ScheduleOverlayPlane, bool(gfx::AcceleratedWidget,
2287 int, 2288 int,
2288 gfx::OverlayTransform, 2289 gfx::OverlayTransform,
2289 const gfx::Rect&, 2290 const gfx::Rect&,
2290 const gfx::RectF&)); 2291 const gfx::RectF&));
2291 2292
(...skipping 540 matching lines...) Expand 10 before | Expand all | Expand 10 after
2832 // TODO(gman): CompressedTexSubImage2DImmediate 2833 // TODO(gman): CompressedTexSubImage2DImmediate
2833 2834
2834 // TODO(gman): TexImage2D 2835 // TODO(gman): TexImage2D
2835 2836
2836 // TODO(gman): TexImage2DImmediate 2837 // TODO(gman): TexImage2DImmediate
2837 2838
2838 // TODO(gman): TexSubImage2DImmediate 2839 // TODO(gman): TexSubImage2DImmediate
2839 2840
2840 } // namespace gles2 2841 } // namespace gles2
2841 } // namespace gpu 2842 } // namespace gpu
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698