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

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

Issue 793693003: Tile Compression (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 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 #include "gpu/command_buffer/service/async_pixel_transfer_manager_stub.h" 5 #include "gpu/command_buffer/service/async_pixel_transfer_manager_stub.h"
6 6
7 #include "gpu/command_buffer/service/async_pixel_transfer_delegate.h" 7 #include "gpu/command_buffer/service/async_pixel_transfer_delegate.h"
8 8
9 namespace gpu { 9 namespace gpu {
10 10
11 class AsyncPixelTransferDelegateStub : public AsyncPixelTransferDelegate { 11 class AsyncPixelTransferDelegateStub : public AsyncPixelTransferDelegate {
12 public: 12 public:
13 AsyncPixelTransferDelegateStub(); 13 AsyncPixelTransferDelegateStub();
14 ~AsyncPixelTransferDelegateStub() override; 14 ~AsyncPixelTransferDelegateStub() override;
15 15
16 // Implement AsyncPixelTransferDelegate: 16 // Implement AsyncPixelTransferDelegate:
17 void AsyncTexImage2D(const AsyncTexImage2DParams& tex_params, 17 void AsyncTexImage2D(const AsyncTexImage2DParams& tex_params,
18 const AsyncMemoryParams& mem_params, 18 const AsyncMemoryParams& mem_params,
19 const base::Closure& bind_callback) override; 19 const base::Closure& bind_callback) override;
20 void AsyncTexSubImage2D(const AsyncTexSubImage2DParams& tex_params, 20 void AsyncTexSubImage2D(const AsyncTexSubImage2DParams& tex_params,
21 const AsyncMemoryParams& mem_params) override; 21 const AsyncMemoryParams& mem_params) override;
22 void AsyncCompressedTexImage2D(
23 const AsyncCompressedTexImage2DParams& tex_params,
24 const AsyncMemoryParams& mem_params,
25 const base::Closure& bind_callback) override;
26 void AsyncCompressedTexSubImage2D(
27 const AsyncCompressedTexSubImage2DParams& tex_params,
28 const AsyncMemoryParams& mem_params) override;
22 bool TransferIsInProgress() override; 29 bool TransferIsInProgress() override;
23 void WaitForTransferCompletion() override; 30 void WaitForTransferCompletion() override;
24 31
25 private: 32 private:
26 DISALLOW_COPY_AND_ASSIGN(AsyncPixelTransferDelegateStub); 33 DISALLOW_COPY_AND_ASSIGN(AsyncPixelTransferDelegateStub);
27 }; 34 };
28 35
29 AsyncPixelTransferDelegateStub::AsyncPixelTransferDelegateStub() {} 36 AsyncPixelTransferDelegateStub::AsyncPixelTransferDelegateStub() {}
30 37
31 AsyncPixelTransferDelegateStub::~AsyncPixelTransferDelegateStub() {} 38 AsyncPixelTransferDelegateStub::~AsyncPixelTransferDelegateStub() {}
32 39
33 void AsyncPixelTransferDelegateStub::AsyncTexImage2D( 40 void AsyncPixelTransferDelegateStub::AsyncTexImage2D(
34 const AsyncTexImage2DParams& tex_params, 41 const AsyncTexImage2DParams& tex_params,
35 const AsyncMemoryParams& mem_params, 42 const AsyncMemoryParams& mem_params,
36 const base::Closure& bind_callback) { 43 const base::Closure& bind_callback) {
37 bind_callback.Run(); 44 bind_callback.Run();
38 } 45 }
39 46
40 void AsyncPixelTransferDelegateStub::AsyncTexSubImage2D( 47 void AsyncPixelTransferDelegateStub::AsyncTexSubImage2D(
41 const AsyncTexSubImage2DParams& tex_params, 48 const AsyncTexSubImage2DParams& tex_params,
42 const AsyncMemoryParams& mem_params) { 49 const AsyncMemoryParams& mem_params) {
43 } 50 }
44 51
52 void AsyncPixelTransferDelegateStub::AsyncCompressedTexImage2D(
53 const AsyncCompressedTexImage2DParams& tex_params,
54 const AsyncMemoryParams& mem_params,
55 const base::Closure& bind_callback) {
56 bind_callback.Run();
57 }
58
59 void AsyncPixelTransferDelegateStub::AsyncCompressedTexSubImage2D(
60 const AsyncCompressedTexSubImage2DParams& tex_params,
61 const AsyncMemoryParams& mem_params) {
62 }
63
45 bool AsyncPixelTransferDelegateStub::TransferIsInProgress() { 64 bool AsyncPixelTransferDelegateStub::TransferIsInProgress() {
46 return false; 65 return false;
47 } 66 }
48 67
49 void AsyncPixelTransferDelegateStub::WaitForTransferCompletion() {} 68 void AsyncPixelTransferDelegateStub::WaitForTransferCompletion() {}
50 69
51 AsyncPixelTransferManagerStub::AsyncPixelTransferManagerStub() {} 70 AsyncPixelTransferManagerStub::AsyncPixelTransferManagerStub() {}
52 71
53 AsyncPixelTransferManagerStub::~AsyncPixelTransferManagerStub() {} 72 AsyncPixelTransferManagerStub::~AsyncPixelTransferManagerStub() {}
54 73
(...skipping 24 matching lines...) Expand all
79 void AsyncPixelTransferManagerStub::WaitAllAsyncTexImage2D() { 98 void AsyncPixelTransferManagerStub::WaitAllAsyncTexImage2D() {
80 } 99 }
81 100
82 AsyncPixelTransferDelegate* 101 AsyncPixelTransferDelegate*
83 AsyncPixelTransferManagerStub::CreatePixelTransferDelegateImpl( 102 AsyncPixelTransferManagerStub::CreatePixelTransferDelegateImpl(
84 gles2::TextureRef* ref, 103 gles2::TextureRef* ref,
85 const AsyncTexImage2DParams& define_params) { 104 const AsyncTexImage2DParams& define_params) {
86 return new AsyncPixelTransferDelegateStub(); 105 return new AsyncPixelTransferDelegateStub();
87 } 106 }
88 107
108 AsyncPixelTransferDelegate*
109 AsyncPixelTransferManagerStub::CreatePixelTransferDelegateImpl(
110 gles2::TextureRef* ref,
111 const AsyncCompressedTexImage2DParams& define_params) {
112 return new AsyncPixelTransferDelegateStub();
113 }
114
89 } // namespace gpu 115 } // namespace gpu
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698